package com.ankaibei.workFlow.webadmin.ankaibei.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * @author
 * @version 1.0
 * @description:其他费用申请表
 * @date 2022/9/21 14:28
 */
@Entity
@Table(name = "rests_info", schema = "ankaibei", catalog = "")
public class RestsInfoEntity {
    private Integer restsId;
    /**
     * 项目名称
     */
    private String projectName;
    /**
     * 时间
     */
    private Date createDate;
    /**
     * 其他信息
     */
    private String restsMessage;
    /**
     * 创建用户
     */
    private String createUser;
    /**
     * 工作流任务处理类型
     */
    private Integer flowTaskStatus;
    /**
     * 记录的创建时间
     */
    private Date createTime;


    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "flow_task_status")
    public Integer getFlowTaskStatus() {
        return flowTaskStatus;
    }

    public void setFlowTaskStatus(Integer flowTaskStatus) {
        this.flowTaskStatus = flowTaskStatus;
    }

    @Id
    @Column(name = "rests_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getRestsId() {
        return restsId;
    }

    public void setRestsId(Integer restsId) {
        this.restsId = restsId;
    }

    @Basic
    @Column(name = "project_name")
    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    @Basic
    @Column(name = "create_date")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Basic
    @Column(name = "rests_message")
    public String getRestsMessage() {
        return restsMessage;
    }

    public void setRestsMessage(String restsMessage) {
        this.restsMessage = restsMessage;
    }


    @Basic
    @Column(name = "create_user")
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Override
    public String toString() {
        return "RestsInfoEntity{" +
                "restsId=" + restsId +
                ", projectName='" + projectName + '\'' +
                ", createDate=" + createDate +
                ", restsMessage='" + restsMessage + '\'' +
                ", createUser='" + createUser + '\'' +
                '}';
    }
}
