using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SqlSugar; using Yi.Framework.Infrastructure.Ddd.Entities; using Yi.Framework.Module.WebFirstManager.Enums; namespace Yi.Framework.Module.WebFirstManager.Entities { public class FieldEntity : IEntity { [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)] public long Id { get; set; } /// /// 字段名称 /// public string Name { get; set; } public string? Description { get; set; } public int OrderNum { get; set; } public int Length { get; set; } public FieldTypeEnum FieldType { get; set; } public long TableId { get; set; } /// /// 是否必填 /// public bool IsRequired { get; set; } /// /// 是否主键 /// public bool IsKey{ get; set; } /// /// 是否自增 /// public bool IsAutoAdd { get; set; } /// /// 是否公共 /// public bool IsPublic { get; set; } } }