package com.jeeplus.psimanage.dishManage.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jeeplus.core.domain.TreeEntity;
import com.jeeplus.core.query.Query;
import lombok.Data;

import java.util.Date;

/**
 * 菜品分类
 */
@Data
@TableName("psi_dish_type")
public class PsiDishType extends TreeEntity<PsiDishType> {

    private static final long serialVersionUID = 1L;

    @TableId
    private String id;

    @TableField(exist = false)
    private Date createDate;

    @Query
    @TableField(exist = false)
    private String createBy;

    @TableField(exist = false)
    private Date updateDate;

    @TableField(exist = false)
    private String updateBy;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer delFlag;

    /**
     * 分类名称
     */
    @Query
    private String name;

    /**
     * 父级ID
     */
    private String parentId;

    /**
     * 父级链路
     */
    private String parentIds;

    /**
     * 层级
     */
    private String level;

    /**
     * 排序
     */
    @Query
    private Integer sort;

    /**
     * 状态：0启用，1停用
     */
    private String status;

    /**
     * 备注
     */
    private String remarks;

    @TableField(exist = false)
    private Boolean disabled = false;
}
