Change order of database columns for easier reading.

This commit is contained in:
alwayscompiling
2022-11-26 23:49:02 -05:00
parent 8896e41726
commit 17867671f1
+2 -2
View File
@@ -10,13 +10,13 @@ CREATE TABLE Guilds(
); );
CREATE TABLE CategoryGroups( CREATE TABLE CategoryGroups(
ChannelId bigint unsigned,
GroupId int unsigned not null unique AUTO_INCREMENT, GroupId int unsigned not null unique AUTO_INCREMENT,
GroupName varchar(50) not null, GroupName varchar(50) not null,
ChannelId bigint unsigned,
GuildId bigint unsigned not null, GuildId bigint unsigned not null,
MessageId bigint unsigned, MessageId bigint unsigned,
PadLength smallint not null DEFAULT 26, PadLength smallint not null DEFAULT 26,
Size smallint not null, -- unsure if I like this name. Also unsure belong here or in Category Size smallint not null DEFAULT 3, -- unsure if I like this name. Also unsure belong here or in Category
CONSTRAINT UniqueGuildCategoryGroup UNIQUE (GuildId, GroupName), CONSTRAINT UniqueGuildCategoryGroup UNIQUE (GuildId, GroupName),
FOREIGN KEY (GuildId) REFERENCES Guilds(GuildId), FOREIGN KEY (GuildId) REFERENCES Guilds(GuildId),
PRIMARY KEY (GroupId) PRIMARY KEY (GroupId)