Skip to content

Commit 2d3985e

Browse files
committed
Schema update
1 parent d5d4d29 commit 2d3985e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

db/schema.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
13
-- Drop tables in reverse order of creation to handle dependencies
24
DROP TABLE IF EXISTS cell_variations CASCADE;
35
DROP TABLE IF EXISTS evolution_runs CASCADE;
@@ -8,6 +10,7 @@ DROP TABLE IF EXISTS notebooks CASCADE;
810
DROP TABLE IF EXISTS problem_statements CASCADE;
911
DROP TABLE IF EXISTS users CASCADE;
1012

13+
1114
CREATE TABLE IF NOT EXISTS users (
1215
id UUID PRIMARY KEY,
1316
username TEXT NOT NULL,
@@ -17,6 +20,7 @@ CREATE TABLE IF NOT EXISTS users (
1720
acc_status TEXT NOT NULL
1821
);
1922

23+
2024
CREATE TABLE IF NOT EXISTS problem_statements (
2125
id UUID PRIMARY KEY,
2226
title TEXT NOT NULL,

0 commit comments

Comments
 (0)