-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from moneymanagerex/new_models-6
Add TransactionLink, TagLinkData; filter deleted transactions
- Loading branch information
Showing
9 changed files
with
370 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// TagLinkData.swift | ||
// MMEX | ||
// | ||
// Created 2024-09-26 by George Ef ([email protected]) | ||
// | ||
|
||
import Foundation | ||
import SQLite | ||
|
||
struct TagLinkData: ExportableEntity { | ||
var id : Int64 = 0 | ||
var tagId : Int64 = 0 | ||
var refType : RefType = RefType.transaction | ||
var refId : Int64 = 0 | ||
static let refTypes: Set<RefType> = [ | ||
.transaction, .transactionSplit, | ||
.scheduled, .scheduledSplit, | ||
] | ||
} | ||
|
||
extension TagLinkData: DataProtocol { | ||
static let dataName = "TagLinkData" | ||
|
||
func shortDesc() -> String { | ||
"\(self.id)" | ||
} | ||
} | ||
|
||
extension TagLinkData { | ||
static let sampleData: [TagLinkData] = [ | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// TransactionLinkData.swift | ||
// MMEX | ||
// | ||
// Created 2024-09-26 by George Ef ([email protected]) | ||
// | ||
|
||
import Foundation | ||
import SQLite | ||
|
||
struct TransactionLinkData: ExportableEntity { | ||
var id : Int64 = 0 | ||
var transId : Int64 = 0 | ||
var refType : RefType = RefType.asset | ||
var refId : Int64 = 0 | ||
static let refTypes: Set<RefType> = [ .asset, .stock ] | ||
} | ||
|
||
extension TransactionLinkData: DataProtocol { | ||
static let dataName = "TransactionLink" | ||
|
||
func shortDesc() -> String { | ||
"\(self.id)" | ||
} | ||
} | ||
|
||
extension TransactionLinkData { | ||
static let sampleData: [TransactionLinkData] = [ | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.