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