package com.pjilisense.flxai.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
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
@ApiModel(value = "${comments}")
public class ChunksDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "$column.comments")
	private UUID id;

	@ApiModelProperty(value = "$column.comments")
	private String text;

	@ApiModelProperty(value = "$column.comments")
	private String abstractx;

	@ApiModelProperty(value = "$column.comments")
	private Map<String,Object> metadata;

	@ApiModelProperty(value = "$column.comments")
	private Integer index;

	@ApiModelProperty(value = "$column.comments")
	private String type;

	@ApiModelProperty(value = "$column.comments")
	@JsonSerialize(using = com.pjilisense.flxai.wrapper.OffsetDateTimeSerializer.class)
	@JsonDeserialize(using = com.pjilisense.flxai.wrapper.OffsetDateTimeDeserializer.class)
	private OffsetDateTime createdAt;

	@ApiModelProperty(value = "$column.comments")
	@JsonSerialize(using = com.pjilisense.flxai.wrapper.OffsetDateTimeSerializer.class)
	@JsonDeserialize(using = com.pjilisense.flxai.wrapper.OffsetDateTimeDeserializer.class)
	private OffsetDateTime updatedAt;

	@ApiModelProperty(value = "$column.comments")
	private String userId;

	@ApiModelProperty(value = "$column.comments")
	@JsonSerialize(using = com.pjilisense.flxai.wrapper.OffsetDateTimeSerializer.class)
	@JsonDeserialize(using = com.pjilisense.flxai.wrapper.OffsetDateTimeDeserializer.class)
	private OffsetDateTime accessedAt;


}