Added Leaves system model

This commit is contained in:
Vindicator645 2020-02-17 17:31:10 +08:00
parent 77113fcdc0
commit 2b14c8aa09
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,36 @@
package com.codesdream.ase.model.leaves;
import com.codesdream.ase.model.permission.User;
import lombok.Data;
import java.util.*;
import javax.persistence.*;
@Data
@Entity
@Table(name = "leaves_archive")
public class Leave {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int id;
//发出人
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private User userFrom;
//审批人容器
@ManyToMany(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
private Set <User> userTo;
//请假类型 病假事假等
@Column(name = "type", nullable = false)
private String type;
//批准状态
@Column(name = "Authentication", nullable = false)
private Boolean Authentication;
//开始时间
@Column(nullable = false)
private Date startTime;
@Column(nullable = false)
private Date endTime;
//申请时间
private Date applyTime;
//认证时间
private Date authTime;
}

View File

@ -0,0 +1,7 @@
package com.codesdream.ase.model.leaves;
/**
请假信息的管理系统
*/
public class LeavesSystem {
}