Skip to content
Permalink
Browse files

Initial db schema

  • Loading branch information...
thepatrick committed Jun 10, 2019
1 parent 50e6506 commit 384713a8d3ce6d004a31e1ac8d80c110d2ee6404
Showing with 30 additions and 1 deletion.
  1. +30 −1 src/tools/initdb.ts
@@ -19,7 +19,36 @@ const sql: string[] = [
group_id varchar(50) NOT NULL,
brand varchar(255) NOT NULL
)
`,
`,
`
CREATE TABLE IF NOT EXISTS group_users (
group_id INT NOT NULL,
user_id varchar(255) NOT NULL
)
`,
`
CREATE TABLE IF NOT EXISTS events (
event_id INT NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
group_id INT NOT NULL,
name varchar(255) NOT NULL,
start_time timestamp
)
`,
`
CREATE TABLE IF NOT EXISTS talks (
talk_id INT NOT NULL,
event_id INT NOT NULL,
title varchar(255) NOT NULL,
fps INT NOT NULL
)
`,
`
CREATE TABLE IF NOT EXISTS talk_presenters (
talk_id INT NOT NULL,
user_id varchar(255) NOT NULL,
order INT NOT NULL
)
`,
];

asyncMain(async () => {

0 comments on commit 384713a

Please sign in to comment.
You can’t perform that action at this time.