namespace SafeCampus.System; [SugarTable("CameraGroup", TableDescription = "摄像头分组表")] [Tenant(SqlSugarConst.DB_DEFAULT)] [BatchEdit] [CodeGen] [IgnoreInitTable] public class CameraGroup : PrimaryKeyEntity { /// /// 分组名称 /// [SugarColumn(ColumnName = "Name", ColumnDescription = "分组名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = false)] public string Name { get; set; } /// /// 父级id /// [SugarColumn(ColumnName = "ParentId", ColumnDescription = "父级id", IsNullable = true)] public long ParentId { get; set; } /// /// 推送人id /// [SugarColumn(ColumnName = "PushUserId", ColumnDescription = "推送人id", IsNullable = true)] public long? PushUserId { get; set; } /// /// 子级 /// [SugarColumn(IsIgnore = true)] public List Children { get; set; } /// /// 摄像头列表 /// [Navigate(NavigateType.OneToMany, nameof(CameraInfo.GroupId))] public List CameraInfos { get; set; } /// /// 推送人信息 /// [Navigate(NavigateType.OneToOne, nameof(CameraInfo.PushUserId))] public SysUser SysUserItem { get; set; } }