平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
1.8 KiB

  1. namespace SafeCampus.System;
  2. /// <summary>
  3. /// 学生宿舍楼表
  4. /// </summary>
  5. [SugarTable("BuildingInfo", TableDescription = "学生宿舍楼表")]
  6. [Tenant(SqlSugarConst.DB_DEFAULT)]
  7. [BatchEdit]
  8. [CodeGen]
  9. //[IgnoreInitTable]
  10. public class BuildingInfo : PrimaryKeyEntity
  11. {
  12. /// <summary>
  13. /// 宿舍楼名称
  14. /// </summary>
  15. [SugarColumn(ColumnName = "Name", ColumnDescription = "宿舍楼名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)]
  16. public string Name { get; set; }
  17. /// <summary>
  18. /// 男寝还是女寝
  19. /// </summary>
  20. [SugarColumn(ColumnName = "Gender", ColumnDescription = "宿舍楼类型", IsNullable = false)]
  21. public bool Gender { get; set; }
  22. /// <summary>
  23. /// 创建时间
  24. /// </summary>
  25. [SugarColumn(ColumnName = "CreateTime", ColumnDescription = "创建时间", IsOnlyIgnoreUpdate = true, IsNullable = true)]
  26. public DateTime CreateTime { get; set; }
  27. /// <summary>
  28. /// 进入摄像头id
  29. /// </summary>
  30. [SugarColumn(ColumnName = "InsCameraId", ColumnDescription = "进入摄像头id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  31. public string InsCameraId { get; set; }
  32. /// <summary>
  33. /// 出去摄像头id
  34. /// </summary>
  35. [SugarColumn(ColumnName = "OutCameraId", ColumnDescription = "出去摄像头id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  36. public string OutCameraId { get; set; }
  37. /// <summary>
  38. /// 进入摄像头
  39. /// </summary>
  40. [Navigate(NavigateType.OneToOne, nameof(InsCameraId), nameof(CameraInfo.SensorId))]
  41. public CameraInfo InsCameraInfoItem { get; set; }
  42. /// <summary>
  43. /// 出去摄像头
  44. /// </summary>
  45. [Navigate(NavigateType.OneToOne, nameof(OutCameraId), nameof(CameraInfo.SensorId))]
  46. public CameraInfo OutCameraInfoItem { get; set; }
  47. }