-- Add migration script here

CREATE TABLE sessions(
    id INTEGER PRIMARY KEY NOT NULL,
    device_id INT NOT NULL,
    value TEXT NOT NULL,
    FOREIGN KEY(device_id) REFERENCES devices(id)
);

CREATE INDEX value_index ON sessions (value);