package com.kxs.product.api.model;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商城商品表(KxsShopGoods)表实体类
 *
 * @author 系统
 * @since 2023-12-20 10:09:35
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsShopGoods extends Model<KxsShopGoods> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    
    
    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 新增时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "新增时间")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;


    /**
     * 删除标记，0未删除，1已删除
     */
    @Schema(description = "删除标记，0未删除，1已删除")
    private String delFlag;


    /**
     * 版本
     */
    @Schema(description = "版本")
    private Integer version;


    /**
     * 封面图
     */
    @Schema(description = "封面图")
    private String picUrl;


    /**
     * 商品名称
     */
    @Schema(description = "商品名称")
    private String goodsName;


    /**
     * 价格
     */
    @Schema(description = "价格")
    private BigDecimal price;


    /**
     * 子标题
     */
    @Schema(description = "子标题")
    private String subtitle;


    /**
     * 详情
     */
    @Schema(description = "详情")
    private String details;

    /**
     * sku属性详情
     */
    @Schema(description = "sku属性详情")
    private String specList;


    /**
     * 状态 0下架 1上架
     */
    @Schema(description = "状态 0下架 1上架")
    private Integer status;


    /**
     * 分类ID
     */
    @Schema(description = "分类ID")
    private String colId;


    /**
     * 限购数量
     */
    @Schema(description = "限购数量")
    private Integer limitCount;


    /**
     * 起购数量
     */
    @Schema(description = "起购数量")
    private Integer startByCount;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;


    /**
     * 商品类型 0实物商品 1虚拟物品
     */
    @Schema(description = "商品类型 0实物商品 1虚拟物品")
    private Integer goodsType;


    /**
     * 上架时间
     */
    @Schema(description = "上架时间")
    private LocalDateTime upTime;


    /**
     * 下架时间
     */
    @Schema(description = "下架时间")
    private LocalDateTime downTime;




}

