Files
number_zj/20220330_Vote/Ewide.Core/Entity/SysFile.cs
2022-03-30 17:54:33 +08:00

62 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
namespace Ewide.Core
{
/// <summary>
/// 文件信息表
/// </summary>
[Table("sys_file")]
[Comment("文件信息表")]
public class SysFile : DEntityBase
{
/// <summary>
/// 文件存储位置1:阿里云2:腾讯云3:minio4:本地)
/// </summary>
[Comment("文件存储位置")]
public int FileLocation { get; set; }
/// <summary>
/// 文件仓库
/// </summary>
[Comment("文件仓库")]
public string FileBucket { get; set; }
/// <summary>
/// 文件名称(上传时候的文件名)
/// </summary>
[Comment("文件名称")]
public string FileOriginName { get; set; }
/// <summary>
/// 文件后缀
/// </summary>
[Comment("文件后缀")]
public string FileSuffix { get; set; }
/// <summary>
/// 文件大小kb
/// </summary>
[Comment("文件大小kb")]
public long FileSizeKb { get; set; }
/// <summary>
/// 文件大小信息,计算后的
/// </summary>
[Comment("文件大小信息")]
public string FileSizeInfo { get; set; }
/// <summary>
/// 存储到bucket的名称文件唯一标识id
/// </summary>
[Comment("存储到bucket的名称")]
public string FileObjectName { get; set; }
/// <summary>
/// 存储路径
/// </summary>
[Comment("存储路径")]
public string FilePath { get; set; }
}
}