Blog.Core/Blog.Core.Model/Logs/GlobalErrorLog.cs
2023-12-13 11:04:04 +08:00

13 lines
422 B
C#

using Blog.Core.Model.Base;
using SqlSugar;
namespace Blog.Core.Model.Logs;
[Tenant("log")]
[SplitTable(SplitType.Month)] //按月分表 (自带分表支持 年、季、月、周、日)
[SugarTable($@"{nameof(GlobalErrorLog)}_{{year}}{{month}}{{day}}")]
public class GlobalErrorLog : BaseLog
{
[SugarColumn(IsNullable = true, ColumnDataType = "longtext,text,clob")]
public string Exception { get; set; }
}