Merge branch 'dev' of ssh://meowgit.nekoea.red:22222/nihonium/nyanimedb into dev
This commit is contained in:
commit
e67c9a77ce
7 changed files with 293 additions and 134 deletions
|
|
@ -33,8 +33,6 @@ CREATE TABLE users (
|
|||
last_login timestamptz
|
||||
);
|
||||
|
||||
|
||||
|
||||
CREATE TABLE studios (
|
||||
id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
|
||||
studio_name text NOT NULL UNIQUE,
|
||||
|
|
@ -108,12 +106,13 @@ CREATE TABLE signals (
|
|||
|
||||
CREATE TABLE external_services (
|
||||
id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
|
||||
name text UNIQUE NOT NULL
|
||||
name text UNIQUE NOT NULL,
|
||||
auth_token text
|
||||
);
|
||||
|
||||
CREATE TABLE external_ids (
|
||||
user_id bigint NOT NULL REFERENCES users (id),
|
||||
service_id bigint REFERENCES external_services (id),
|
||||
service_id bigint NOT NULL REFERENCES external_services (id),
|
||||
external_id text NOT NULL
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue