Dont load recordings for streams by default

This commit is contained in:
2023-08-01 11:44:00 +01:00
parent 0634622c4d
commit 2371ddb79b
6 changed files with 21 additions and 12 deletions

View File

@ -18,7 +18,7 @@ public class UserStreamRecordingConfiguration : IEntityTypeConfiguration<UserStr
.IsRequired();
builder.HasOne(a => a.Stream)
.WithMany(a => a.Recordings)
.WithMany()
.HasForeignKey(a => a.UserStreamId);
}
}

View File

@ -39,7 +39,6 @@ public class UserStream
public string ForwardClientId { get; set; } = null!;
public List<UserStreamGuest> Guests { get; init; } = new();
public List<UserStreamRecording> Recordings { get; init; } = new();
}
public enum UserStreamState