This commit is contained in:
NextJS
2026-05-11 04:30:39 +00:00
parent 0f6e979aac
commit b2be61190f
13 changed files with 1361 additions and 6 deletions
+13
View File
@@ -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;
+9
View File
@@ -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
1 id created_at from to amount remarks match_id
2 1 2026-05-07 15:44:58.257397+00 1 4000000000 supply
3 12 2026-05-07 20:15:23.039708+00 1 5 80 purchase
4 13 2026-05-07 20:16:12.295235+00 1 4 80 purchase
5 14 2026-05-07 20:17:18.019151+00 4 1 18 entry_hold 266
6 15 2026-05-07 20:17:18.019151+00 4 1 3 entry_fee 266
7 16 2026-05-07 20:17:18.019151+00 5 1 18 entry_hold 266
8 17 2026-05-07 20:17:18.019151+00 5 1 3 entry_fee 266
9 18 2026-05-07 20:17:18.019151+00 1 5 36 reward 266