games_app/backend/dist/models/transaction.model.d.ts

23 lines
807 B
TypeScript

/**
* On-chain and internal money movement records.
* Maps to the `transactions` table (deposits, withdrawals, and transfers).
*/
/** Row shape for the `transactions` table. */
export interface Transaction {
id: string;
user_id: string;
wallet_type_id: number;
type: 'deposit' | 'withdrawal' | 'transfer';
amount: string;
fee: string;
status: 'pending' | 'pending_approval' | 'broadcasting' | 'confirming' | 'completed' | 'failed' | 'ledger_finalize_failed';
blockchain_tx_id: string | null;
from_address: string | null;
to_address: string | null;
confirmations: number | null;
required_confirmations: number | null;
metadata: Record<string, unknown> | null;
created_at: Date;
updated_at: Date;
}
//# sourceMappingURL=transaction.model.d.ts.map