package com.gxwebsoft.shop.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商家门店店员表
 *
 * @author 科技小王子
 * @since 2022-11-30 16:32:25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "MerchantClerk对象", description = "商家门店店员表")
@TableName("shop_merchant_clerk")
public class MerchantClerk implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商户人员ID")
    @TableId(value = "clerk_id", type = IdType.AUTO)
    private Integer clerkId;

    @ApiModelProperty(value = "关联商户编号")
    private String merchantCode;

    @ApiModelProperty(value = "关联商户名称")
    @TableField(exist = false)
    private String merchantName;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "是否为商户主")
    private Integer isOwner;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty("用户信息")
    @TableField(exist = false)
    private User user;

}
