how to make progresql unique in entity framework core code example
Example: how to set unique constraint from EF core
protected override void OnModelCreating(ModelBuilder builder)
{
builder.Entity()
.HasIndex(u => u.Email)
.IsUnique();
}