fix: default dispatchStatus/empStatus for employee create
This commit is contained in:
@@ -44,17 +44,20 @@ public class Employee extends BaseEntity {
|
||||
@Column(name = "phone", length = 20)
|
||||
private String phone;
|
||||
|
||||
@Builder.Default
|
||||
@Enumerated(EnumType.STRING)
|
||||
@Column(name = "role_code", nullable = false, length = 20)
|
||||
private RoleCode roleCode;
|
||||
private RoleCode roleCode = RoleCode.EMPLOYEE;
|
||||
|
||||
@Builder.Default
|
||||
@Enumerated(EnumType.STRING)
|
||||
@Column(name = "emp_status", nullable = false, length = 20)
|
||||
private EmpStatus empStatus;
|
||||
private EmpStatus empStatus = EmpStatus.ACTIVE;
|
||||
|
||||
@Builder.Default
|
||||
@Enumerated(EnumType.STRING)
|
||||
@Column(name = "dispatch_status", nullable = false, length = 20)
|
||||
private DispatchStatus dispatchStatus;
|
||||
private DispatchStatus dispatchStatus = DispatchStatus.WAITING;
|
||||
|
||||
@Column(name = "joined_date")
|
||||
private LocalDate joinedDate;
|
||||
|
||||
Reference in New Issue
Block a user