package com.sz.admin.monitor.pojo.po;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author xq
 * @description:文件存储数据对象
 * @date 2026/2/2 22:18
 */
@Table("file_storage")
@Schema(description = "文件存储数据对象")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FileStorageDO {
    /**
     * id
     */
    @Id(keyType = KeyType.Generator, value = "uuid")
    @Schema(description = "主键ID")
    private String id;

    /**
     * 文件路径
     */
    @Schema(description = "文件路径")
    private String fileUrl;

    /**
     * 文件大小
     */
    @Schema(description = "文件大小")
    private String fileSize;

    /**
     * 文件名称
     */
    @Schema(description = "文件名称")
    private String fileName;

    /**
     * 文件后缀
     */
    @Schema(description = "文件后缀")
    private String fileSuffix;

    /**
     * 添加时间
     */
    @Schema(description = "添加时间")
    private Date addTime;

    public static final String ID="id";
    public static final String FILE_URL="file_url";
    public static final String FILE_SIZE="file_size";
    public static final String FILE_NAME="file_name";
    public static final String FILE_SUFFIX="file_suffix";
    public static final String ADD_TIME="add_time";
}