move to public repo
This commit is contained in:
16
server/src/db/init.sql
Normal file
16
server/src/db/init.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- users
|
||||
CREATE TABLE "user" (
|
||||
id SERIAL PRIMARY KEY,
|
||||
name VARCHAR(128) UNIQUE NOT NULL,
|
||||
email VARCHAR(128),
|
||||
password TEXT
|
||||
);
|
||||
|
||||
-- games
|
||||
CREATE TABLE "game" (
|
||||
id SERIAL PRIMARY KEY,
|
||||
pgn TEXT,
|
||||
white_id INT REFERENCES "user",
|
||||
black_id INT REFERENCES "user",
|
||||
winner CHAR(5)
|
||||
);
|
||||
Reference in New Issue
Block a user