parent
c66e815810
commit
51dc7ef3a2
6 changed files with 108 additions and 20184 deletions
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,34 @@ |
||||
export type uuid = string |
||||
|
||||
export type User = { |
||||
id: string |
||||
username: string |
||||
id: uuid |
||||
name: string |
||||
email: string |
||||
// password: string
|
||||
} |
||||
|
||||
export type Account = { |
||||
id: uuid |
||||
users?: uuid[] |
||||
name: string |
||||
details: string |
||||
income: string |
||||
expenses: string |
||||
} |
||||
|
||||
export type Stack = { |
||||
id: uuid |
||||
account: uuid //'38485982-87f3-4a11-a963-2202983809e3'
|
||||
name: string // 'House Fund'
|
||||
details: string //'buy furniture'
|
||||
amount: number // '200.00'
|
||||
transactions: Transaction[] |
||||
} |
||||
|
||||
export type Transaction = { |
||||
id: uuid |
||||
stack: uuid // '0058cece-3ff3-4ee1-b71d-075a0bc73bc0'
|
||||
details: string // 'by ghetto couch off Kijiji'
|
||||
amount: number // '30.44'
|
||||
created_at: string // '2021-04-15T00:02:45.096071Z'
|
||||
} |
||||
|
Loading…
Reference in new issue