package com.bonus.canteen.core.menu.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.bonus.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;

import java.time.LocalDateTime;

/**
 * 原料类别对象 menu_material_category
 *
 * @author xsheng
 * @date 2025-04-03
 */


@Data
@ToString
@TableName("menu_material_category")
public class MenuMaterialCategory extends Model<MenuMaterialCategory> {
    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("主键id")
    private Long id;
    @ApiModelProperty("类别id")
    private Long categoryId;
    @ApiModelProperty("类别编码")
    private String categoryNum;
    @ApiModelProperty("类别名称")
    private String categoryName;
    @ApiModelProperty("父类id")
    private Long parentId;
    @ApiModelProperty("类型(1原料2商品)")
    private Integer categoryType;
    @ApiModelProperty("删除标识(1-删除,2-正常)")
    @TableField(exist = false)
    private Integer delFlag;
    @ApiModelProperty("乐观锁")
    private Integer revision;
    @TableField(value = "create_by",fill = FieldFill.INSERT)
    @ApiModelProperty("创建人")
    private String createBy;
    @TableField( value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    @TableField(value = "update_by",fill = FieldFill.UPDATE )
    @ApiModelProperty("更新人")
    private String updateBy;
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
    @ApiModelProperty("区域ID")
    private Long areaId;
    @ApiModelProperty("等级(0,1,2,3)")
    private Integer level;
    @ApiModelProperty("大类id")
    private Long bigCategoryId;
    @ApiModelProperty("备注")
    private String remark;

}
