package cn.ysk.cashier.pojo.product;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 库存盘点表
 * @TableName tb_product_stocktakin
 */
@Entity
@Table(name="tb_product_stocktakin")
@Data
@EqualsAndHashCode
public class TbProductStocktakin implements Serializable {
    /**
     *
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 店铺id
     */
    @Column(name = "product_id")
    private Integer productId;

    /**
     * skuId
     */
    @Column(name = "sku_id")
    private Integer skuId;

    /**
     * 商品名
     */
    private String name;

    /**
     * 商品封面
     */
    private String coverImg;

    /**
     * 库存数量
     */
    private Integer stock;

    /**
     * 盘点数量
     */
    @Column(name = "inventory_stock")
    private Integer inventoryStock;

    /**
     * 盈亏金额
     */
    @Column(name = "phase_price")
    private BigDecimal phasePrice;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 盈亏数量
     */
    @Column(name = "phase_num")
    private Integer phaseNum;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 备注
     */
    private String note;

    private Integer shopId;

    private static final long serialVersionUID = 1L;


}
