package com.storlead.sales.pojo.entity.sku;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品详情表
 * </p>
 *
 * @author YPZ
 * @since 2024-08-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sku_detail")
@ApiModel(value="SkuDetailEntity对象", description="产品详情表")
public class SkuDetailEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "报价单表主键")
    @TableField("quotation_id")
    private Long quotationId;

    @ApiModelProperty(value = "固态产品SKU主键(领存表主键)")
    @TableField("ssd_sku_id")
    private Long ssdSkuId;

    @ApiModelProperty(value = "(关联)产品类型ID")
    @TableField("ssd_product_type_id")
    private Integer ssdProductTypeId;

    @ApiModelProperty(value = "sku内部唯一编码")
    @TableField("ssd_sku_code")
    private String ssdSkuCode;

    @ApiModelProperty(value = "单价")
    @TableField("unit_price")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "数量")
    @TableField("product_count")
    private Integer productCount;

    @ApiModelProperty(value = "订单金额")
    @TableField("order_amt")
    private BigDecimal orderAmt;

    @ApiModelProperty(value = "生产周期")
    @TableField("delivery_days")
    private Integer deliveryDays;

    @ApiModelProperty(value = "详情（JSON数据）")
    @TableField("detail")
    private String detail;


}
