package cn.cslg.report.entity;

import cn.cslg.report.common.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 模板表
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "TEMPLATE")
public class Template extends BaseEntity<Template> {
    /**
     * 模板名称
     */
    @Schema(description = "模板名称")
    @TableField(value = "TEMPLATE_NAME")
    private String templateName;

    /**
     * 模板路径
     */
    @Schema(description = "模板路径")
    @TableField(value = "TEMPLATE_PATH")
    private String templatePath;

    /**
     * 模板创建人ID
     */
    @Schema(description = "模板创建人ID")
    @TableField(value = "PERSON_ID")
    private Integer personId;

    /**
     * 模板创建人名
     */
    @Schema(description = "模板创建人名")
    @TableField(value = "PERSON_NAME")
    private String personName;
    /**
     * 报告类型
     */
    @Schema(description = "报告类型 ")
    @TableField(value = "REPORT_TYPE")
    private Integer reportType;

    /**
     * 模板创建时间
     */
    @Schema(description = "模板创建时间")
    @TableField(value = "CREATE_TIME")
    private String createTime;

    /**
     * 每页条数
     */
    @Schema(description = "每页条数")
    @TableField(exist = false)
    private Integer size;

    /**
     * 当前页数
     */
    @Schema(description = "当前页数")
    @TableField(exist = false)
    private Integer current;
}
