mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-01-03 03:18:07 -05:00
Add on delete cascade
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
create table push_subscriptions (
|
||||
id serial primary key,
|
||||
user_id TEXT references users(id), -- optional if per-user
|
||||
user_id TEXT references users(id) on delete cascade,
|
||||
endpoint text not null unique,
|
||||
keys jsonb not null,
|
||||
created_at timestamptz default now()
|
||||
|
||||
Reference in New Issue
Block a user