ledger
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
create table public.transactions (
|
||||
id bigint generated by default as identity not null,
|
||||
created_at timestamp with time zone not null default now(),
|
||||
"from" bigint null,
|
||||
"to" bigint null,
|
||||
amount bigint not null default '4'::bigint,
|
||||
remarks character varying null,
|
||||
match_id bigint null,
|
||||
constraint transactions_pkey primary key (id),
|
||||
constraint transactions_from_fkey foreign KEY ("from") references users (id),
|
||||
constraint transactions_match_id_fkey foreign KEY (match_id) references matches (id),
|
||||
constraint transactions_to_fkey foreign KEY ("to") references users (id)
|
||||
) TABLESPACE pg_default;
|
||||
@@ -0,0 +1,9 @@
|
||||
id,created_at,from,to,amount,remarks,match_id
|
||||
1,2026-05-07 15:44:58.257397+00,,1,4000000000,supply,
|
||||
12,2026-05-07 20:15:23.039708+00,1,5,80,purchase,
|
||||
13,2026-05-07 20:16:12.295235+00,1,4,80,purchase,
|
||||
14,2026-05-07 20:17:18.019151+00,4,1,18,entry_hold,266
|
||||
15,2026-05-07 20:17:18.019151+00,4,1,3,entry_fee,266
|
||||
16,2026-05-07 20:17:18.019151+00,5,1,18,entry_hold,266
|
||||
17,2026-05-07 20:17:18.019151+00,5,1,3,entry_fee,266
|
||||
18,2026-05-07 20:17:18.019151+00,1,5,36,reward,266
|
||||
|
Reference in New Issue
Block a user