Skip to content

Commit

Permalink
Slight model adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonbeck committed Sep 5, 2024
1 parent d61dc61 commit 03574a7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ public void Configure(EntityTypeBuilder<Organization> builder)

builder.Property(c => c.LimitCollectionCreation)
.ValueGeneratedNever()
.HasDefaultValue(true);
.HasDefaultValue(false);

builder.Property(c => c.AllowAdminAccessToAllCollectionItems)
.ValueGeneratedNever()
.HasDefaultValue(true);

builder.Property<bool>("LimitCollectionCreationDeletion").HasDefaultValue(false);

NpgsqlIndexBuilderExtensions.IncludeProperties(
builder.HasIndex(o => new { o.Id, o.Enabled }),
o => o.UseTotp);

builder.ToTable(nameof(Organization));

builder.Property<bool>("LimitCollectionCreationDeletion").HasDefaultValue(false);
}
}

0 comments on commit 03574a7

Please sign in to comment.