This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
otter-space-sdk/db/migrations/011_create_table_UserSource_2024_06_04.sql

13 lines
282 B
MySQL
Raw Normal View History

-- +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";