package com.dji.sample.media.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author hqjiang
 * @version 1.0
 * @date 2024/7/2
 */
@TableName(value = "oss_file")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OssFileEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("object_key")
    private String objectKey;

    @TableField("url")
    private String url;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Long createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;

    @TableField("username")
    private String username;
}

