summaryrefslogtreecommitdiff
path: root/server/migrations/20221008120534_init.up.sql
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-12-31 12:17:35 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-12-31 12:55:45 -0500
commit88366acba07b678466b42829887dcdda4f583686 (patch)
treee3450615a6b4b654ea7106a00cc6b551dd4ddb26 /server/migrations/20221008120534_init.up.sql
parentaa6d050b09dfbf3e5be112325e8e8d8a1f4dacf9 (diff)
Add database conversion for bridge types
Diffstat (limited to 'server/migrations/20221008120534_init.up.sql')
-rw-r--r--server/migrations/20221008120534_init.up.sql7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/migrations/20221008120534_init.up.sql b/server/migrations/20221008120534_init.up.sql
index db9fd3c..05b7697 100644
--- a/server/migrations/20221008120534_init.up.sql
+++ b/server/migrations/20221008120534_init.up.sql
@@ -16,6 +16,11 @@ create table active_tables (
id uuid primary key not null
);
+create type player_position as enum ('west', 'north', 'east', 'south');
+create type suit as enum ('club', 'diamond', 'heart', 'spade');
+create domain rank smallint check (value between 2 and 14);
+
+-- TODO: Remove this.
create table object_journal (
id uuid not null,
seq bigint not null,
@@ -23,8 +28,6 @@ create table object_journal (
);
create unique index journal_entry on object_journal (id, seq);
-create type player_position as enum ('west', 'north', 'east', 'south');
-
create table table_players (
active_tables_id uuid not null references active_tables (id),
player_id varchar(64) not null references players (id),