so much
This commit is contained in:
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()
|
||||
);
|
||||
@@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS device_tokens;
|
||||
@@ -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);
|
||||
Reference in new issue
Block a user