| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using SqlSugar;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- namespace Admin.NET.Core
- {
- /// <summary>
- /// 系统行政区域表
- ///</summary>
- [SugarTable("sys_district", "系统行政区域表")]
- [SqlSugarEntity]
- public class SysDistrict : EntityBase
- {
- /// <summary>
- /// 父节点Id
- ///</summary>
- [SugarColumn(ColumnName = "pid", ColumnDescription = "父Id")]
- public long Pid { get; set; }
- /// <summary>
- /// 名称
- ///</summary>
- [SugarColumn(ColumnName = "name", ColumnDescription = "名称", Length = 200)]
- [MaxLength(200)]
- public string Name { get; set; }
- /// <summary>
- /// 值
- ///</summary>
- [SugarColumn(ColumnName = "value", ColumnDescription = "值", Length = 200)]
- [MaxLength(200)]
- public string Value { get; set; }
- /// <summary>
- /// 节点编码
- ///</summary>
- [SugarColumn(ColumnName = "code", ColumnDescription = "节点编码", Length = 100)]
- [MaxLength(100)]
- public string Code { get; set; }
- /// <summary>
- /// 排序
- ///</summary>
- [SugarColumn(ColumnName = "order", ColumnDescription = "排序")]
- public int Order { get; set; }
- /// <summary>
- /// 备注
- ///</summary>
- [SugarColumn(ColumnName = "remark", ColumnDescription = "备注", Length = 200)]
- [MaxLength(200)]
- public string Remark { get; set; }
- /// <summary>
- /// 状态
- ///</summary>
- [SugarColumn(ColumnName = "status", ColumnDescription = "状态")]
- public StatusEnum Status { get; set; } = StatusEnum.Enable;
- /// <summary>
- /// 数据资源子项
- /// </summary>
- [SugarColumn(IsIgnore = true)]
- public List<SysDistrict> Children { get; set; }
- }
- }
|