package com.gxwebsoft.pwl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 材料库资料库表
 *
 * @author 科技小王子
 * @since 2025-09-28 09:38:17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "PwlProjectLibrary对象", description = "材料库资料库表")
public class PwlProjectLibrary implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "资料库名称")
    private String name;

    @Schema(description = "资料库类型: biz-行业案例库, pub-公共知识库")
    private String type;

    @Schema(description = "关联知识库ID")
    private String kbId;

    @Schema(description = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @Schema(description = "资料库图标")
    private String image;

    @Schema(description = "资料库描述")
    private String content;

    @Schema(description = "关联文件")
    private String files;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "是否推荐")
    private Integer recommend;

    @Schema(description = "状态, 0正常, 1冻结")
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "创建用户ID")
    private Integer userId;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;

}
