뱅크 상태 타입 추가
This commit is contained in:
parent
8d9e5f52f2
commit
bbec9664f8
|
@ -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)
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
package com.totopia.server.modules.moneys.type;
|
||||
|
||||
public enum BankStateName {
|
||||
CONFIRM,
|
||||
NOT_CONFIRM,
|
||||
}
|
Loading…
Reference in New Issue
Block a user