Update release notes and deploy workspace
This commit is contained in:
@@ -29,8 +29,9 @@ public sealed class AwardsDbContext(DbContextOptions<AwardsDbContext> options) :
|
||||
{
|
||||
entity.HasIndex(item => item.Year).IsUnique();
|
||||
entity.Property(item => item.Name).HasMaxLength(160);
|
||||
entity.Property(item => item.ShowStreamUrl).HasMaxLength(400);
|
||||
entity.Property(item => item.IsDemo).HasDefaultValue(false);
|
||||
entity.Property(item => item.CurrentPhase).HasMaxLength(60);
|
||||
entity.Property(item => item.WinnersPublishedByTwitchId).HasMaxLength(120);
|
||||
entity.Property(item => item.SubcategoryTemplatesJson).HasDefaultValue("[]");
|
||||
entity.Property(item => item.WorkflowRulesJson).HasDefaultValue("[]");
|
||||
});
|
||||
@@ -47,6 +48,15 @@ public sealed class AwardsDbContext(DbContextOptions<AwardsDbContext> options) :
|
||||
entity.Property(item => item.SponsorsUrl).HasMaxLength(400);
|
||||
entity.Property(item => item.ShowactsUrl).HasMaxLength(400);
|
||||
entity.Property(item => item.ShowactsContent).HasDefaultValue(string.Empty);
|
||||
entity.Property(item => item.StreamBannerEyebrow).HasMaxLength(120);
|
||||
entity.Property(item => item.StreamBannerTitle).HasMaxLength(160);
|
||||
entity.Property(item => item.StreamBannerLiveButtonLabel).HasMaxLength(120);
|
||||
entity.Property(item => item.StreamBannerLiveButtonUrl).HasMaxLength(400);
|
||||
entity.Property(item => item.StreamBannerLockedButtonLabel).HasMaxLength(120);
|
||||
entity.Property(item => item.StreamBannerCompletedEyebrow).HasMaxLength(120);
|
||||
entity.Property(item => item.StreamBannerCompletedTitle).HasMaxLength(160);
|
||||
entity.Property(item => item.StreamBannerCompletedButtonLabel).HasMaxLength(120);
|
||||
entity.Property(item => item.StreamBannerCompletedButtonUrl).HasMaxLength(400);
|
||||
entity.Property(item => item.DemoLoginEmail).HasMaxLength(180);
|
||||
entity.Property(item => item.DemoLoginPasswordHash).HasMaxLength(120);
|
||||
entity.Property(item => item.DemoLoginPasswordSalt).HasMaxLength(80);
|
||||
@@ -225,6 +235,10 @@ public sealed class AwardsDbContext(DbContextOptions<AwardsDbContext> options) :
|
||||
entity.Property(item => item.CreatedFromIp).HasMaxLength(80);
|
||||
entity.HasIndex(item => new { item.SeasonId, item.Status });
|
||||
entity.HasIndex(item => item.CandidateId);
|
||||
entity.HasOne<Season>()
|
||||
.WithMany()
|
||||
.HasForeignKey(item => item.SeasonId)
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
entity.HasOne(item => item.Candidate)
|
||||
.WithMany()
|
||||
.HasForeignKey(item => item.CandidateId)
|
||||
@@ -258,7 +272,5 @@ public sealed class AwardsDbContext(DbContextOptions<AwardsDbContext> options) :
|
||||
entity.Property(item => item.Tier).HasMaxLength(80);
|
||||
entity.HasIndex(item => new { item.SeasonId, item.IsVisible, item.SortOrder });
|
||||
});
|
||||
|
||||
SeedData.Apply(modelBuilder);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user