mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-07 19:27:26 +08:00
[+] Unlock option database model
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user