13 lines
282 B
SQL
13 lines
282 B
SQL
-- +migrate Up
|
|
CREATE TABLE "UserSource"
|
|
(
|
|
user_id TEXT REFERENCES "User" (id),
|
|
source_id TEXT REFERENCES "Source" (id),
|
|
account_username TEXT,
|
|
account_id TEXT,
|
|
PRIMARY KEY (user_id, source_id)
|
|
);
|
|
|
|
|
|
-- +migrate Down
|
|
DROP TABLE "UserSource"; |