fix: 修复公告过时警告并补齐用户权限
This commit is contained in:
@@ -774,14 +774,14 @@ public sealed class TakeoutAppDbContext(
|
||||
builder.Property(x => x.TargetType).HasMaxLength(64).IsRequired();
|
||||
builder.Property(x => x.TargetParameters).HasColumnType("text");
|
||||
builder.Property(x => x.Priority).IsRequired();
|
||||
builder.Property(x => x.IsActive).IsRequired();
|
||||
builder.Property<bool>("IsActive").IsRequired();
|
||||
builder.Property(x => x.RowVersion)
|
||||
.IsRowVersion()
|
||||
.IsConcurrencyToken()
|
||||
.HasColumnType("bytea");
|
||||
ConfigureAuditableEntity(builder);
|
||||
ConfigureSoftDeleteEntity(builder);
|
||||
builder.HasIndex(x => new { x.TenantId, x.AnnouncementType, x.IsActive });
|
||||
builder.HasIndex("TenantId", "AnnouncementType", "IsActive");
|
||||
builder.HasIndex(x => new { x.TenantId, x.EffectiveFrom, x.EffectiveTo });
|
||||
builder.HasIndex(x => new { x.TenantId, x.Status, x.EffectiveFrom });
|
||||
builder.HasIndex(x => new { x.Status, x.EffectiveFrom })
|
||||
|
||||
Reference in New Issue
Block a user