package com.cpop.clockin.business.entity;

import com.cpop.core.base.entity.BaseEntity;
import com.cpop.core.base.entity.BaseInsertListener;
import com.cpop.core.base.entity.BaseUpdateListener;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 员工表 实体类。
 *
 * @author Yxz
 * @since 2024-01-23
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "员工表对象")
@Table(value = "cp_oam_staff", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class ClockInStaff extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @Id
    private String id;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    private String name;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private String userId;

    /**
     * 员工类型(0:技术人员;1:售后人员;2:管理人员)
     */
    @ApiModelProperty(value = "员工类型(0:技术人员;1:售后人员;2:管理人员)")
    private Integer staffType;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id")
    private String roleId;

    /**
     * 微信用userId
     */
    @ApiModelProperty(value = "微信用userId")
    private String wxCpUserId;

    /**
     * 是否是运维账号
     */
    @ApiModelProperty(value = "是否是运维账号")
    private Boolean isOperation;





    /**
     * 逻辑删除(0否1是)
     */
    @ApiModelProperty(value = "逻辑删除(0否1是)")
    @Column(isLogicDelete = true)
    private Boolean isDelete;

}
