mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
#1 Add temporary data store for development
This commit is contained in:
41
src/data/store.ts
Normal file
41
src/data/store.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import type { Account, Transaction } from '../types';
|
||||
|
||||
// Temporary in-memory store for development
|
||||
export const accounts: Account[] = [
|
||||
{
|
||||
id: '1',
|
||||
name: 'Checking Account',
|
||||
last4: '4321',
|
||||
balance: 2500.00
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
name: 'Savings Account',
|
||||
last4: '8765',
|
||||
balance: 10000.00
|
||||
}
|
||||
];
|
||||
|
||||
export const transactions: Transaction[] = [
|
||||
{
|
||||
id: '1',
|
||||
accountId: '1',
|
||||
date: '2025-04-20',
|
||||
description: 'Grocery Store',
|
||||
amount: -75.50
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
accountId: '1',
|
||||
date: '2025-04-21',
|
||||
description: 'Salary Deposit',
|
||||
amount: 3000.00
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
accountId: '2',
|
||||
date: '2025-04-22',
|
||||
description: 'Transfer to Savings',
|
||||
amount: 500.00
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user