//
using System;
using CompanyManagment.EFCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace CompanyManagment.EFCore.Migrations
{
[DbContext(typeof(CompanyContext))]
[Migration("20221226231055_employerFnamAlowNul")]
partial class employerFnamAlowNul
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("ProductVersion", "5.0.11")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("Company.Domain.BillAgg.EntityBill", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("Appointed")
.HasColumnType("nvarchar(max)");
b.Property("Contact")
.HasColumnType("nvarchar(max)");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("IsActiveString")
.HasColumnType("nvarchar(max)");
b.Property("ProcessingStage")
.HasColumnType("nvarchar(max)");
b.Property("SubjectBill")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.HasKey("id");
b.ToTable("TextManager_Bill");
});
modelBuilder.Entity("Company.Domain.Board.Board", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("BoardChairman")
.HasColumnType("nvarchar(max)");
b.Property("BoardType_Id")
.HasColumnType("int");
b.Property("Branch")
.HasColumnType("nvarchar(max)");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("DisputeResolutionPetitionDate")
.HasColumnType("datetime2");
b.Property("ExpertReport")
.HasColumnType("nvarchar(max)");
b.Property("File_Id")
.HasColumnType("bigint");
b.HasKey("id");
b.HasIndex("BoardType_Id");
b.HasIndex("File_Id");
b.ToTable("Boards");
});
modelBuilder.Entity("Company.Domain.BoardType.BoardType", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("Title")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("BoardTypes");
});
modelBuilder.Entity("Company.Domain.ChapterAgg.EntityChapter", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("Chapter")
.IsRequired()
.HasMaxLength(60)
.HasColumnType("nvarchar(60)");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("IsActiveString")
.HasColumnType("nvarchar(max)");
b.Property("Subtitle_Id")
.HasColumnType("bigint");
b.HasKey("id");
b.HasIndex("Subtitle_Id");
b.ToTable("TextManager_Chapter");
});
modelBuilder.Entity("Company.Domain.Contact2Agg.EntityContact", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("IsActiveString")
.HasColumnType("nvarchar(max)");
b.Property("NameContact")
.HasColumnType("nvarchar(max)");
b.Property("Signature")
.HasColumnType("nvarchar(max)");
b.HasKey("id");
b.ToTable("TextManager_Contact");
});
modelBuilder.Entity("Company.Domain.ContarctingPartyAgg.PersonalContractingParty", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("Address")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("AgentPhone")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("FName")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property("IdNumber")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property("IsLegal")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("LName")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property("NationalId")
.IsRequired()
.HasMaxLength(15)
.HasColumnType("nvarchar(15)");
b.Property("Nationalcode")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("Phone")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("RegisterId")
.IsRequired()
.HasMaxLength(15)
.HasColumnType("nvarchar(15)");
b.HasKey("id");
b.ToTable("PersonalContractingParties");
});
modelBuilder.Entity("Company.Domain.ContractAgg.Contract", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("AgreementSalary")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("ArchiveCode")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property("ConsumableItems")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("ContarctStart")
.HasColumnType("datetime2");
b.Property("ContractEnd")
.HasColumnType("datetime2");
b.Property("ContractNo")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property("ContractPeriod")
.HasMaxLength(2)
.HasColumnType("nvarchar(2)");
b.Property("ContractType")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("DayliWage")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("EmployeeId")
.HasColumnType("bigint");
b.Property("EmployerId")
.HasColumnType("bigint");
b.Property("FamilyAllowance")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("GetWorkDate")
.HasColumnType("datetime2");
b.Property("HousingAllowance")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("IsActiveString")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("JobType")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("JobTypeId")
.HasColumnType("bigint");
b.Property("MandatoryHoursid")
.HasColumnType("bigint");
b.Property("PersonnelCode")
.HasColumnType("bigint");
b.Property("SetContractDate")
.HasColumnType("datetime2");
b.Property("Signature")
.HasMaxLength(1)
.HasColumnType("nvarchar(1)");
b.Property("WorkingHoursWeekly")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("WorkshopAddress1")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("WorkshopAddress2")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("WorkshopIds")
.HasColumnType("bigint");
b.Property("YearlySalaryId")
.HasColumnType("bigint");
b.HasKey("id");
b.HasIndex("EmployeeId");
b.HasIndex("EmployerId");
b.HasIndex("JobTypeId");
b.HasIndex("MandatoryHoursid");
b.HasIndex("WorkshopIds");
b.HasIndex("YearlySalaryId");
b.ToTable("Contracts");
});
modelBuilder.Entity("Company.Domain.EmployeeAgg.Employee", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("Address")
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property("BankBranch")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("BankCardNumber")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("City")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("DateOfBirth")
.HasColumnType("datetime2");
b.Property("DateOfIssue")
.HasColumnType("datetime2");
b.Property("FName")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property("FatherName")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property("FieldOfStudy")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property("Gender")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("IdNumber")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property("InsuranceCode")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("InsuranceHistoryByMonth")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("InsuranceHistoryByYear")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("IsActive")
.HasColumnType("bit");
b.Property("IsActiveString")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("LName")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property("LevelOfEducation")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("MaritalStatus")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("MilitaryService")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("NationalCode")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("Nationality")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("NumberOfChildren")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property("OfficePhone")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("Phone")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("PlaceOfIssue")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property("State")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.HasKey("id");
b.ToTable("Employees");
});
modelBuilder.Entity("Company.Domain.EmployeeChildrenAgg.EmployeeChildren", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("DateOfBirth")
.HasColumnType("datetime2");
b.Property("EmployeeId")
.HasColumnType("bigint");
b.Property("FName")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property("ParentNationalCode")
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.HasKey("id");
b.HasIndex("EmployeeId");
b.ToTable("EmployeeChildren");
});
modelBuilder.Entity("Company.Domain.Evidence.Evidence", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("BoardType_Id")
.HasColumnType("int");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("File_Id")
.HasColumnType("bigint");
b.HasKey("id");
b.HasIndex("BoardType_Id");
b.HasIndex("File_Id");
b.ToTable("Evidences");
});
modelBuilder.Entity("Company.Domain.EvidenceDetail.EvidenceDetail", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Day")
.HasColumnType("nvarchar(max)");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("Evidence_Id")
.HasColumnType("bigint");
b.Property("FromDate")
.HasColumnType("datetime2");
b.Property("Title")
.HasColumnType("nvarchar(max)");
b.Property("ToDate")
.HasColumnType("datetime2");
b.HasKey("id");
b.HasIndex("Evidence_Id");
b.ToTable("EvidenceDetails");
});
modelBuilder.Entity("Company.Domain.File1.File1", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("ArchiveNo")
.HasColumnType("bigint");
b.Property("Client")
.HasColumnType("int");
b.Property("ClientVisitDate")
.HasColumnType("datetime2");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("FileClass")
.HasColumnType("nvarchar(max)");
b.Property("HasMandate")
.HasColumnType("int");
b.Property("ProceederReference")
.HasColumnType("nvarchar(max)");
b.Property("Reqester")
.HasColumnType("bigint");
b.Property("Status")
.HasColumnType("int");
b.Property("Summoned")
.HasColumnType("bigint");
b.HasKey("id");
b.ToTable("Files");
});
modelBuilder.Entity("Company.Domain.FileTitle.FileTitle", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Title")
.HasColumnType("nvarchar(max)");
b.Property("Type")
.HasColumnType("nvarchar(max)");
b.HasKey("id");
b.ToTable("File_Titles");
});
modelBuilder.Entity("Company.Domain.HolidayAgg.Holiday", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Year")
.HasMaxLength(4)
.HasColumnType("nvarchar(4)");
b.HasKey("id");
b.ToTable("Holidays");
});
modelBuilder.Entity("Company.Domain.HolidayItemAgg.HolidayItem", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("HolidayId")
.HasColumnType("bigint");
b.Property("HolidayYear")
.HasMaxLength(4)
.HasColumnType("nvarchar(4)");
b.Property("Holidaydate")
.HasColumnType("datetime2");
b.HasKey("id");
b.HasIndex("HolidayId");
b.ToTable("Holidayitems");
});
modelBuilder.Entity("Company.Domain.JobAgg.Job", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("JobCode")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property("JobName")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.HasKey("id");
b.ToTable("Jobs");
});
modelBuilder.Entity("Company.Domain.LeaveAgg.Leave", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("EmployeeFullName")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property("EmployeeId")
.HasColumnType("bigint");
b.Property("EndLeave")
.HasColumnType("datetime2");
b.Property("LeaveHourses")
.HasMaxLength(5)
.HasColumnType("nvarchar(5)");
b.Property("LeaveType")
.HasMaxLength(25)
.HasColumnType("nvarchar(25)");
b.Property("PaidLeaveType")
.HasMaxLength(25)
.HasColumnType("nvarchar(25)");
b.Property("StartLeave")
.HasColumnType("datetime2");
b.Property("WorkshopId")
.HasColumnType("bigint");
b.Property("WorkshopName")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.HasKey("id");
b.ToTable("Leave");
});
modelBuilder.Entity("Company.Domain.LeftWorkAgg.LeftWork", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("EmployeeFullName")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.Property("EmployeeId")
.HasColumnType("bigint");
b.Property("LeftWorkDate")
.HasColumnType("datetime2");
b.Property("StartWorkDate")
.HasColumnType("datetime2");
b.Property("WorkshopId")
.HasColumnType("bigint");
b.Property("WorkshopName")
.HasMaxLength(255)
.HasColumnType("nvarchar(255)");
b.HasKey("id");
b.HasIndex("EmployeeId");
b.HasIndex("WorkshopId");
b.ToTable("LeftWork");
});
modelBuilder.Entity("Company.Domain.MandatoryHoursAgg.MandatoryHours", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("Aban")
.HasColumnType("float");
b.Property("Azar")
.HasColumnType("float");
b.Property("Bahman")
.HasColumnType("float");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Dey")
.HasColumnType("float");
b.Property("Esfand")
.HasColumnType("float");
b.Property("Farvardin")
.HasColumnType("float");
b.Property("Khordad")
.HasColumnType("float");
b.Property("Mehr")
.HasColumnType("float");
b.Property("Mordad")
.HasColumnType("float");
b.Property("Ordibehesht")
.HasColumnType("float");
b.Property("Shahrivar")
.HasColumnType("float");
b.Property("Tir")
.HasColumnType("float");
b.Property("Year")
.HasMaxLength(4)
.HasColumnType("int");
b.HasKey("id");
b.ToTable("MandatoryHours");
});
modelBuilder.Entity("Company.Domain.MasterPenaltyTitle.MasterPenaltyTitle", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Day")
.HasColumnType("nvarchar(max)");
b.Property("FromDate")
.HasColumnType("datetime2");
b.Property("MasterPetition_Id")
.HasColumnType("bigint");
b.Property("PaidAmount")
.HasColumnType("nvarchar(max)");
b.Property("RemainingAmount")
.HasColumnType("nvarchar(max)");
b.Property("Title")
.HasColumnType("nvarchar(max)");
b.Property("ToDate")
.HasColumnType("datetime2");
b.HasKey("id");
b.HasIndex("MasterPetition_Id");
b.ToTable("Master_PenaltyTitles");
});
modelBuilder.Entity("Company.Domain.MasterPetition.MasterPetition", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("BoardType_Id")
.HasColumnType("int");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("File_Id")
.HasColumnType("bigint");
b.Property("MasterName")
.HasColumnType("nvarchar(max)");
b.Property("WorkHistoryDescreption")
.HasColumnType("nvarchar(max)");
b.HasKey("id");
b.HasIndex("BoardType_Id");
b.HasIndex("File_Id");
b.ToTable("Master_Petitions");
});
modelBuilder.Entity("Company.Domain.MasterWorkHistory.MasterWorkHistory", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("FromDate")
.HasColumnType("datetime2");
b.Property("MasterPetition_Id")
.HasColumnType("bigint");
b.Property("ToDate")
.HasColumnType("datetime2");
b.Property("WorkingHoursPerDay")
.HasColumnType("int");
b.Property("WorkingHoursPerWeek")
.HasColumnType("int");
b.HasKey("id");
b.HasIndex("MasterPetition_Id");
b.ToTable("Master_WorkHistories");
});
modelBuilder.Entity("Company.Domain.ModuleAgg.EntityModule", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("IsActiveString")
.HasColumnType("nvarchar(max)");
b.Property("NameSubModule")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("id");
b.ToTable("TextManager_Module");
});
modelBuilder.Entity("Company.Domain.ModuleTextManagerAgg.EntityModuleTextManager", b =>
{
b.Property("TextManagerId")
.HasColumnType("bigint");
b.Property("ModuleId")
.HasColumnType("bigint");
b.HasKey("TextManagerId", "ModuleId");
b.HasIndex("ModuleId");
b.ToTable("TextManager_ModuleTextManager");
});
modelBuilder.Entity("Company.Domain.OriginalTitleAgg.EntityOriginalTitle", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("IsActiveString")
.HasColumnType("nvarchar(max)");
b.Property("Title")
.IsRequired()
.HasMaxLength(60)
.HasColumnType("nvarchar(60)");
b.HasKey("id");
b.ToTable("TextManager_OriginalTitle");
});
modelBuilder.Entity("Company.Domain.PenaltyTitle.PenaltyTitle", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Day")
.HasColumnType("nvarchar(max)");
b.Property("FromDate")
.HasColumnType("datetime2");
b.Property("PaidAmount")
.HasColumnType("nvarchar(max)");
b.Property("Petition_Id")
.HasColumnType("bigint");
b.Property("RemainingAmount")
.HasColumnType("nvarchar(max)");
b.Property("Title")
.HasColumnType("nvarchar(max)");
b.Property("ToDate")
.HasColumnType("datetime2");
b.HasKey("id");
b.HasIndex("Petition_Id");
b.ToTable("PenaltyTitles");
});
modelBuilder.Entity("Company.Domain.Petition.Petition", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("BoardType_Id")
.HasColumnType("int");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("File_Id")
.HasColumnType("bigint");
b.Property("NotificationPetitionDate")
.HasColumnType("datetime2");
b.Property("PetitionIssuanceDate")
.HasColumnType("datetime2");
b.Property("TotalPenalty")
.HasColumnType("nvarchar(max)");
b.Property("TotalPenaltyTitles")
.HasColumnType("nvarchar(max)");
b.Property("WorkHistoryDescreption")
.HasColumnType("nvarchar(max)");
b.HasKey("id");
b.HasIndex("BoardType_Id");
b.HasIndex("File_Id");
b.ToTable("Petitions");
});
modelBuilder.Entity("Company.Domain.ProceedingSession.ProceedingSession", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("Board_Id")
.HasColumnType("bigint");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("Date")
.HasColumnType("datetime2");
b.Property("Time")
.HasColumnType("nvarchar(max)");
b.HasKey("id");
b.HasIndex("Board_Id");
b.ToTable("ProceedingSessions");
});
modelBuilder.Entity("Company.Domain.SubtitleAgg.EntitySubtitle", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("EntitySubtitleid")
.HasColumnType("bigint");
b.Property("IsActiveString")
.HasColumnType("nvarchar(max)");
b.Property("OriginalTitle_Id")
.HasColumnType("bigint");
b.Property("Subtitle")
.IsRequired()
.HasMaxLength(60)
.HasColumnType("nvarchar(60)");
b.HasKey("id");
b.HasIndex("EntitySubtitleid");
b.HasIndex("OriginalTitle_Id");
b.ToTable("TextManager_Subtitle");
});
modelBuilder.Entity("Company.Domain.TextManagerAgg.EntityTextManager", b =>
{
b.Property("id")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property("Chapter_Id")
.HasColumnType("bigint");
b.Property("CreationDate")
.HasColumnType("datetime2");
b.Property("DateTextManager")
.HasColumnType("nvarchar(max)");
b.Property("Description")
.HasColumnType("nvarchar(max)");
b.Property("IsActiveString")
.HasColumnType("nvarchar(max)");
b.Property("NoteNumber")
.HasColumnType("nvarchar(max)");
b.Property("NumberTextManager")
.HasColumnType("nvarchar(max)");
b.Property("OriginalTitle_Id")
.HasColumnType("bigint");
b.Property("Paragraph")
.HasColumnType("nvarchar(max)");
b.Property("SubjectTextManager")
.HasColumnType("nvarchar(max)");
b.Property("Subtitle_Id")
.HasColumnType("bigint");
b.HasKey("id");
b.ToTable("TextManager_TextManager");
});
modelBuilder.Entity("Company.Domain.WorkHistory.WorkHistory", b =>
{
b.Property