feat: external_ids table is added for binding user sessions in tg and

other services
This commit is contained in:
Iron_Felix 2025-11-14 15:22:14 +03:00
parent bac889b627
commit 83fee98059

View file

@ -85,6 +85,12 @@ CREATE TABLE signals (
pending boolean NOT NULL 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 -- Functions
CREATE OR REPLACE FUNCTION update_title_rating() CREATE OR REPLACE FUNCTION update_title_rating()
RETURNS TRIGGER AS $$ RETURNS TRIGGER AS $$