29 lines
1.2 KiB
C#
29 lines
1.2 KiB
C#
using Company.Domain.TemporaryClientRegistrationAgg;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace CompanyManagment.EFCore.Mapping;
|
|
|
|
public class InstitutionContractTempMapping : IEntityTypeConfiguration<InstitutionContractTemp>
|
|
{
|
|
public void Configure(EntityTypeBuilder<InstitutionContractTemp> builder)
|
|
{
|
|
builder.ToTable("InstitutionContractTemps");
|
|
builder.HasKey(x => x.id);
|
|
|
|
builder.Property(x => x.RegistrationStatus).HasConversion<string>().HasMaxLength(30);
|
|
builder.Property(x => x.PaymentModel).HasMaxLength(30);
|
|
builder.Property(x => x.PeriodModel).HasMaxLength(3);
|
|
builder.Property(x => x.OfficialCompany).HasMaxLength(30);
|
|
builder.Property(x => x.VerifyCode).HasMaxLength(6);
|
|
builder.Property(x => x.ContractStartGr);
|
|
builder.Property(x => x.ContractEndGr);
|
|
builder.Property(x => x.SendVerifyCodeTime).IsRequired(false);
|
|
builder.Property(x => x.VerifyCodeEndTime).IsRequired(false);
|
|
builder.Property(x => x.TotalPayment);
|
|
builder.Property(x => x.ValueAddedTax);
|
|
builder.Property(x => x.ContractingPartyTempId);
|
|
builder.Property(x => x.MessageId);
|
|
|
|
}
|
|
} |