api partially wired up
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
Reference in New Issue
Block a user