using System;
using SqlSugar;
using System.ComponentModel;
using GDZZ.Core.Entity;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Core.Entity
{
///
/// 文件信息表
///
[SugarTable("sys_file")]
[Description("文件信息表")]
public class SysFile : DEntityBase
{
///
/// 文件存储位置(1:阿里云,2:腾讯云,3:minio,4:本地)
///
[SugarColumn(ColumnDescription = "文件存储位置(1:阿里云,2:腾讯云,3:minio,4:本地")]
public int FileLocation { get; set; }
///
/// 文件仓库
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "文件仓库", IsNullable = true)]
public string FileBucket { get; set; }
///
/// 文件名称(上传时候的文件名)
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "文件名称(上传时候的文件名)", IsNullable = true)]
public string FileOriginName { get; set; }
///
/// 文件后缀
///
[MaxLength(50)]
[SugarColumn(ColumnDescription = "文件后缀", IsNullable = true)]
public string FileSuffix { get; set; }
///
/// 文件大小kb
///
[MaxLength(10)]
[SugarColumn(ColumnDescription = "文件大小kb", IsNullable = true)]
public string FileSizeKb { get; set; }
///
/// 文件大小信息,计算后的
///
[MaxLength(50)]
[SugarColumn(ColumnDescription = "文件大小信息,计算后的", IsNullable = true)]
public string FileSizeInfo { get; set; }
///
/// 存储到bucket的名称(文件唯一标识id)
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "存储到bucket的名称(文件唯一标识id)", IsNullable = true)]
public string FileObjectName { get; set; }
///
/// 存储路径
///
[MaxLength(100)]
[SugarColumn(ColumnDescription = "存储路径", IsNullable = true)]
public string FilePath { get; set; }
///
/// 文件描述
///
[MaxLength(2000)]
[SugarColumn(ColumnDescription = "文件描述", IsNullable = true)]
public string Info { get; set; }
}
}