This commit is contained in:
NextJS
2026-05-05 20:02:40 +00:00
commit 0f6e979aac
51 changed files with 10161 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
/** Mirrors `public.users` (see schemas/users.md). */
export type DbUser = {
id: number;
created_at: string;
username: string | null;
password: string | null;
cc: number | null;
rc: number | null;
last_logged_at: string | null;
};
/** Mirrors `public.matches` (see schemas/matches.md). */
export type DbMatch = {
id: number;
created_at: string;
/** BIGINT may deserialize as string over JSON. */
user_red: number | string | null;
user_blue: number | string | null;
entry_fee: number | null;
prize_cc: number | null;
red_joined_at: string | null;
blue_joined_at: string | null;
status: number | null;
/** BIGINT may deserialize as string over JSON. */
winner_id: number | string | null;
};
/** Mirrors `public.settings` (key/value config rows). */
export type DbSetting = {
key: string;
value: string | null;
};