create table players (
id uuid primary key DEFAULT gen_random_uuid(),
created_at timestamp with time zone default now(),
updated_at timestamp with time zone,
user_id uuid not null references auth.users,
game_id uuid not null references games(id),
num int default 0,
unique(user_id, game_id)
);
create table players (
id uuid primary key DEFAULT gen_random_uuid(),
created_at timestamp with time zone default now(),
updated_at timestamp with time zone,
user_id uuid not null references auth.users,
game_id uuid not null references games(id),
num int default 0,
unique(user_id, game_id)
);