fiatCryptobot/flowPayments/Buttons/fixNotify/BanOfUsers/fixTrial and more

This commit is contained in:
Vladless
2025-01-09 02:40:39 +03:00
parent 2bddedf692
commit 365e1f6d61
27 changed files with 7024 additions and 3310 deletions
+13 -1
View File
@@ -99,4 +99,16 @@ CREATE TABLE IF NOT EXISTS gifts
recipient_tg_id BIGINT,
CONSTRAINT fk_sender FOREIGN KEY (sender_tg_id) REFERENCES users (tg_id),
CONSTRAINT fk_recipient FOREIGN KEY (recipient_tg_id) REFERENCES users (tg_id)
);
);
CREATE TABLE IF NOT EXISTS temporary_data (
tg_id BIGINT PRIMARY KEY NOT NULL,
state TEXT NOT NULL,
data JSONB NOT NULL,
updated_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE IF NOT EXISTS blocked_users (
tg_id BIGINT PRIMARY KEY,
blocked_at TIMESTAMP DEFAULT NOW()
);