mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-26 11:58:50 -05:00
11 lines
309 B
SQL
11 lines
309 B
SQL
create table push_subscriptions (
|
|
id serial primary key,
|
|
user_id TEXT references users(id), -- optional if per-user
|
|
endpoint text not null unique,
|
|
keys jsonb not null,
|
|
created_at timestamptz default now()
|
|
);
|
|
|
|
-- Row Level Security
|
|
ALTER TABLE push_subscriptions ENABLE ROW LEVEL SECURITY;
|