using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Diligent.WebAPI.Data.Configurations { public class ApplicantConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder.Property(c => c.FirstName).HasMaxLength(128); builder.Property(c => c.LastName).HasMaxLength(128); builder.Property(c => c.LastName).HasMaxLength(128); builder.Property(c => c.Position).HasMaxLength(128); builder.Property(c => c.ProfessionalQualification).HasMaxLength(128); builder.Property(c => c.CV).IsRequired(true); builder.Property(c => c.Email).HasMaxLength(128); builder.Property(c => c.PhoneNumber).HasMaxLength(30); builder.Property(c => c.LinkedlnLink).IsRequired(false); builder.Property(c => c.GithubLink).IsRequired(false); builder.Property(c => c.BitBucketLink).IsRequired(false); builder.Property(c => c.ApplicationChannel).IsRequired(false); builder.Property(c => c.TypeOfEmployment).IsRequired(true).HasConversion(); builder.Property(c => c.Gender).IsRequired(true).HasConversion(); } } }