mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 23:47:44 +00:00
8 lines
349 B
MySQL
8 lines
349 B
MySQL
|
CREATE TABLE IF NOT EXISTS devices_accounts (
|
||
|
id SERIAL PRIMARY KEY,
|
||
|
account_id integer,
|
||
|
device_id integer
|
||
|
);
|
||
|
CREATE UNIQUE INDEX IF NOT EXISTS devices_accounts_pkey ON devices_accounts(id int4_ops);
|
||
|
CREATE UNIQUE INDEX IF NOT EXISTS devices_accounts_account_id_device_id_idx ON devices_accounts(account_id int4_ops,device_id int4_ops);
|