feat: external_services table create
This commit is contained in:
parent
83fee98059
commit
f24edc5dd7
1 changed files with 7 additions and 2 deletions
|
|
@ -87,8 +87,13 @@ CREATE TABLE signals (
|
|||
|
||||
CREATE TABLE external_ids (
|
||||
user_id NOT NULL REFERENCES users (id),
|
||||
service_id text NOT NULL,
|
||||
external_ids text NOT NULL
|
||||
service_id bigint REFERENCES external_services (id),
|
||||
external_id text NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE external_services (
|
||||
id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
|
||||
name text UNIQUE NOT NULL
|
||||
);
|
||||
|
||||
-- Functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue