-- Add migration script here

CREATE TABLE devices(
    uuid TEXT PRIMARY KEY NOT NULL,
    user_uuid INT NOT NULL,
    device_id TEXT NOT NULL,
    display_name TEXT NOT NULL,
    FOREIGN KEY(user_uuid) REFERENCES users(uuid)
);

CREATE INDEX device_id_index ON devices (device_id);