Эндпоинт fcm/set-token.

This commit is contained in:
2025-04-15 18:44:43 +04:00
parent ccaabfe909
commit 542258df01
4 changed files with 117 additions and 2 deletions

View File

@@ -2,5 +2,5 @@ CREATE TABLE fcm
(
user_id text PRIMARY KEY NOT NULL REFERENCES users (id),
token text NOT NULL,
topics text[] NOT NULL
topics text[] NOT NULL CHECK ( array_position(topics, null) is null )
);