70 lines
2.1 KiB
C#
70 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text.Json.Serialization;
|
|
using SqlSugar;
|
|
using Yi.Framework.Model.Base;
|
|
|
|
namespace Yi.Framework.Model.RABC.Entitys
|
|
{
|
|
[SplitTable(SplitType.Year)]
|
|
[SugarTable("SplitLog_{year}{month}{day}")]
|
|
public partial class LogEntity : IBaseModelEntity
|
|
{
|
|
public LogEntity()
|
|
{
|
|
CreateTime = DateTime.Now;
|
|
}
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
|
|
public long Id { get; set; }
|
|
/// <summary>
|
|
/// 创建者
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "CreateUser")]
|
|
public long? CreateUser { get; set; }
|
|
/// <summary>
|
|
/// 修改者
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "ModifyUser")]
|
|
public long? ModifyUser { get; set; }
|
|
/// <summary>
|
|
/// 修改时间
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "ModifyTime")]
|
|
public DateTime? ModifyTime { get; set; }
|
|
/// <summary>
|
|
/// 是否删除
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "IsDeleted")]
|
|
public bool? IsDeleted { get; set; }
|
|
/// <summary>
|
|
/// 租户Id
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "TenantId")]
|
|
public long? TenantId { get; set; }
|
|
/// <summary>
|
|
/// 消息
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Message")]
|
|
public string? Message { get; set; }
|
|
/// <summary>
|
|
/// 排序字段
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "OrderNum")]
|
|
public int? OrderNum { get; set; }
|
|
/// <summary>
|
|
/// 描述
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "Remark")]
|
|
public string? Remark { get; set; }
|
|
|
|
[SplitField] //分表字段 在插入的时候会根据这个字段插入哪个表,在更新删除的时候用这个字段找出相关表
|
|
/// <summary>
|
|
/// 创建时间
|
|
///</summary>
|
|
[SugarColumn(ColumnName = "CreateTime")]
|
|
public DateTime? CreateTime { get; set; }
|
|
}
|
|
}
|