package com.cpop.oam.business.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.cpop.core.base.entity.BaseEntity;
import com.cpop.core.base.entity.BaseInsertListener;
import com.cpop.core.base.entity.BaseUpdateListener;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 员工表 实体类。
 *
 * @author DB
 * @since 2023-09-07
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(value = "cp_oam_staff", onInsert = BaseInsertListener.class, onUpdate = BaseUpdateListener.class, mapperGenerateEnable = false)
public class Staff extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @Id
    private String id;

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

    /**
     * 用户id
     */
    private String userId;

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

    /**
     * 角色id
     */
    private String roleId;

    /**
     * 是否是运维账号
     */
    private Boolean isOperation;

    /**
     * 企微用户id
     */
    private String wxCpUserId;

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

}
