13 lines
282 B
MySQL
13 lines
282 B
MySQL
|
-- +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";
|