-- Add migration script here

CREATE TABLE devices(
    id INTEGER PRIMARY KEY NOT NULL,
    user_id INT NOT NULL,
    device_id TEXT NOT NULL,
    display_name TEXT NOT NULL,
    FOREIGN KEY(user_id) REFERENCES users(id)
);

CREATE INDEX device_id_index ON devices (device_id);