feat: Introduce financial goal and asset management with SQLite and NativeWind integration, new tab screens, and updated dependencies.
This commit is contained in:
25
types/index.ts
Normal file
25
types/index.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
export interface Transaction {
|
||||
id: number;
|
||||
amount: number;
|
||||
category: string;
|
||||
date: string; // ISO 8601 YYYY-MM-DD
|
||||
description?: string;
|
||||
type: 'income' | 'expense';
|
||||
}
|
||||
|
||||
export interface Asset {
|
||||
id: number;
|
||||
name: string;
|
||||
type: 'stock' | 'crypto' | 'real_estate' | 'fund' | 'other';
|
||||
value: number;
|
||||
quantity?: number;
|
||||
purchase_date?: string;
|
||||
}
|
||||
|
||||
export interface Goal {
|
||||
id: number;
|
||||
name: string;
|
||||
target_amount: number;
|
||||
current_amount: number;
|
||||
deadline?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user