mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 17:57:47 +03:00
6 lines
206 B
SQL
6 lines
206 B
SQL
CREATE TABLE fcm
|
|
(
|
|
user_id text PRIMARY KEY NOT NULL REFERENCES users (id),
|
|
token text NOT NULL,
|
|
topics text[] NOT NULL CHECK ( array_position(topics, null) is null )
|
|
); |