package com.cpop.mall.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 lombok.*;
import lombok.experimental.Accessors;

/**
 * 员工表 实体类。
 *
 * @author DB
 * @since 2023-10-19
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(value = "cp_mall_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;

    /**
     * 用户来源
     */
    private String sourceType;

    /**
     * 角色-品牌-id
     */
    private String roleBrandId;

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

}
