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-02-10
 */
@Data
@TableName("global_files")
public class GlobalFilesEntity {

    /**
     * $column.comments
     */
	private String hashId;
    /**
     * $column.comments
     */
	private String fileType;
    /**
     * $column.comments
     */
	private Integer size;
    /**
     * $column.comments
     */
	private String url;
    /**
     * $column.comments
     */
    @TableField(value = "metadata", typeHandler = JsonbTypeHandler.class)
	private Map<String,Object> metadata;
    /**
     * $column.comments
     */
	private OffsetDateTime createdAt;
    /**
     * $column.comments
     */
	private OffsetDateTime accessedAt;
}