-- Add migration script here

CREATE TABLE sessions(
    uuid TEXT PRIMARY KEY NOT NULL,
    device_uuid INT NOT NULL,
    key TEXT NOT NULL,
    FOREIGN KEY(device_uuid) REFERENCES devices(uuid)
);

CREATE INDEX key_index ON sessions (key);