feat: transaction framework
This commit is contained in:
28
models/transaction.ts
Normal file
28
models/transaction.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
export interface Category {
|
||||
id: string,
|
||||
name: string,
|
||||
}
|
||||
|
||||
export interface Tag {
|
||||
id: string,
|
||||
name: string,
|
||||
}
|
||||
|
||||
export interface Amount{
|
||||
currency: string,
|
||||
val: string,
|
||||
}
|
||||
|
||||
export interface Transaction{
|
||||
id: string,
|
||||
description: string,
|
||||
time: string,
|
||||
category?: Category,
|
||||
tags?: Tag[],
|
||||
amount?:
|
||||
}
|
||||
|
||||
export interface TransactionGroup {
|
||||
group_title: string,
|
||||
transactions?: Transaction[],
|
||||
}
|
||||
Reference in New Issue
Block a user