-- 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)
);