package com.malk.fengkaili.repository.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.malk.base.BasePo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "fkl_dd_contact")
public class FKLDdContactPo extends BasePo {

    /**
     * 员工Id
     */
    private String userId;

    /**
     * 员工姓名
     */
    private String name;

    /**
     * 员工工号
     */
    private String jobNumber;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 部门Id
     */
    private long deptId;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 入职日期
     */
    @Temporal(TemporalType.TIMESTAMP)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date hiredDate;

    /**
     * 离职日期
     */
    @Temporal(TemporalType.TIMESTAMP)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date leaveDate;

    /**
     * 考勤备注 [无需打卡]
     */
    private String remark;
}
