feat: added device models

This commit is contained in:
Jef Roosens 2025-02-23 18:11:58 +01:00
parent 1f4b0c35c5
commit 993e58babf
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
7 changed files with 148 additions and 3 deletions

View file

@ -0,0 +1 @@
drop table devices;

View file

@ -0,0 +1,13 @@
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)
);