mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-08 03:47:27 +08:00
[ongeki] Add summer support
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
create table ongeki_user_boss
|
||||
(
|
||||
id bigint auto_increment
|
||||
primary key,
|
||||
music_id int not null,
|
||||
damage int not null,
|
||||
is_clear bit not null,
|
||||
user_id bigint null,
|
||||
constraint UKkXe5S9552jrSJP65
|
||||
unique (user_id, music_id),
|
||||
constraint FKRvEJ2eAwDd3br6bv
|
||||
foreign key (user_id) references ongeki_user_data (id)
|
||||
);
|
||||
|
||||
create table ongeki_user_scenario
|
||||
(
|
||||
id bigint auto_increment
|
||||
primary key,
|
||||
scenario_id int not null,
|
||||
play_count int not null,
|
||||
user_id bigint null,
|
||||
constraint UKCovwoDYcZ532HDvs
|
||||
unique (user_id, scenario_id),
|
||||
constraint FKFyD2tqndcCe9qQMA
|
||||
foreign key (user_id) references ongeki_user_data (id)
|
||||
);
|
||||
|
||||
create table ongeki_user_tech_count
|
||||
(
|
||||
id bigint auto_increment
|
||||
primary key,
|
||||
level_id int not null,
|
||||
all_break_count int not null,
|
||||
all_break_plus_count int not null,
|
||||
user_id bigint null,
|
||||
constraint UKvREetXbYLNAtX5G7
|
||||
unique (user_id, level_id),
|
||||
constraint FKkg4dYVKWYr8tGkDk
|
||||
foreign key (user_id) references ongeki_user_data (id)
|
||||
);
|
||||
@@ -0,0 +1,46 @@
|
||||
create table ongeki_user_boss
|
||||
(
|
||||
id INTEGER,
|
||||
music_id INTEGER NOT NULL,
|
||||
damage INTEGER NOT NULL,
|
||||
is_clear BOOLEAN NOT NULL,
|
||||
user_id BIGINT REFERENCES ongeki_user_data (id) ON DELETE CASCADE,
|
||||
PRIMARY KEY (
|
||||
id
|
||||
),
|
||||
CONSTRAINT ongeki_user_boss_uq UNIQUE (
|
||||
music_id,
|
||||
user_id
|
||||
) ON CONFLICT REPLACE
|
||||
);
|
||||
|
||||
create table ongeki_user_scenario
|
||||
(
|
||||
id INTEGER,
|
||||
scenario_id INTEGER NOT NULL,
|
||||
play_count INTEGER NOT NULL,
|
||||
user_id BIGINT REFERENCES ongeki_user_data (id) ON DELETE CASCADE,
|
||||
PRIMARY KEY (
|
||||
id
|
||||
),
|
||||
CONSTRAINT ongeki_user_scenario_uq UNIQUE (
|
||||
scenario_id,
|
||||
user_id
|
||||
) ON CONFLICT REPLACE
|
||||
);
|
||||
|
||||
create table ongeki_user_tech_count
|
||||
(
|
||||
id INTEGER,
|
||||
level_id INTEGER NOT NULL,
|
||||
all_break_count INTEGER NOT NULL,
|
||||
all_break_plus_count INTEGER NOT NULL,
|
||||
user_id BIGINT REFERENCES ongeki_user_data (id) ON DELETE CASCADE,
|
||||
PRIMARY KEY (
|
||||
id
|
||||
),
|
||||
CONSTRAINT ongeki_user_tech_count_uq UNIQUE (
|
||||
level_id,
|
||||
user_id
|
||||
) ON CONFLICT REPLACE
|
||||
);
|
||||
Reference in New Issue
Block a user