优化数据库表
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-19 16:40:17 +08:00
parent 4e7ce826c8
commit b98df9dae8
23 changed files with 876 additions and 971 deletions
+35 -32
View File
@@ -1,60 +1,63 @@
using IRaCIS.Core.Domain.Share;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("后台 - 字典表(需要同步)")]
[Table("Dictionary")]
public partial class Dictionary : BaseFullAuditEntity
{
[Table("Dictionary")]
public partial class Dictionary : BaseFullAuditEntity
{
#region µ¼º½ÊôÐÔ
[JsonIgnore]
public List<DoctorDictionary> DoctorDicRelationList { get; set; } = new List<DoctorDictionary>();
#region
[JsonIgnore]
public List<DoctorDictionary> DoctorDicRelationList { get; set; } = new List<DoctorDictionary>();
[JsonIgnore]
[ForeignKey("ConfigTypeId")]
public Dictionary ConfigDictionary { get; set; }
[JsonIgnore]
[ForeignKey("ConfigTypeId")]
public Dictionary ConfigDictionary { get; set; }
[JsonIgnore]
[ForeignKey("ParentId")]
public Dictionary Parent { get; set; }
[JsonIgnore]
public List<Dictionary> ChildList { get; set; } = new List<Dictionary>();
[JsonIgnore]
[ForeignKey("ParentId")]
public Dictionary Parent { get; set; }
[JsonIgnore]
public List<Dictionary> ChildList { get; set; } = new List<Dictionary>();
#endregion
#endregion
public string ChildGroup { get; set; } = string.Empty;
[StringLength(400)]
public string ChildGroup { get; set; } = null!;
public string Code { get; set; } = null!;
public DicDataTypeEnum DataTypeEnum { get; set; }
public Guid? ConfigTypeId { get; set; }
[Comment(" 字典类型- 枚举|bool|下拉框")]
public DicDataTypeEnum DataTypeEnum { get; set; }
[Column("Value")]
public string Value { get; set; } = string.Empty;
[StringLength(512)]
public string Description { get; set; } = null!;
[Column("ValueCN")]
public string ValueCN { get; set; } = string.Empty;
[Comment(" 是否字典类型配置")]
public bool IsConfig { get; set; }
public bool IsEnable { get; set; }
[StringLength(512)]
public string Description { get; set; } = string.Empty;
public Guid? ParentId { get; set; }
public int ShowOrder { get; set; }
public int ShowOrder { get; set; }
public string Code { get; set; } = string.Empty;
[StringLength(400)]
public string Value { get; set; } = null!;
public Guid? ParentId { get; set; }
public bool IsEnable { get; set; }
public Guid? ConfigTypeId { get; set; }
[StringLength(400)]
public string ValueCN { get; set; } = null!;
}
}