Skip to content

Commit

Permalink
add unique index on RNOKPP
Browse files Browse the repository at this point in the history
  • Loading branch information
DmyMi committed Nov 18, 2024
1 parent 2193436 commit 301156c
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using OutOfSchool.Services.Models.Configurations.Base;

namespace OutOfSchool.Services.Models.Configurations;

internal class IndividualConfiguration : BusinessEntityConfiguration<Individual>;
internal class IndividualConfiguration : BusinessEntityConfiguration<Individual>
{
public override void Configure(EntityTypeBuilder<Individual> entityTypeBuilder)
{
entityTypeBuilder.HasIndex(i => i.Rnokpp).IsUnique();
base.Configure(entityTypeBuilder);
}
}

0 comments on commit 301156c

Please sign in to comment.