feat: initial commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
export interface Category {
|
||||
id: number
|
||||
name: string
|
||||
created_at: string
|
||||
}
|
||||
|
||||
export interface PiggyBank {
|
||||
id: number
|
||||
name: string
|
||||
target_amount: number
|
||||
current_amount: number
|
||||
currency: string
|
||||
category_id: number | null
|
||||
progress_percent: number
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export interface Transaction {
|
||||
id: number
|
||||
piggy_bank_id: number
|
||||
amount: number
|
||||
description: string | null
|
||||
created_at: string
|
||||
}
|
||||
|
||||
export interface PiggyBankCreate {
|
||||
name: string
|
||||
target_amount: number
|
||||
currency: string
|
||||
category_id?: number | null
|
||||
}
|
||||
|
||||
export interface TransactionCreate {
|
||||
amount: number
|
||||
description?: string
|
||||
}
|
||||
Reference in New Issue
Block a user