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;

/**
 * 商城商品SKU表(KxsShopGoodsSku)表实体类
 *
 * @author 系统
 * @since 2023-12-20 10:09:36
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsShopGoodsSku extends Model<KxsShopGoodsSku> 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;


    /**
     * 商品ID
     */
    @Schema(description = "商品ID")
    private Integer goodId;


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


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


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


    /**
     * 库存数量
     */
    @Schema(description = "库存数量")
    private Integer stockNum;


    /**
     * 销量
     */
    @Schema(description = "销量")
    private Integer sales;


    /**
     * sku图片
     */
    @Schema(description = "sku图片")
    private String image;


    /**
     * 商品规格值列表，采用JSON数组格式
     */
    @Schema(description = "商品规格值列表，采用JSON数组格式")
    private String specifications;




}

