Initial database setup including migrations
This commit is contained in:
11
database/migrations/01-initial.sql
Normal file
11
database/migrations/01-initial.sql
Normal 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)
|
||||
);
|
||||
Reference in New Issue
Block a user