Initial database setup including migrations

This commit is contained in:
Gary Kramlich
2021-12-09 05:37:41 -06:00
parent be3982e585
commit 78ab3d3804
10 changed files with 203 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS portal (
did text,
receiver text,
mxid text UNIQUE,
name text NOT NULL,
topic text NOT NULL,
avatar text NOT NULL,
PRIMARY KEY (did, receiver)
);