34 lines
505 B
D
34 lines
505 B
D
module model.transaction;
|
|
|
|
import std.datetime;
|
|
import model.currency;
|
|
|
|
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;
|
|
string amount;
|
|
Currency currency;
|
|
string description;
|
|
ulong vendorId;
|
|
ulong categoryId;
|
|
}
|