mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-25 04:24:20 +00:00
21 lines
411 B
MySQL
21 lines
411 B
MySQL
|
CREATE TABLE users (
|
||
|
id INT PRIMARY KEY,
|
||
|
username VARCHAR UNIQUE NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE TABLE telegram (
|
||
|
user_id INT NOT NULL REFERENCES users (id),
|
||
|
telegram_id BIGINT PRIMARY KEY
|
||
|
);
|
||
|
|
||
|
CREATE TABLE discord (
|
||
|
user_id INT NOT NULL REFERENCES users (id),
|
||
|
discord_id BIGINT PRIMARY KEY
|
||
|
);
|
||
|
|
||
|
CREATE TABLE steam (
|
||
|
user_id INT NOT NULL REFERENCES users (id),
|
||
|
steam_id BIGINT PRIMARY KEY
|
||
|
);
|
||
|
|