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 = "box_spec")
@EqualsAndHashCode(callSuper = true)
public class BoxSpecDO extends BaseDO<BoxSpecDO> {

    /**
     * 规格ID
     */
    @TableId(value = "spec_id", type = IdType.ASSIGN_ID)
    private Long specId;

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

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

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

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

}

