SQL
CREATE TABLE "player" (
"id" text not null,
"seat" integer not null,
"game_category_id" text not null references "game" ("category_id") on delete cascade,
"dead_votes_remaining" integer not null,
"active_room_channel_id" text references "private_room" ("channel_id") on delete set null,
constraint "player_primary_key" primary key ("id", "game_category_id")
)
+ Add column
Columns
Foreign Keys
| Column |
Destination |
active_room_channel_id |
private_room.channel_id |
game_category_id |
game.category_id |
+ Add index
Indexes
| Name |
Columns |
Unique |
SQL |
Drop? |
| sqlite_autoindex_player_1 |
|
✓ |
SQL
-- no sql found --
|
Drop
|