2024-08-01 17:01:50 +00:00
|
|
|
module transaction.model;
|
2024-07-31 17:20:17 +00:00
|
|
|
|
|
|
|
import std.datetime;
|
2024-08-01 17:01:50 +00:00
|
|
|
|
|
|
|
import money.currency;
|
2024-07-31 17:20:17 +00:00
|
|
|
|
|
|
|
struct TransactionVendor {
|
|
|
|
ulong id;
|
|
|
|
string name;
|
|
|
|
string description;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct TransactionCategory {
|
|
|
|
ulong id;
|
|
|
|
ulong parentId;
|
|
|
|
string name;
|
|
|
|
string color;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct TransactionTag {
|
|
|
|
ulong id;
|
|
|
|
string name;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Transaction {
|
|
|
|
ulong id;
|
|
|
|
SysTime timestamp;
|
|
|
|
SysTime addedAt;
|
2024-08-01 17:01:50 +00:00
|
|
|
ulong amount;
|
2024-07-31 17:20:17 +00:00
|
|
|
Currency currency;
|
|
|
|
string description;
|
|
|
|
ulong vendorId;
|
|
|
|
ulong categoryId;
|
2024-08-01 17:01:50 +00:00
|
|
|
}
|