sql schemas

This commit is contained in:
Emily 2020-10-28 23:07:34 +11:00
parent 575db455a7
commit f626446e50
3 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,17 @@
CREATE TABLE guilds(
guild_id bigint,
prefix text DEFAULT '~',
mutedRole bigint DEFAULT NULL,
autorole bigint DEFAULT NULL,
welcomeChannel bigint DEFAULT NULL,
welcomeMessage varchar(2000) DEFAULT 'Hey there {{user}}, and welcome to {{server}}!',
leaveChannel bigint DEFAULT NULL,
leaveMessage varchar(2000) DEFAULT 'See you around, {{user}}.',
chatlogsChannel bigint DEFAULT NULL,
modlogsChannel bigint DEFAULT NULL,
starboardChannel bigint DEFAULT NULL,
blacklist bigint[] DEFAULT '{}',
disabledCommands text[] DEFAULT '{}',
disabledCategories text[] DEFAULT '{}',
PRIMARY KEY (guild_id)
);

View file

@ -0,0 +1,5 @@
CREATE TABLE members(
member_id varchar(37),
experience bigint DEFAULT 0,
PRIMARY KEY (member_id)
);

View file

@ -0,0 +1,10 @@
CREATE TABLE users(
user_id bigint DEFAULT NULL,
prefix text DEFAULT '~',
experience bigint DEFAULT 0,
seashells bigint DEFAULT 0,
relationships bigint[] DEFAULT '{}',
pronouns text DEFAULT NULL,
colour text DEFAULT NULL,
PRIMARY KEY (user_id)
);