package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 二期-门店图片
 *
 * @author ssk
 * @since 2024-12-05
 */
@Data
@JsonInclude
@TableName("store_img")
@ApiModel(value = "StoreImg对象", description = "门店图片")
public class StoreImg extends Model<StoreImg> {

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

    @ApiModelProperty(value = "门店id")
    @TableField("store_id")
    private Integer storeId;

    @ApiModelProperty(value = "图片类型, 0:其他, 1:入口图, 2:相册, 3:菜品, 4:环境, 5:价目表, 6:推荐菜, 7:菜单, 8:用户评论, 9:商家申诉,10:商家头像,11:店铺轮播图,12:联名卡图片,13:动态折扣, 14:营业执照,15：合同照片,17:打卡广场小人图片 18: 二手商品发布图片 19:二手商品与用户举报图片，20头图单图模式，21头图多图模式 , 22续签合同, 23 二手商品记录图片类型, 24 食品经营许可证审核前类型 25.食品经营许可证审核后类型 26.运营活动活动标题图 27.运营活动活动详情图 28.运动设施 29.洗浴设施及服务 30.酒水 31.娱乐经营许可证 32.娱乐经营许可证审核前, 33:身份证正面, 34:身份证反面")
    @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 = "是否提取图片颜色：0-未提取，1-已提取")
    @TableField("is_extract")
    private Integer isExtract;

    @ApiModelProperty(value = "图片颜色码")
    @TableField("color_code")
    private String colorCode;

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

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField("created_user_id")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("updated_user_id")
    private Integer updatedUserId;

    @ApiModelProperty(value = "业务ID")
    @TableField("business_id")
    private Integer businessId;

    @ApiModelProperty(value = "相册名称")
    @TableField(exist = false)
    private String albumName;

    @ApiModelProperty(value = "活动类型:COMMENT-评论有礼,MARKETING-营销活动")
    @TableField(exist = false)
    private String activityType;

    @ApiModelProperty(value = "图片状态:0-未审核,1-审核通过,2-审核未通过")
    @TableField("img_status")
    private Integer imgStatus;
}
