mirror of https://github.com/hykilpikonna/AquaDX
[-] Chusan drops database
parent
41e746a70e
commit
3ef7f40e37
|
@ -132,18 +132,12 @@ interface Chu3MatchingMemberRepo : JpaRepository<Chu3MatchingMember, Long> {
|
|||
fun existsByUserIdAndUserName(userId: Long, userName: String): Boolean
|
||||
}
|
||||
|
||||
interface Chu3GameAvatarAccRepo : JpaRepository<AvatarAcc, Long>
|
||||
|
||||
interface Chu3GameCharacterRepo : JpaRepository<Character, Long>
|
||||
|
||||
interface Chu3GameChargeRepo : JpaRepository<GameCharge, Long>
|
||||
|
||||
interface Chu3GameEventRepo : JpaRepository<GameEvent, Int> {
|
||||
fun findByEnable(enable: Boolean): List<GameEvent>
|
||||
}
|
||||
|
||||
interface Chu3GameFrameRepo : JpaRepository<Frame, Long>
|
||||
|
||||
interface Chu3GameGachaCardRepo : JpaRepository<GameGachaCard, Long> {
|
||||
fun findAllByGachaId(gachaId: Int): List<GameGachaCard>
|
||||
}
|
||||
|
@ -172,18 +166,6 @@ interface Chu3GameLoginBonusRepo : JpaRepository<GameLoginBonus, Int> {
|
|||
fun findByRequiredDays(version: Int, presetId: Int, requiredDays: Int): Optional<GameLoginBonus>
|
||||
}
|
||||
|
||||
interface Chu3GameMapIconRepo : JpaRepository<MapIcon, Long>
|
||||
|
||||
interface Chu3GameMusicRepo : JpaRepository<Music, Long> {
|
||||
fun findByMusicId(musicId: Int): Optional<Music>
|
||||
}
|
||||
|
||||
interface Chu3GameNamePlateRepo : JpaRepository<NamePlate, Long>
|
||||
|
||||
interface Chu3GameSystemVoiceRepo : JpaRepository<SystemVoice, Long>
|
||||
|
||||
interface Chu3GameTrophyRepo : JpaRepository<Trophy, Long>
|
||||
|
||||
@Component
|
||||
class Chu3Repos(
|
||||
val userLoginBonus: Chu3UserLoginBonusRepo,
|
||||
|
@ -204,18 +186,10 @@ class Chu3Repos(
|
|||
val userCMission: Chu3UserCMissionRepo,
|
||||
val userCMissionProgress: Chu3UserCMissionProgressRepo,
|
||||
val matchingMember: Chu3MatchingMemberRepo,
|
||||
val gameAvatarAcc: Chu3GameAvatarAccRepo,
|
||||
val gameCharacter: Chu3GameCharacterRepo,
|
||||
val gameCharge: Chu3GameChargeRepo,
|
||||
val gameEvent: Chu3GameEventRepo,
|
||||
val gameFrame: Chu3GameFrameRepo,
|
||||
val gameGachaCard: Chu3GameGachaCardRepo,
|
||||
val gameGacha: Chu3GameGachaRepo,
|
||||
val gameLoginBonusPresets: Chu3GameLoginBonusPresetsRepo,
|
||||
val gameLoginBonus: Chu3GameLoginBonusRepo,
|
||||
val gameMapIcon: Chu3GameMapIconRepo,
|
||||
val gameMusic: Chu3GameMusicRepo,
|
||||
val gameNamePlate: Chu3GameNamePlateRepo,
|
||||
val gameSystemVoice: Chu3GameSystemVoiceRepo,
|
||||
val gameTrophy: Chu3GameTrophyRepo
|
||||
val gameLoginBonus: Chu3GameLoginBonusRepo
|
||||
)
|
|
@ -1,30 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.model.gamedata;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "AvatarAcc")
|
||||
@Table(name = "chusan_avatar")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class AvatarAcc implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private long id;
|
||||
|
||||
private String name;
|
||||
|
||||
private int category;
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.model.gamedata;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "ChusanCharacter")
|
||||
@Table(name = "chusan_game_character")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Character implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private long id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String releaseTag;
|
||||
|
||||
private String worksName;
|
||||
|
||||
private String illustratorName;
|
||||
|
||||
private String addImages;
|
||||
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.model.gamedata;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "ChusanFrame")
|
||||
@Table(name = "chusan_frame")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Frame implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private long id;
|
||||
|
||||
private String name;
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.model.gamedata;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
public enum Genre {
|
||||
POPS_ANIME("POPS & ANIME"),
|
||||
GAME("GAME"),
|
||||
NICONICO("niconico"),
|
||||
TOUHOU("東方Project"),
|
||||
RESERVE2("Reserve2"),
|
||||
ORIGINAL("Original"),
|
||||
VARIETY("Variety"),
|
||||
IRODORI("イロドリミドリ"),
|
||||
KOTONOHA("言ノ葉Project"),
|
||||
GEKICHUMA("ゲキマイ");
|
||||
|
||||
private String displayName;
|
||||
|
||||
Genre(String displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
|
||||
public String displayName() {
|
||||
return displayName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return displayName;
|
||||
}
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.model.gamedata;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "ChusanMusicLevel")
|
||||
@Table(name = "chusan_music_level")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Level implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@JsonIgnore
|
||||
private long id;
|
||||
|
||||
@JsonIgnore
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "music_id")
|
||||
private Music music;
|
||||
|
||||
private boolean enable;
|
||||
|
||||
private int level;
|
||||
|
||||
private int levelDecimal;
|
||||
|
||||
private int diff;
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.model.gamedata;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "ChusanMapIcon")
|
||||
@Table(name = "chusan_mapicon")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class MapIcon implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private long id;
|
||||
|
||||
private String name;
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.model.gamedata;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "ChusanMusic")
|
||||
@Table(name = "chusan_music")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Music implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private int musicId;
|
||||
|
||||
private String name;
|
||||
|
||||
private String sortName;
|
||||
|
||||
private String artistName;
|
||||
|
||||
private Genre genre;
|
||||
|
||||
private String releaseVersion;
|
||||
|
||||
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "music")
|
||||
@MapKey(name = "diff")
|
||||
private Map<Integer, Level> levels;
|
||||
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.model.gamedata;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "ChusanNamePlate")
|
||||
@Table(name = "chusan_nameplate")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class NamePlate implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private long id;
|
||||
|
||||
private String name;
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.model.gamedata;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "ChusanSystemVoice")
|
||||
@Table(name = "chusan_voice")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class SystemVoice implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private long id;
|
||||
|
||||
private String name;
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
package icu.samnyan.aqua.sega.chusan.model.gamedata;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author samnyan (privateamusement@protonmail.com)
|
||||
*/
|
||||
@Entity(name = "ChusanTrophy")
|
||||
@Table(name = "chusan_trophy")
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Trophy implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private long id;
|
||||
|
||||
private String name;
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
DROP TABLE chusan_avatar;
|
||||
DROP TABLE chusan_frame;
|
||||
DROP TABLE chusan_mapicon;
|
||||
DROP TABLE chusan_nameplate;
|
||||
DROP TABLE chusan_voice;
|
||||
DROP TABLE chusan_trophy;
|
||||
DROP TABLE chusan_music;
|
||||
DROP TABLE chusan_music_level;
|
||||
DROP TABLE chusan_game_character;
|
Loading…
Reference in New Issue