diff --git a/AquaNet/src/libs/maimaiTypes.ts b/AquaNet/src/libs/maimaiTypes.ts index 61e3539d..9695e803 100644 --- a/AquaNet/src/libs/maimaiTypes.ts +++ b/AquaNet/src/libs/maimaiTypes.ts @@ -113,4 +113,6 @@ export interface MaimaiUserPlaylog { trialPlayAchievement: number; extNum1: number; extNum2: number; + extNum4: number; + extBool1: boolean; } diff --git a/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserDetail.java b/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserDetail.java index b80122b8..04b9464c 100644 --- a/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserDetail.java +++ b/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserDetail.java @@ -153,4 +153,6 @@ public class UserDetail implements Serializable { @Transient private int cmLastEmoneyCredit = 69; private int mapStock; + private int currentPlayCount; + private int renameCredit; } diff --git a/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserPlaylog.java b/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserPlaylog.java index 6dee31e2..4e8b8adf 100644 --- a/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserPlaylog.java +++ b/src/main/java/icu/samnyan/aqua/sega/maimai2/model/userdata/UserPlaylog.java @@ -255,4 +255,9 @@ public class UserPlaylog implements Serializable { private int extNum2; + private int extNum4; + + @JsonProperty("extBool1") + private boolean extBool1; + } diff --git a/src/main/resources/db/migration/mariadb/V255__add_maimai_140_ext_field.sql b/src/main/resources/db/migration/mariadb/V255__add_maimai_140_ext_field.sql new file mode 100644 index 00000000..dac088c4 --- /dev/null +++ b/src/main/resources/db/migration/mariadb/V255__add_maimai_140_ext_field.sql @@ -0,0 +1,8 @@ +-- maimai2_user_playlog +ALTER TABLE maimai2_user_playlog ADD COLUMN ext_bool1 BOOLEAN; +ALTER TABLE maimai2_user_playlog ADD COLUMN ext_num4 INTEGER; +UPDATE maimai2_user_playlog SET ext_num4=0; + +-- maimai2_user_detail +ALTER TABLE maimai2_user_detail ADD COLUMN current_play_count INTEGER; +ALTER TABLE maimai2_user_detail ADD COLUMN rename_credit INTEGER; \ No newline at end of file diff --git a/src/main/resources/db/migration/mysql/V255__add_maimai_140_ext_field.sql b/src/main/resources/db/migration/mysql/V255__add_maimai_140_ext_field.sql new file mode 100644 index 00000000..dac088c4 --- /dev/null +++ b/src/main/resources/db/migration/mysql/V255__add_maimai_140_ext_field.sql @@ -0,0 +1,8 @@ +-- maimai2_user_playlog +ALTER TABLE maimai2_user_playlog ADD COLUMN ext_bool1 BOOLEAN; +ALTER TABLE maimai2_user_playlog ADD COLUMN ext_num4 INTEGER; +UPDATE maimai2_user_playlog SET ext_num4=0; + +-- maimai2_user_detail +ALTER TABLE maimai2_user_detail ADD COLUMN current_play_count INTEGER; +ALTER TABLE maimai2_user_detail ADD COLUMN rename_credit INTEGER; \ No newline at end of file diff --git a/src/main/resources/db/migration/sqlite/V255__add_maimai_140_ext_field.sql b/src/main/resources/db/migration/sqlite/V255__add_maimai_140_ext_field.sql new file mode 100644 index 00000000..dac088c4 --- /dev/null +++ b/src/main/resources/db/migration/sqlite/V255__add_maimai_140_ext_field.sql @@ -0,0 +1,8 @@ +-- maimai2_user_playlog +ALTER TABLE maimai2_user_playlog ADD COLUMN ext_bool1 BOOLEAN; +ALTER TABLE maimai2_user_playlog ADD COLUMN ext_num4 INTEGER; +UPDATE maimai2_user_playlog SET ext_num4=0; + +-- maimai2_user_detail +ALTER TABLE maimai2_user_detail ADD COLUMN current_play_count INTEGER; +ALTER TABLE maimai2_user_detail ADD COLUMN rename_credit INTEGER; \ No newline at end of file