package org.jeecg.modules.database.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 知识库
 * @Author: jeecg-boot
 * @Date: 2024-08-21
 * @Version: V1.0
 */
@Data
@TableName("document_library")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "知识库")
public class DocumentLibrary implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private java.lang.String id;
    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private java.lang.String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "创建日期")
    private java.util.Date   createTime;
    /**
     * 更新人
     */
    @Schema(description = "更新人")
    private java.lang.String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "更新日期")
    private java.util.Date   updateTime;
    /**
     * 所属部门
     */
    @Schema(description = "所属部门")
    private java.lang.String sysOrgCode;
    /**
     * 文档标题
     */
    @Excel(name = "文档标题", width = 15)
    @Schema(description = "文档标题")
    private java.lang.String title;
    /**
     * 文档标签
     */
    @Excel(name = "文档标签", width = 15)
    @Schema(description = "文档标签")
    private java.lang.String tags;
    /**
     * 文档内容
     */
    @Excel(name = "文档内容", width = 15)
    @Schema(description = "文档内容")
    private java.lang.String content;

    /**
     * 父级ID
     */
    @Excel(name = "父级ID", width = 15)
    @Schema(description = "父级ID")
    private java.lang.String parentId;
    /**
     * 类型
     */
    @Excel(name = "类型", width = 15)
    @Schema(description = "类型(DOCUMENT/FOLDER)")
    private java.lang.String type;

    /**
     * 附件
     */
    @Excel(name = "附件", width = 15)
    @Schema(description = "附件")
    private java.lang.String fileList;
}
