package cn.iocoder.yudao.module.knowledge.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.knowledge.annotation.ExcelOut;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 规章制度表(TRegulatoryFramework)表实体类
 *
 * @author makejava
 * @since 2024-04-12 17:36:32
 */
@Data
public class TRegulatoryFramework extends BaseDO {
    @Schema(description = "主键", example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "文件的唯一编码", example = "RZ2024001")
    private String code;
    //1:安全环保职业健康消防2:财务与资产管理3:采购销售4:党、工、团、纪律监督5:法律合规内审内控6:科技与投资7:企业文化与宣传8:人力资源9:社会责任10:生产管理11:行政管理
    private String type;

    @Schema(description = "规章制度名称", example = "安全管理制度")
    @ExcelOut(name = "名称", sort = 1)
    private String name;

    @Schema(description = "版本号", example = "1.0")
    @ExcelOut(name = "版本号", sort = 2)
    private String version;

    @Schema(description = "文件地址", example = "/path/to/file/example.pdf")
    @ExcelOut(name = "文件地址", sort = 4,width = 85,isFileUrl = true)
    private String fileUrl;

    @Schema(description = "文件大小", example = "1024KB")
    @ExcelOut(name = "文件大小", sort = 3)
    private Long fileSize;

    @Schema(description = "文件原名称", example = "safety_management_policy.pdf")
    private String fileName;

    @Schema(description = "归档时间", example = "2024-04-15T12:00:00")
    private Date filingTime;

    @Schema(description = "是否归档", allowableValues = {"0", "1"}, example = "0")
    private Integer isFiling;



    @Schema(description = "预留字段A")
    private String lawsA;

    @Schema(description = "预留字段B")
    private String lawsB;

    @Schema(description = "创建者", example = "John Doe")
    @ExcelOut(name = "创建人", sort = 5)
    private String creator;

    @Schema(description = "创建者id", example = "1001")
    private String creatorId;



    @Schema(description = "说明", example = "这是一段说明")
    private String describeInfo;


}


