feat: external_services table create

This commit is contained in:
Iron_Felix 2025-11-14 15:34:48 +03:00
parent 83fee98059
commit f24edc5dd7

View file

@ -87,8 +87,13 @@ CREATE TABLE signals (
CREATE TABLE external_ids ( CREATE TABLE external_ids (
user_id NOT NULL REFERENCES users (id), user_id NOT NULL REFERENCES users (id),
service_id text NOT NULL, service_id bigint REFERENCES external_services (id),
external_ids text NOT NULL external_id text NOT NULL
);
CREATE TABLE external_services (
id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
name text UNIQUE NOT NULL
); );
-- Functions -- Functions