Mineplex/Mineplex.Database/063-accountranks.sql
Daniel Waggner fc179e824b Database go brrrrrrr
No idea why, but the database deleted all of the information...  These files are also logged in the Discord Changelog channel and are uploaded to mediafire... Nevertheless, here they are anyhow (plus a bunch of empty tables that I'm too lazy to take out of this commit)
2021-05-28 22:22:21 -07:00

20 lines
472 B
SQL

create or replace table accountranks
(
id int auto_increment
primary key,
accountId int not null,
rankIdentifier varchar(40) null,
primaryGroup tinyint(1) null,
constraint additionalIndex
unique (accountId, rankIdentifier, primaryGroup),
constraint accountranks_ibfk_1
foreign key (accountId) references accounts (id)
);
create or replace index accountIndex
on accountranks (accountId);
create or replace index rankIndex
on accountranks (rankIdentifier);