package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 达人图片表
 * </p>
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ExpertImg对象", description="达人图片表")
public class ExpertImg extends Model<ExpertImg> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "达人id")
    @TableField(value = "expert_id")
    private Integer expertId;

    @ApiModelProperty(value = "达人码")
    @TableField("expert_code")
    private Integer expertCode;

    @ApiModelProperty(value = "用户id（life_user表id）")
    @TableField("user_id")
    private Integer userId;


    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @ApiModelProperty(value = "图片类型 0 申请成为达人上传的图片")
    @TableField("img_type")
    private Integer imgType;

    @ApiModelProperty(value = "图片描述")
    @TableField("img_description")
    private String imgDescription;

    @ApiModelProperty(value = "图片排序")
    @TableField("img_sort")
    private Integer imgSort;

    @ApiModelProperty(value = "图片路径")
    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty(value = "补充说明")
    @TableField(value = "add_explanation")
    private String addExplanation;


    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private Date createdTime;


    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;


    @ApiModelProperty(value = "推广类型")
    @TableField(value = "promote_type")
    private String promoteType;








}
