package com.pjilisense.flxai.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pjilisense.flxai.handle.JsonbTypeHandler;
import lombok.Data;

import java.time.OffsetDateTime;
import java.util.Date;
import java.util.Map;

/**
 * ${comments}
 *
 * @author liushujing liushujing@philisense.com
 * @since 1.0.0 2025-01-14
 */
@Data
@TableName("knowledge_bases")
public class KnowledgeBasesEntity {

    /**
     * $column.comments
     */
	private String id;
    /**
     * $column.comments
     */
	private String name;
    /**
     * $column.comments
     */
	private String description;
    /**
     * $column.comments
     */
	private String avatar;
    /**
     * $column.comments
     */
	private String type;
    /**
     * $column.comments
     */
	private String userId;
    /**
     * $column.comments
     */
	private Boolean isPublic;
    /**
     * $column.comments
     */
    @TableField(value = "settings", typeHandler = JsonbTypeHandler.class)
	private Map<String,Object> settings;
    /**
     * $column.comments
     */
	private OffsetDateTime createdAt;
    /**
     * $column.comments
     */
	private OffsetDateTime updatedAt;
    /**
     * $column.comments
     */
	private OffsetDateTime accessedAt;
}