[+] Unlock option database model

This commit is contained in:
Azalea
2024-03-18 01:31:28 -04:00
parent a952674df7
commit 752d65557f
3 changed files with 58 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
CREATE TABLE aqua_game_options
(
id BIGINT AUTO_INCREMENT NOT NULL,
unlock_music BIT(1) NOT NULL,
unlock_chara BIT(1) NOT NULL,
unlock_collectables BIT(1) NOT NULL,
unlock_tickets BIT(1) NOT NULL,
CONSTRAINT pk_aquagameoptions PRIMARY KEY (id)
);
ALTER TABLE aqua_net_user
ADD game_options BIGINT NULL;
ALTER TABLE aqua_net_user
ADD CONSTRAINT uc_aquanetuser_gameoptions UNIQUE (game_options);
ALTER TABLE aqua_net_user
ADD CONSTRAINT FK_AQUANETUSER_ON_GAMEOPTIONS FOREIGN KEY (game_options) REFERENCES aqua_game_options (id);