games_app/backend/src/models/ledger.model.ts
2026-06-29 15:01:23 +02:00

15 lines
396 B
TypeScript

/**
* Ledger account model — canonical in-app balance per user and wallet type.
* Maps to the `ledger_accounts` table (source of truth for available and locked funds).
*/
/** Row shape for the `ledger_accounts` table. */
export interface LedgerAccount {
id: string;
user_id: string;
wallet_type_id: number;
available_balance: string;
locked_balance: string;
updated_at: Date;
}