Skip to content

Commit

Permalink
feat: update ef migration
Browse files Browse the repository at this point in the history
       update development service host
  • Loading branch information
Qinyouzeng committed Sep 12, 2024
1 parent 42f58b7 commit fcc04ab
Show file tree
Hide file tree
Showing 9 changed files with 784 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ public class AlarmRuleUpsertDto

public string Source { get; set; } = default!;

public bool Show { get; set; } = true;
public bool Show { get; set; } = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public void Configure(EntityTypeBuilder<AlarmRule> builder)
builder.Property(x => x.AppIdentity).HasMaxLength(128);
builder.Property(x => x.ChartYAxisUnit).HasMaxLength(128);
builder.Property(x => x.TotalVariable).HasMaxLength(64);
builder.Property(x => x.Source).IsRequired().HasMaxLength(40);
builder.Property(x => x.Source).IsRequired().HasMaxLength(40).HasDefaultValue(string.Empty);
builder.Property(x => x.Show).HasDefaultValue(true).IsRequired();
builder.OwnsMany(x => x.LogMonitorItems, b =>
{
Expand Down
Loading

0 comments on commit fcc04ab

Please sign in to comment.