From 83fee98059ced5aaee9a1109ccb5129cf47fc360 Mon Sep 17 00:00:00 2001 From: Iron_Felix Date: Fri, 14 Nov 2025 15:22:14 +0300 Subject: [PATCH] feat: external_ids table is added for binding user sessions in tg and other services --- sql/migrations/000001_init.up.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sql/migrations/000001_init.up.sql b/sql/migrations/000001_init.up.sql index eba22e2..abecd32 100644 --- a/sql/migrations/000001_init.up.sql +++ b/sql/migrations/000001_init.up.sql @@ -85,6 +85,12 @@ CREATE TABLE signals ( pending boolean NOT NULL ); +CREATE TABLE external_ids ( + user_id NOT NULL REFERENCES users (id), + service_id text NOT NULL, + external_ids text NOT NULL +); + -- Functions CREATE OR REPLACE FUNCTION update_title_rating() RETURNS TRIGGER AS $$