This commit is contained in:
vfs committed 2026-05-10 10:49:20 +02:00
1 parent 136a1c34b3
commit cb87af4f3b
108 files changed
+49079 -41

No files matched your search

@@ -0,0 +1 @@
DROP TABLE IF EXISTS parl_notified_votes;
@@ -0,0 +1,4 @@
CREATE TABLE IF NOT EXISTS parl_notified_votes (
number TEXT PRIMARY KEY,
notified_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
+1
View File
@@ -0,0 +1 @@
DROP TABLE IF EXISTS device_tokens;
+9
View File
@@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS device_tokens (
id bigserial PRIMARY KEY,
user_id bigint NOT NULL REFERENCES users(id) ON DELETE CASCADE,
token text NOT NULL,
created_at timestamptz NOT NULL DEFAULT now(),
CONSTRAINT device_tokens_token_key UNIQUE (token)
);
CREATE INDEX idx_device_tokens_user_id ON device_tokens (user_id);