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.datasource.domain.entity.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

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

	/**
	 * 礼盒ID
	 */
	@TableId(value = "box_id", type = IdType.ASSIGN_ID)
	private Long boxId;

	/**
	 * 礼盒名称
	 */
	@TableField(value = "name")
	private String name;

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

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

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

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

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

}

