diff --git a/src/main/java/com/totopia/server/modules/moneys/entity/BankEntity.java b/src/main/java/com/totopia/server/modules/moneys/entity/BankEntity.java index a546228..584ad78 100644 --- a/src/main/java/com/totopia/server/modules/moneys/entity/BankEntity.java +++ b/src/main/java/com/totopia/server/modules/moneys/entity/BankEntity.java @@ -1,7 +1,7 @@ package com.totopia.server.modules.moneys.entity; -import com.totopia.server.commons.data.entity.DateAuditEntity; -import com.totopia.server.modules.user.type.StatusName; +import com.totopia.server.commons.data.entity.UserDateAuditEntity; +import com.totopia.server.modules.moneys.type.BankStateName; import lombok.*; import lombok.experimental.SuperBuilder; @@ -14,7 +14,7 @@ import javax.persistence.*; @AllArgsConstructor @EqualsAndHashCode(callSuper = false) @Builder -public class BankEntity extends DateAuditEntity { +public class BankEntity extends UserDateAuditEntity { private static final long serialVersionUID = -8628291684559836128L; @@ -23,10 +23,6 @@ public class BankEntity extends DateAuditEntity { @SequenceGenerator(name = "bank_generator", sequenceName = "bank_sequence", initialValue = 1) private Long id; - @Basic - @Column(name = "user_id", nullable = false) - private Long userId; - @Basic @Column(name = "name", nullable = false, length = 100) private String name; @@ -45,7 +41,7 @@ public class BankEntity extends DateAuditEntity { @Basic @Column(name = "status", nullable = false, length = 100) - private StatusName status; + private BankStateName status; @Basic @Column(name = "descriptions", nullable = true, length = 1000) diff --git a/src/main/java/com/totopia/server/modules/moneys/type/BankStateName.java b/src/main/java/com/totopia/server/modules/moneys/type/BankStateName.java new file mode 100644 index 0000000..e7e3880 --- /dev/null +++ b/src/main/java/com/totopia/server/modules/moneys/type/BankStateName.java @@ -0,0 +1,6 @@ +package com.totopia.server.modules.moneys.type; + +public enum BankStateName { + CONFIRM, + NOT_CONFIRM, +}