namespace SafeCampus.System; [SugarTable("CameraInfo", TableDescription = "摄像头信息表")] [Tenant(SqlSugarConst.DB_DEFAULT)] [BatchEdit] [CodeGen] [IgnoreInitTable] public class CameraInfo : PrimaryKeyEntity { /// /// 摄像头编码 /// [SugarColumn(ColumnName = "SensorId", ColumnDescription = "摄像头id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)] public string SensorId { get; set; } /// /// 摄像头名称 /// [SugarColumn(ColumnName = "SensorName", ColumnDescription = "摄像头名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)] public string SensorName { get; set; } /// /// 所属学校 /// [SugarColumn(ColumnName = "FieldName", ColumnDescription = "所属学校", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)] public string FieldName { get; set; } /// /// 学校ID /// [SugarColumn(ColumnName = "FieldId", ColumnDescription = "学校ID", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)] public string FieldId { get; set; } /// /// 摄像头ip /// [SugarColumn(ColumnName = "DirectUrlIp", ColumnDescription = "摄像头ip", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)] public string DirectUrlIp { get; set; } /// /// 摄像头在线状态 /// [SugarColumn(ColumnName = "DeviceStatus", ColumnDescription = "摄像头在线状态", IsNullable = true)] public bool DeviceStatus { get; set; } /// /// 摄像头快照地址 /// [SugarColumn(ColumnName = "SnapshotUrl", ColumnDescription = "摄像头快照地址", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)] public string SnapshotUrl { get; set; } /// /// 分辨率-宽度 /// [SugarColumn(ColumnName = "ResWidth", ColumnDescription = "分辨率-宽度", IsNullable = true)] public int ResWidth { get; set; } /// /// 分辨率-高度 /// [SugarColumn(ColumnName = "ResHeight", ColumnDescription = "分辨率-高度", IsNullable = true)] public int ResHeight { get; set; } /// /// 最后同步时间 /// [SugarColumn(ColumnName = "LastTime", ColumnDescription = "最后同步时间", IsNullable = true)] public DateTime LastTime { get; set; } /// /// 摄像头分组id /// [SugarColumn(ColumnName = "GroupId", ColumnDescription = "摄像头分组id", IsNullable = true)] public long? GroupId { get; set; } /// /// 推送人id /// [SugarColumn(ColumnName = "PushUserId", ColumnDescription = "推送人id", IsNullable = true)] public long PushUserId { get; set; } /// /// 推送人 /// [Navigate(NavigateType.OneToOne, nameof(PushUserId), nameof(SysUser.Id))] public SysUser SysUserItem { get; set; } /// /// 摄像头分组 /// [Navigate(NavigateType.OneToOne, nameof(GroupId), nameof(CameraGroup.Id))] public CameraGroup CameraGroupItem { get; set; } }