package com.pjilisense.flxai.entity;

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

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

/**
 * ${comments}
 *
 * @author liushujing liushujing@philisense.com
 * @since 1.0.0 2025-02-10
 */
@Data
@TableName("chunks")
public class ChunksEntity {

    /**
     * $column.comments
     */
	@TableField(typeHandler = UUIDTypeHandler.class)
	private UUID id;
    /**
     * $column.comments
     */
	private String text;
    /**
     * $column.comments
     */
	@TableField(value="abstract")
	private String abstractx;
    /**
     * $column.comments
     */
	@TableField(value = "metadata", typeHandler = JsonbTypeHandler.class)
	private Map<String,Object> metadata;
    /**
     * $column.comments
     */
	private Integer index;
    /**
     * $column.comments
     */
	private String type;
    /**
     * $column.comments
     */
	private OffsetDateTime createdAt;
    /**
     * $column.comments
     */
	private OffsetDateTime updatedAt;
    /**
     * $column.comments
     */
	private String userId;
    /**
     * $column.comments
     */
	private OffsetDateTime accessedAt;
}