feat: 添加webfirst 字段模块

This commit is contained in:
橙子
2023-09-19 23:48:37 +08:00
parent 36b28d83ed
commit 1d499b7052
23 changed files with 1398 additions and 1037 deletions

View File

@@ -10,7 +10,7 @@ namespace Yi.Framework.Module.WebFirstManager.Entities
{
public class TableEntity : IEntity<long>
{
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
/// <summary>
/// 表名
@@ -22,5 +22,10 @@ namespace Yi.Framework.Module.WebFirstManager.Entities
/// </summary>
public string? Description { get; set; }
/// <summary>
/// 一表多字段
/// </summary>
[Navigate(NavigateType.OneToMany, nameof(FieldEntity.TableId))]
public List<FieldEntity> Fields { get; set; }
}
}