games_app/backend/dist/models/transaction.model.d.ts
2026-06-29 15:01:23 +02:00

23 lines
742 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' | 'confirming' | 'completed' | '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