package cn.cslg.pas.domain;

import cn.cslg.pas.common.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 模板表
 * </p>
 *
 * @author 王岩
 * @since 2022-03-31
 */
@Data
@TableName("os_template")
public class ReportTemplate extends BaseEntity<ReportTemplate> {

    /**
     * 模板名称
     */
    private String name;

    /**
     * 可见性
     */
    private Integer permissions;

    /**
     * 专题
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer projectId;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 模板文档路径
     */
    @TableField("docpath")
    private String path;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建者ID
     */
    private Integer createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private List<ReportTemplateLabel> label;

    @TableField(exist = false)
    private String projectName;

    @TableField(exist = false)
    private String createName;

    @TableField(exist = false)
    private String labelConfig;
}
