ledger
This commit is contained in:
@@ -30,3 +30,17 @@ export type DbSetting = {
|
||||
key: string;
|
||||
value: string | null;
|
||||
};
|
||||
|
||||
/** Mirrors `public.transactions` (see schemas/transactions.md). */
|
||||
export type DbTransaction = {
|
||||
id: number;
|
||||
created_at: string;
|
||||
/** Payer; null — e.g. mint / supply (no debit account). */
|
||||
from: number | null;
|
||||
/** Payee; null — e.g. burn (credits nowhere). */
|
||||
to: number | null;
|
||||
/** BIGINT; may deserialize as string over JSON. */
|
||||
amount: number | string;
|
||||
remarks: string | null;
|
||||
match_id: number | null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user