1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using OASystem.Domain.Attributes;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace OASystem.Domain.Entities
- {
-
-
-
- public class EntityBase
- {
-
-
-
- [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, IsNullable = false)]
- public int Id { get; set; }
-
-
-
- [SugarColumn(ColumnDescription = "创建者Id", IsNullable = true, ColumnDataType = "int")]
- public int CreateUserId { get; set; }
-
-
-
- [SugarColumn(ColumnDescription = "创建时间", IsNullable = true, ColumnDataType = "DateTime")]
- public DateTime CreateTime { get; set; } = DateTime.Now;
-
-
-
- [SugarColumn(ColumnDescription = "删除者Id", IsNullable = true, ColumnDataType = "int")]
- public int? DeleteUserId { get; set; }
-
-
-
- [SugarColumn(ColumnDescription = "删除时间", IsNullable = true, ColumnDataType = "varchar(30)")]
- public string DeleteTime { get; set; }
-
-
-
- [Encrypted]
- [SugarColumn(IsNullable = true, ColumnDataType = "varchar(500)")]
- public string Remark { get; set; }
-
-
-
- [SugarColumn(ColumnDescription = "是否删除", IsNullable = true, ColumnDataType = "int")]
- public int IsDel { get; set; } = 0;
- }
- }
|