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;


/**
 * ${comments}
 *
 * @author liushujing liushujing@philisense.com
 * @since 1.0.0 2025-02-10
 */
@Data
@ApiModel(value = "${comments}")
public class GlobalFilesDTO implements Serializable {
    private static final long serialVersionUID = 1L;

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

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

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

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

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

	@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 accessedAt;


}