diff --git a/src/main/java/com/backend/soullive_a/entity/Model.java b/src/main/java/com/backend/soullive_a/entity/Model.java new file mode 100644 index 0000000..6d61dfe --- /dev/null +++ b/src/main/java/com/backend/soullive_a/entity/Model.java @@ -0,0 +1,36 @@ +package com.backend.soullive_a.entity; + +import jakarta.persistence.*; +import lombok.*; + +import java.time.LocalDateTime; + +@Entity +@Getter +@Builder +@AllArgsConstructor +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class Model { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "MODEL_ID", nullable = false) + private Long id; + + @Column(name = "MODEL_NAME", nullable = false) + private String modelName; + + @Column(name = "BIRTH", nullable = false) + private LocalDateTime birth; + + @Column(name = "JOB", nullable = false) + private String job; + + @Column(name = "INFO", nullable = false) + private String info; + + @Column(name = "AGENCY", nullable = false) + private String agency; + + @Column(name = "AI_RATE", nullable = false) + private Float aiRate; +} diff --git a/src/main/java/com/backend/soullive_a/entity/ModelImageKeyword.java b/src/main/java/com/backend/soullive_a/entity/ModelImageKeyword.java new file mode 100644 index 0000000..a93d7ba --- /dev/null +++ b/src/main/java/com/backend/soullive_a/entity/ModelImageKeyword.java @@ -0,0 +1,25 @@ +package com.backend.soullive_a.entity; + +import jakarta.persistence.*; +import lombok.*; + +@Entity +@Getter +@Builder +@AllArgsConstructor +@NoArgsConstructor(access = AccessLevel.PROTECTED) + +public class ModelImageKeyword { + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "MODEL_IMAGE_KEYWORD_ID", nullable = false) + private Long id; + + @ManyToOne(fetch = FetchType.LAZY) + @JoinColumn(name = "MODEL_ID", nullable = false) + private Model model; + + @Column(name = "KEYWORD", nullable = false) + private String keyword; +} diff --git a/src/main/java/com/backend/soullive_a/entity/ModelIntroduction.java b/src/main/java/com/backend/soullive_a/entity/ModelIntroduction.java new file mode 100644 index 0000000..176c063 --- /dev/null +++ b/src/main/java/com/backend/soullive_a/entity/ModelIntroduction.java @@ -0,0 +1,17 @@ +package com.backend.soullive_a.entity; + +import jakarta.persistence.*; +import lombok.*; + +@Entity +@Getter +@Builder +@AllArgsConstructor +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class ModelIntroduction { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @OneToOne + @JoinColumn(name = "MODEL_ID", nullable = false) //식별 관계 + private Model model; +} diff --git a/src/main/java/com/backend/soullive_a/entity/ModelRecentAdvertisement.java b/src/main/java/com/backend/soullive_a/entity/ModelRecentAdvertisement.java new file mode 100644 index 0000000..6c07f71 --- /dev/null +++ b/src/main/java/com/backend/soullive_a/entity/ModelRecentAdvertisement.java @@ -0,0 +1,20 @@ +package com.backend.soullive_a.entity; + +import jakarta.persistence.*; +import lombok.*; + +@Entity +@Getter +@Builder +@AllArgsConstructor +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class ModelRecentAdvertisement { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "MODEL_RECENT_ADVERTISEMENT_ID", nullable = false) + private Long id; + + @ManyToOne(fetch = FetchType.LAZY) + @JoinColumn(name = "MODEL_ID", nullable = false) + private Model model; +} diff --git a/src/main/java/com/backend/soullive_a/entity/ModelRecentWork.java b/src/main/java/com/backend/soullive_a/entity/ModelRecentWork.java new file mode 100644 index 0000000..6e4c9bb --- /dev/null +++ b/src/main/java/com/backend/soullive_a/entity/ModelRecentWork.java @@ -0,0 +1,38 @@ +package com.backend.soullive_a.entity; + +import jakarta.persistence.*; +import lombok.*; + +@Entity +@Getter +@Builder +@AllArgsConstructor +@NoArgsConstructor(access = AccessLevel.PROTECTED) +public class ModelRecentWork { + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Column(name = "MODEL_RECENT_WORK_ID", nullable = false) + private Long id; + + @Column(name = "YEAR", nullable = false) + private Integer year; + + @Column(name = "CATEGORY", nullable = false) + private String category; + + @Column(name = "TITLE", nullable = false) + private String title; + + @Column(name = "GENRE", nullable = false) + private String genre; + + @Column(name = "ROLE", nullable = false) + private String role; + + @Column(name = "IS_MAIN_ACTOR", nullable = false) + private Boolean isMainActor; + + @ManyToOne(fetch = FetchType.LAZY) + @JoinColumn(name = "MODEL_ID", nullable = false) + private Model model; +}