fix 增加索引,增加备注

This commit is contained in:
2024-03-05 19:35:35 +08:00
parent 778d100e72
commit 22a1d9359d
2 changed files with 7 additions and 1 deletions

View File

@@ -43,6 +43,12 @@ public class DeviceGroupEntity : SugarBaseEntity, ITenantId, ISoftDeleted
[SugarColumn(ColumnDescription = "是否可编辑")]
public bool Editable { get; set; }
/// <summary>
/// 备注
/// </summary>
[SugarColumn(IsNullable = true)]
public string Remark { get; set; }
public string TenantId { get; set; }

View File

@@ -13,7 +13,7 @@ public class DeviceRegistryEntity : SugarBaseEntity, ITenantId
/// <summary>
/// 设备唯一号
/// </summary>
[SugarColumn(ColumnDescription = "设备唯一号")]
[SugarColumn(ColumnDescription = "设备唯一号", UniqueGroupNameList = new[] { "idx_DeviceRegistry_DeviceUniqueNo" })]
public string DeviceUniqueNo { get; set; }
/// <summary>