Skip to content

Commit

Permalink
Merge pull request #9 from moneymanagerex/add_in_comments
Browse files Browse the repository at this point in the history
show NOT NULL in field comments
  • Loading branch information
guanlisheng authored Sep 20, 2024
2 parents eaeb654 + 6a042c6 commit 6225fb6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions MMEX/Models/Account.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ enum AccountType: String, CaseIterable, Identifiable, Codable {

struct Account: ExportableEntity {
var id: Int64 // ACCOUNTID INTEGER PRIMARY KEY
var name: String // ACCOUNTNAME TEXT COLLATE NOCASE UNIQUE
var type: AccountType // ACCOUNTTYPE TEXT (Cash, Checking, Credit Card, Loan, ...)
var name: String // ACCOUNTNAME TEXT COLLATE NOCASE NOT NULL UNIQUE
var type: AccountType // ACCOUNTTYPE TEXT NOT NULL (Cash, Checking, ...)
var num: String? // ACCOUNTNUM TEXT
var status: AccountStatus // STATUS TEXT (Open, Closed)
var status: AccountStatus // STATUS TEXT NOT NULL (Open, Closed)
var notes: String? // NOTES TEXT
var heldAt: String? // HELDAT TEXT
var website: String? // WEBSITE TEXT
var contactInfo: String? // CONTACTINFO TEXT
var accessInfo: String? // ACCESSINFO TEXT
var initialDate: String? // INITIALDATE TEXT
var initialBal: Double? // INITIALBAL NUMERIC
var favoriteAcct: String // FAVORITEACCT TEXT
var currencyId: Int64 // CURRENCYID INTEGER
var favoriteAcct: String // FAVORITEACCT NOT NULL TEXT
var currencyId: Int64 // CURRENCYID NOT NULL INTEGER
var statementLocked: Bool? // STATEMENTLOCKED INTEGER
var statementDate: String? // STATEMENTDATE TEXT
var minimumBalance: Double? // MINIMUMBALANCE NUMERIC
Expand Down
2 changes: 1 addition & 1 deletion MMEX/Models/Category.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SQLite

struct Category: ExportableEntity {
var id: Int64 // CATEGID INTEGER PRIMARY KEY
var name: String // CATEGNAME TEXT COLLATE NOCASE
var name: String // CATEGNAME TEXT COLLATE NOCASE NOT NULL
var active: Bool? // ACTIVE INTEGER
var parentId: Int64? // PARENTID INTEGER
// UNIQUE(CATEGNAME, PARENTID)
Expand Down
6 changes: 3 additions & 3 deletions MMEX/Models/Currency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SQLite

struct Currency: ExportableEntity {
var id: Int64 // CURRENCYID INTEGER PRIMARY KEY
var name: String // CURRENCYNAME TEXT COLLATE NOCASE UNIQUE
var name: String // CURRENCYNAME TEXT COLLATE NOCASE NOT NULL UNIQUE
var prefixSymbol: String? // PFX_SYMBOL TEXT
var suffixSymbol: String? // SFX_SYMBOL TEXT
var decimalPoint: String? // DECIMAL_POINT TEXT
Expand All @@ -19,8 +19,8 @@ struct Currency: ExportableEntity {
var centName: String? // CENT_NAME TEXT COLLATE NOCASE
var scale: Int? // SCALE INTEGER
var baseConversionRate: Double? // BASECONVRATE NUMERIC
var symbol: String // CURRENCY_SYMBOL TEXT COLLATE NOCASE UNIQUE
var type: String // CURRENCY_TYPE TEXT (Fiat, Crypto)
var symbol: String // CURRENCY_SYMBOL TEXT COLLATE NOCASE NOT NULL UNIQUE
var type: String // CURRENCY_TYPE TEXT NOT NULL (Fiat, Crypto)
}

extension Currency {
Expand Down
2 changes: 1 addition & 1 deletion MMEX/Models/Payee.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SQLite

struct Payee: ExportableEntity {
var id: Int64 // PAYEEID INTEGER PRIMARY KEY
var name: String // PAYEENAME TEXT COLLATE NOCASE UNIQUE
var name: String // PAYEENAME TEXT COLLATE NOCASE NOT NULL UNIQUE
var categoryId: Int64? // CATEGID INTEGER
var number: String? // NUMBER TEXT
var website: String? // WEBSITE TEXT
Expand Down
10 changes: 5 additions & 5 deletions MMEX/Models/Transaction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ enum TransactionStatus: String, CaseIterable, Identifiable, Codable {

struct Transaction: ExportableEntity {
var id: Int64 // TRANSID INTEGER PRIMARY KEY
var accountId: Int64 // ACCOUNTID INTEGER
var accountId: Int64 // ACCOUNTID INTEGER NOT NULL
var toAccountId: Int64? // TOACCOUNTID INTEGER
var payeeId: Int64 // PAYEEID INTEGER
var transCode: Transcode // TRANSCODE TEXT
var transAmount: Double // TRANSAMOUNT NUMERIC
var status: TransactionStatus // STATUS TEXT (can be NULL)
var payeeId: Int64 // PAYEEID INTEGER NOT NULL
var transCode: Transcode // TRANSCODE TEXT NOT NULL
var transAmount: Double // TRANSAMOUNT NUMERIC NOT NULL
var status: TransactionStatus // STATUS TEXT
var transactionNumber: String? // TRANSACTIONNUMBER TEXT
var notes: String? // NOTES TEXT
var categId: Int64? // CATEGID INTEGER
Expand Down

0 comments on commit 6225fb6

Please sign in to comment.