otter/migrations/2025-02-23-165014_devices/up.sql

14 lines
263 B
SQL

create table devices (
id integer primary key not null,
device_id text not null,
user_id bigint not null
references users (id)
on delete cascade,
caption text not null,
type text not null,
unique (user_id, device_id)
);