Skip to content

Commit

Permalink
MMI-3116 Fixed dal config
Browse files Browse the repository at this point in the history
  • Loading branch information
laidaoyu committed Dec 3, 2024
1 parent a06d5b9 commit 63777e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/net/dal/Configuration/SeriesConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public override void Configure(EntityTypeBuilder<Series> builder)
builder.Property(m => m.SourceId).IsRequired(false);
builder.Property(m => m.AutoTranscribe).IsRequired();
builder.Property(m => m.UseInTopics).IsRequired();
builder.Property(m => m.IsCBRASource).IsRequired(false);
builder.Property(m => m.IsCBRASource);

builder.HasOne(m => m.Source).WithMany(m => m.Series).HasForeignKey(m => m.SourceId).OnDelete(DeleteBehavior.Cascade);
builder.HasMany(m => m.MediaTypeSearchMappings).WithMany(m => m.SeriesSearchMappings).UsingEntity<SeriesMediaTypeSearchMapping>();
Expand Down
2 changes: 1 addition & 1 deletion libs/net/dal/Configuration/SourceConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override void Configure(EntityTypeBuilder<Source> builder)
builder.Property(m => m.DisableTranscribe).IsRequired();
builder.Property(m => m.UseInTopics).IsRequired();
builder.Property(m => m.Configuration).IsRequired().HasColumnType("jsonb").HasDefaultValueSql("'{}'::jsonb");
builder.Property(m => m.IsCBRASource).IsRequired(false);
builder.Property(m => m.IsCBRASource);

builder.HasOne(m => m.Owner).WithMany().HasForeignKey(m => m.OwnerId).OnDelete(DeleteBehavior.SetNull);
builder.HasOne(m => m.License).WithMany(m => m.Sources).HasForeignKey(m => m.LicenseId).OnDelete(DeleteBehavior.Restrict);
Expand Down

0 comments on commit 63777e1

Please sign in to comment.