using System.ComponentModel.DataAnnotations; using SqlSugar; using Tiobon.Core.Model.Models.RootTkey.Interface; namespace Tiobon.Core.Model; public class BasePoco : BasePoco1 { /// /// 表主键 /// //public long Id { get; set; } [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = false), Display(Name = "表主键")] public long Id { get; set; } } public class BasePoco1 : IBaseDeleteFilter { /// /// 1:有效,0:未生效 /// [Display(Name = "1:有效,0:未生效")] public int IsEnable { get; set; } = 1; ///// ///// 操作日志ID ///// //[Display(Name = "操作日志ID")] //public long? OperateLogID { get; set; } /// /// 创建人 /// [Display(Name = "创建人"), SugarColumn(IsOnlyIgnoreUpdate = true)] public long? CreateBy { get; set; } /// /// 创建时间 /// [Display(Name = "创建时间"), SugarColumn(IsOnlyIgnoreUpdate = true)] public DateTime? CreateTime { get; set; } /// /// 创建程序 /// [Display(Name = "创建程序"), SugarColumn(IsOnlyIgnoreUpdate = true)] public string CreateProg { get; set; } /// /// 创建IP /// [Display(Name = "创建IP"), SugarColumn(IsOnlyIgnoreUpdate = true)] public string CreateIP { get; set; } /// /// 最后修改人 /// [Display(Name = "最后修改人")] public int? UpdateBy { get; set; } /// /// 最后修改时间 /// [Display(Name = "最后修改时间")] public DateTime? UpdateTime { get; set; } /// /// 最后修改程序 /// [Display(Name = "最后修改程序")] public string UpdateProg { get; set; } /// /// 最后修改IP /// [Display(Name = "最后修改IP")] public string UpdateIP { get; set; } }