mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
Remove .vscode from .gitignore to allow for project-specific settings. Introduce a VSCode task to run `npm run dev` automatically when the project is opened. Update environment configuration files and dependencies to enhance support for the Node adapter. Fixes #13
58 lines
1.3 KiB
TypeScript
58 lines
1.3 KiB
TypeScript
// TODO: Database Integration & Persistence
|
|
// - Implement database schema design
|
|
// - Add database connection pooling
|
|
// - Implement data migration strategy
|
|
// - Add database backup and recovery plans
|
|
// - Implement data validation layer
|
|
// - Add transaction logging
|
|
// - Implement audit trail
|
|
// - Add data archival strategy
|
|
|
|
import type { Account, Transaction } from '../types';
|
|
|
|
// TODO: Replace in-memory store with persistent database
|
|
// - Implement database connection and configuration
|
|
// - Create database schema for accounts and transactions
|
|
// - Add migration system for schema changes
|
|
// - Update all CRUD operations to use database instead of arrays
|
|
|
|
// Temporary in-memory store for development
|
|
export const accounts: Account[] = [
|
|
{
|
|
id: '1',
|
|
name: 'Checking Account',
|
|
last4: '4321',
|
|
balance: 2500.0,
|
|
},
|
|
{
|
|
id: '2',
|
|
name: 'Savings Account',
|
|
last4: '8765',
|
|
balance: 10000.0,
|
|
},
|
|
];
|
|
|
|
export const transactions: Transaction[] = [
|
|
{
|
|
id: '1',
|
|
accountId: '1',
|
|
date: '2025-04-20',
|
|
description: 'Grocery Store',
|
|
amount: -75.5,
|
|
},
|
|
{
|
|
id: '2',
|
|
accountId: '1',
|
|
date: '2025-04-21',
|
|
description: 'Salary Deposit',
|
|
amount: 3000.0,
|
|
},
|
|
{
|
|
id: '3',
|
|
accountId: '2',
|
|
date: '2025-04-22',
|
|
description: 'Transfer to Savings',
|
|
amount: 500.0,
|
|
},
|
|
];
|