feat: add subscription models

This commit is contained in:
Jef Roosens 2025-02-24 14:46:18 +01:00
parent 3c4af12fa1
commit caad08c99e
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
6 changed files with 61 additions and 1 deletions

View file

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

View file

@ -0,0 +1,9 @@
create table subscriptions (
id integer primary key not null,
device_id bigint not null
references devices (id)
on delete cascade,
url text not null,
unique (device_id, url)
);