threesome fixed

This commit is contained in:
API runner
2026-08-14 20:55:11 +00:00
parent b6ecf6ad7c
commit b933f09187
260 changed files with 17747 additions and 270 deletions
+11 -2
View File
@@ -9,8 +9,17 @@ create table public.matches (
blue_joined_at timestamp with time zone null,
status smallint null default '0'::smallint,
winner_id bigint null,
escrow_user_id bigint null,
entries_collected_at timestamp with time zone null,
settled_at timestamp with time zone null,
constraint matches_pkey primary key (id),
constraint matches_user_blue_fkey foreign KEY (user_blue) references users (id),
constraint matches_user_red_fkey foreign KEY (user_red) references users (id),
constraint matches_winner_id_fkey foreign KEY (winner_id) references users (id)
) TABLESPACE pg_default;
constraint matches_winner_id_fkey foreign KEY (winner_id) references users (id),
constraint matches_escrow_user_id_fkey foreign KEY (escrow_user_id) references users (id)
) TABLESPACE pg_default;
-- Apply migrations/RPCs in order:
-- schemas/alter_matches_escrow.sql
-- schemas/rpc_collect_match_entries.sql
-- schemas/rpc_settle_match_reward.sql