using ZhonTai.Admin.Core.Entities;
using FreeSql.DataAnnotations;
using ZhonTai.Admin.Domain.DictType;
namespace ZhonTai.Admin.Domain.Dict;
///
/// 数据字典
///
[Table(Name = "ad_dict", OldName = "ad_dictionary")]
[Index("idx_{tablename}_01", nameof(DictTypeId) + "," + nameof(Name), true)]
public partial class DictEntity : EntityBase
{
///
/// 字典类型Id
///
[Column(OldName = "DictionaryTypeId")]
public long DictTypeId { get; set; }
///
/// 字典类型
///
public DictTypeEntity DictType { get; set; }
///
/// 字典名称
///
[Column(StringLength = 50)]
public string Name { get; set; }
///
/// 字典编码
///
[Column(StringLength = 50)]
public string Code { get; set; }
///
/// 字典值
///
[Column(StringLength = 50)]
public string Value { get; set; }
///
/// 描述
///
[Column(StringLength = 500)]
public string Description { get; set; }
///
/// 启用
///
public bool Enabled { get; set; } = true;
///
/// 排序
///
public int Sort { get; set; }
}