pull in ruma so I do not have to write all requests and responses myself
Some checks failed
continuous-integration/drone Build is failing
Some checks failed
continuous-integration/drone Build is failing
This commit is contained in:
8
migrations/20220507162217_add_rooms.sql
Normal file
8
migrations/20220507162217_add_rooms.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
-- Add migration script here
|
||||
|
||||
CREATE TABLE rooms(
|
||||
uuid TEXT PRIMARY KEY NOT NULL,
|
||||
name TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX name_index ON rooms(name);
|
13
migrations/20220507162532_add_events.sql
Normal file
13
migrations/20220507162532_add_events.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
-- Add migration script here
|
||||
|
||||
CREATE TABLE events(
|
||||
uuid TEXT PRIMARY KEY NOT NULL,
|
||||
room_uuid TEXT NOT NULL,
|
||||
type TEXT NOT NULL,
|
||||
state_key TEXT,
|
||||
sender_uuid TEXT NOT NULL,
|
||||
origin_server_ts INT NOT NULL,
|
||||
content TEXT NOT NULL,
|
||||
FOREIGN KEY(room_uuid) REFERENCES rooms(uuid),
|
||||
FOREIGN KEY(sender_uuid) REFERENCES users(uuid)
|
||||
);
|
Reference in New Issue
Block a user