package com.xunhong.erp.turbo.biz.infrastructure.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xunhong.erp.turbo.api.biz.dto.enums.BoxBrandTypeEnum;
import com.xunhong.erp.turbo.datasource.domain.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author shenyifei
 */
@Data
@TableName(value = "box_product")
@EqualsAndHashCode(callSuper = true)
public class BoxProductDO extends BaseDO<BoxProductDO> {

	/**
	 * 产品ID
	 */
	@TableId(value = "product_id", type = IdType.ASSIGN_ID)
	private Long productId;

	/**
	 * 纸箱名称
	 */
	@TableField(value = "name")
	private String name;

	/**
	 * 重量(kg)
	 */
	@TableField(value = "weight")
	private BigDecimal weight;

	/**
	 * 成本价
	 */
	@TableField(value = "cost_price")
	private BigDecimal costPrice;

	/**
	 * 销售价
	 */
	@TableField(value = "sale_price")
	private BigDecimal salePrice;

	/**
	 * 规格ID
	 */
	@TableField(value = "spec_id")
	private Long specId;

	/**
	 * 规格名称
	 */
	@TableField(value = "spec_name")
	private String specName;

	/**
	 * 品牌ID
	 */
	@TableField(value = "brand_id")
	private Long brandId;

	/**
	 * 品牌类型：1_我方纸箱；2_瓜农纸箱；3_第三方纸箱；4_礼盒；
	 */
	@TableField(value = "type")
	private BoxBrandTypeEnum type;

	/**
	 * 备注
	 */
	@TableField(value = "remark")
	private String remark;

	/**
	 * 状态：1_启用；0_禁用
	 */
	@TableField(value = "status")
	private Boolean status;

	/**
	 * 排序
	 */
	@TableField(value = "sort")
	private BigDecimal sort;

}
