平安校园
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
972 B

  1. namespace SafeCampus.System;
  2. [SugarTable("CameraGroup", TableDescription = "摄像头分组表")]
  3. [Tenant(SqlSugarConst.DB_DEFAULT)]
  4. [BatchEdit]
  5. [CodeGen]
  6. [IgnoreInitTable]
  7. public class CameraGroup : PrimaryKeyEntity
  8. {
  9. /// <summary>
  10. /// 分组名称
  11. /// </summary>
  12. [SugarColumn(ColumnName = "Name", ColumnDescription = "分组名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
  13. public string Name { get; set; }
  14. /// <summary>
  15. /// 父级id
  16. /// </summary>
  17. [SugarColumn(ColumnName = "ParentId", ColumnDescription = "父级id", IsNullable = true)]
  18. public long ParentId { get; set; }
  19. /// <summary>
  20. /// 子级
  21. /// </summary>
  22. [SugarColumn(IsIgnore = true)]
  23. public List<CameraGroup> Children { get; set; }
  24. /// <summary>
  25. /// 摄像头列表
  26. /// </summary>
  27. [Navigate(NavigateType.OneToMany, nameof(CameraInfo.GroupId))]
  28. public List<CameraInfo> CameraInfos { get; set; }
  29. }