api partially wired up

This commit is contained in:
Elijah Lucian
2021-04-14 18:41:50 -06:00
parent c66e815810
commit 51dc7ef3a2
6 changed files with 108 additions and 20184 deletions

View File

@@ -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'
}