package thyyxxk.webserver.entity.dictionary.pathwayTemplates.dto;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.util.Date;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "clinical_pathway_templates")
public class ClinicalPathwayTemplates implements Serializable {

    private static final long serialVersionUID = 5372399634846578484L;

    /**
     * 雪花算法id
     */
    @TableId(type = IdType.NONE)
    private String id;

    /**
     * 模板名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 科室名称 00000 - 全院模板
     */
    @TableField(value = "dept_code")
    private String deptCode;

    /**
     * createTime
     */
    @TableField(fill = FieldFill.INSERT, value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT, value = "create_code")
    private String createCode;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE, value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Boolean delFlag;

    /**
     * updateCode
     */
    @TableField(fill = FieldFill.UPDATE, value = "update_code")
    private String updateCode;

    /**
     * 是否文件夹
     */
    @TableField(value = "is_dir")
    private Boolean isDir;

    /**
     * 父节点
     */
    @TableField(value = "parent_code")
    private String parentCode;

    /**
     * 是否发布发布后就不能再修改和删除了就一直存在
     */
    @TableField(value = "publish")
    private Boolean publish;

    @TableField(value = "describe")
    private String describe;

    public static LambdaQueryWrapper<ClinicalPathwayTemplates> lambdaQueryWrapper() {
        return new LambdaQueryWrapper<>();
    }

    public static QueryWrapper<ClinicalPathwayTemplates> queryWrapper() {
        return new QueryWrapper<>();
    }


}
