package shop.alien.entity.second;

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

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@JsonInclude
@TableName("second_goods_record")
public class SecondGoodsRecord implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty("一级分类名称")
    @TableField(exist = false)
    private String categoryOneName;

    @ApiModelProperty("二级分类名称")
    @TableField(exist = false)
    private String categoryTwoName;

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

    @TableField("goods_id")
    @ApiModelProperty(value = "商品ID")
    private Integer goodsId;

    @TableField("operation_name")
    @ApiModelProperty(value = "操作名称")
    private String operationName;

    @TableField("title")
    @ApiModelProperty(value = "商品标题")
    private String title;

    @TableField("description")
    @ApiModelProperty(value = "商品描述")
    private String description;

    @TableField("price")
    @ApiModelProperty(value = "商品价格（元，保留小数后两位）")
    private BigDecimal price;

    @TableField("price")
    @ApiModelProperty(value = "商品价格（元，保留小数后两位）")
    private BigDecimal amount;

    @TableField("position")
    @ApiModelProperty(value = "商品位置")
    private String position;

    @TableField("like_count")
    @ApiModelProperty(value = "点赞数量")
    private Integer likeCount;

    @TableField("collect_count")
    @ApiModelProperty(value = "收藏数量")
    private Integer collectCount;

    @TableField("category_one_id")
    @ApiModelProperty(value = "一级类别ID")
    private Integer categoryOneId;

    @TableField("category_two_id")
    @ApiModelProperty(value = "二级类别ID")
    private Integer categoryTwoId;

    @TableField("label")
    @ApiModelProperty(value = "标签")
    private String label;

    @TableField("topic")
    @ApiModelProperty(value = "话题（以逗号分隔）")
    private String topic;

    @TableField("trade_id")
    @ApiModelProperty(value = "交易ID")
    private Integer tradeId;

    @TableField("release_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "发布时间")
    private Date releaseTime;

    @TableField("goods_status")
    @ApiModelProperty(value = "商品状态 0:草稿 1:审核中 2:审核失败 3:已上架 4:已下架 5:已售出")
    private Integer goodsStatus;

    @TableField("failed_reason")
    @ApiModelProperty(value = "审核失败原因")
    private String failedReason;

    @TableField("home_image")
    @ApiModelProperty(value = "首页图")
    private String homeImage;

    @TableField("video_task_id")
    @ApiModelProperty(value = "视频审核任务id")
    private String videoTaskId;

    @TableField("video_first_frame")
    @ApiModelProperty(value = "视频第一帧图片")
    private String videoFirstFrame;

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

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

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

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

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

    @TableField("address_text")
    @ApiModelProperty(value = "地址文本")
    private String addressText;
}