You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB
C#

9 months ago
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ZhongLianModel
{
/// <summary>
/// 文件
/// </summary>
[SugarTable("ZL_File_{year}{month}{day}")]
[SplitTable(SplitType.Year)]
public class FileDO
{
/// <summary>
/// 编号
/// </summary>
[SugarColumn(IsPrimaryKey = true,Length = 100)]
public string? Id { get; set; }
/// <summary>
/// 文件名称
/// </summary>
[SugarColumn(IsNullable = true,Length = 200)]
public string? FileName { get; set; }
/// <summary>
/// 文件类型
/// </summary>
[SugarColumn(IsNullable = true,Length = 50)]
public string? ContentType { get; set; }
/// <summary>
/// 数据
/// </summary>
[SugarColumn(IsNullable = true,ColumnDataType = "LONGBLOB")]
public byte[]? Data { get; set; }
/// <summary>
/// 创建日期
/// </summary>
[SplitField]
[SugarColumn(IsNullable = true)]
public DateTime? CreateDate { get; set; }
}
}