// 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("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("Petition_Id") .HasColumnType("bigint"); b.Property("ToDate") .HasColumnType("datetime2"); b.Property("WorkingHoursPerDay") .HasColumnType("int"); b.Property("WorkingHoursPerWeek") .HasColumnType("int"); b.HasKey("id"); b.HasIndex("Petition_Id"); b.ToTable("WorkHistories"); }); modelBuilder.Entity("Company.Domain.WorkingHoursAgg.WorkingHours", b => { b.Property("id") .ValueGeneratedOnAdd() .HasColumnType("bigint") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("ContractId") .HasColumnType("bigint"); b.Property("ContractNo") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("CreationDate") .HasColumnType("datetime2"); b.Property("NumberOfFriday") .HasMaxLength(15) .HasColumnType("nvarchar(15)"); b.Property("NumberOfWorkingDays") .HasMaxLength(15) .HasColumnType("nvarchar(15)"); b.Property("OverNightWorkH") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("OverNightWorkM") .HasMaxLength(2) .HasColumnType("nvarchar(2)"); b.Property("OverTimeWorkH") .HasMaxLength(15) .HasColumnType("nvarchar(15)"); b.Property("OverTimeWorkM") .HasMaxLength(2) .HasColumnType("nvarchar(2)"); b.Property("ShiftWork") .HasMaxLength(2) .HasColumnType("nvarchar(2)"); b.Property("TotalHoursesH") .HasMaxLength(15) .HasColumnType("nvarchar(15)"); b.Property("TotalHoursesM") .HasMaxLength(2) .HasColumnType("nvarchar(2)"); b.Property("WeeklyWorkingTime") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.HasKey("id"); b.HasIndex("ContractId"); b.ToTable("WorkingHours"); }); modelBuilder.Entity("Company.Domain.WorkingHoursItemsAgg.WorkingHoursItems", b => { b.Property("id") .ValueGeneratedOnAdd() .HasColumnType("bigint") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("ComplexEnd") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("ComplexStart") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("CreationDate") .HasColumnType("datetime2"); b.Property("DayOfWork") .HasMaxLength(1) .HasColumnType("nvarchar(1)"); b.Property("End1") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("End2") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("End3") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("RestTime") .HasMaxLength(2) .HasColumnType("nvarchar(2)"); b.Property("Start1") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("Start2") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("Start3") .HasMaxLength(5) .HasColumnType("nvarchar(5)"); b.Property("WorkingHoursId") .HasColumnType("bigint"); b.HasKey("id"); b.HasIndex("WorkingHoursId"); b.ToTable("WorkingHoursItems"); }); modelBuilder.Entity("Company.Domain.WorkshopAccountAgg.WorkshopAccount", b => { b.Property("WorkshopId") .HasColumnType("bigint"); b.Property("AccountId") .HasColumnType("bigint"); b.HasKey("WorkshopId", "AccountId"); b.ToTable("WorkshopeAccounts"); }); modelBuilder.Entity("Company.Domain.WorkshopAgg.Workshop", b => { b.Property("id") .ValueGeneratedOnAdd() .HasColumnType("bigint") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("Address") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("AgentName") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("AgentPhone") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ArchiveCode") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("City") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ContractTerm") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("CreationDate") .HasColumnType("datetime2"); b.Property("InsuranceCode") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("IsActive") .HasColumnType("bit"); b.Property("IsActiveString") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("State") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("TypeOfContract") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("TypeOfInsuranceSend") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("TypeOfOwnership") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("WorkshopFullName") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("WorkshopName") .IsRequired() .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("WorkshopSureName") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.HasKey("id"); b.ToTable("Workshops"); }); modelBuilder.Entity("Company.Domain.WorkshopEmployerAgg.WorkshopEmployer", b => { b.Property("WorkshopId") .HasColumnType("bigint"); b.Property("EmployerId") .HasColumnType("bigint"); b.HasKey("WorkshopId", "EmployerId"); b.HasIndex("EmployerId"); b.ToTable("WorkshopeEmployers"); }); modelBuilder.Entity("Company.Domain.YearlySalaryAgg.YearlySalary", b => { b.Property("id") .ValueGeneratedOnAdd() .HasColumnType("bigint") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("ConnectionId") .HasColumnType("int"); b.Property("CreationDate") .HasColumnType("datetime2"); b.Property("EndDate") .HasColumnType("datetime2"); b.Property("StartDate") .HasColumnType("datetime2"); b.Property("Year") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.HasKey("id"); b.ToTable("YearlySalariess"); }); modelBuilder.Entity("Company.Domain.YearlySalaryItemsAgg.YearlySalaryItem", b => { b.Property("id") .ValueGeneratedOnAdd() .HasColumnType("bigint") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("CreationDate") .HasColumnType("datetime2"); b.Property("ItemName") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("ItemValue") .HasColumnType("float"); b.Property("ParentConnectionId") .HasColumnType("int"); b.Property("ValueType") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("YearlySalaryId") .HasColumnType("bigint"); b.HasKey("id"); b.HasIndex("YearlySalaryId"); b.ToTable("YearlyItems"); }); modelBuilder.Entity("Company.Domain.YearlysSalaryTitleAgg.YearlySalaryTitle", b => { b.Property("id") .ValueGeneratedOnAdd() .HasColumnType("bigint") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); b.Property("CreationDate") .HasColumnType("datetime2"); b.Property("Title1") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("Title10") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("Title2") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("Title3") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("Title4") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("Title5") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("Title6") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("Title7") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("Title8") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("Title9") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.HasKey("id"); b.ToTable("YearlySalaryTitles"); }); modelBuilder.Entity("Company.Domain.empolyerAgg.Employer", 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("ContractingPartyId") .HasColumnType("bigint"); b.Property("CreationDate") .HasColumnType("datetime2"); b.Property("DateOfBirth") .HasColumnType("datetime2"); b.Property("DateOfIssue") .HasColumnType("datetime2"); b.Property("EmployerLName") .IsRequired() .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("EmployerNo") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("EservicePassword") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("EserviceUserName") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FName") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("FatherName") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("FullName") .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("Gender") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("IdNumber") .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("IsActive") .HasColumnType("bit"); b.Property("IsLegal") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("LName") .IsRequired() .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("MclsPassword") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("MclsUserName") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("NationalId") .HasMaxLength(15) .HasColumnType("nvarchar(15)"); b.Property("Nationalcode") .HasMaxLength(10) .HasColumnType("nvarchar(10)"); b.Property("Nationality") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Phone") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("PlaceOfIssue") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("RegisterId") .HasMaxLength(15) .HasColumnType("nvarchar(15)"); b.Property("SanaPassword") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("SanaUserName") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("TaxOfficeUserName") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("TaxOfficepassword") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("id"); b.HasIndex("ContractingPartyId"); b.ToTable("Employers"); }); modelBuilder.Entity("EmployerWorkshop", b => { b.Property("EmployersListid") .HasColumnType("bigint"); b.Property("WorkshopsListid") .HasColumnType("bigint"); b.HasKey("EmployersListid", "WorkshopsListid"); b.HasIndex("WorkshopsListid"); b.ToTable("EmployerWorkshop"); }); modelBuilder.Entity("Company.Domain.Board.Board", b => { b.HasOne("Company.Domain.BoardType.BoardType", "BoardType") .WithMany("BoardsList") .HasForeignKey("BoardType_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Company.Domain.File1.File1", "File1") .WithMany("BoardsList") .HasForeignKey("File_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("BoardType"); b.Navigation("File1"); }); modelBuilder.Entity("Company.Domain.ChapterAgg.EntityChapter", b => { b.HasOne("Company.Domain.SubtitleAgg.EntitySubtitle", "EntitySubtitle") .WithMany("Chapters") .HasForeignKey("Subtitle_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("EntitySubtitle"); }); modelBuilder.Entity("Company.Domain.ContractAgg.Contract", b => { b.HasOne("Company.Domain.EmployeeAgg.Employee", "Employee") .WithMany("Contracts") .HasForeignKey("EmployeeId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Company.Domain.empolyerAgg.Employer", "Employer") .WithMany("Contracts") .HasForeignKey("EmployerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Company.Domain.JobAgg.Job", "Job") .WithMany("ContractsList") .HasForeignKey("JobTypeId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Company.Domain.MandatoryHoursAgg.MandatoryHours", null) .WithMany("Contracts") .HasForeignKey("MandatoryHoursid"); b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop") .WithMany("Contracts2") .HasForeignKey("WorkshopIds") .OnDelete(DeleteBehavior.NoAction) .IsRequired(); b.HasOne("Company.Domain.YearlySalaryAgg.YearlySalary", "YearlySalary") .WithMany("Contracts") .HasForeignKey("YearlySalaryId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Employee"); b.Navigation("Employer"); b.Navigation("Job"); b.Navigation("Workshop"); b.Navigation("YearlySalary"); }); modelBuilder.Entity("Company.Domain.EmployeeChildrenAgg.EmployeeChildren", b => { b.HasOne("Company.Domain.EmployeeAgg.Employee", "Employee") .WithMany("EmployeeChildrenList") .HasForeignKey("EmployeeId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Employee"); }); modelBuilder.Entity("Company.Domain.Evidence.Evidence", b => { b.HasOne("Company.Domain.BoardType.BoardType", "BoardType") .WithMany("EvidencesList") .HasForeignKey("BoardType_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Company.Domain.File1.File1", "File1") .WithMany("EvidencesList") .HasForeignKey("File_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("BoardType"); b.Navigation("File1"); }); modelBuilder.Entity("Company.Domain.EvidenceDetail.EvidenceDetail", b => { b.HasOne("Company.Domain.Evidence.Evidence", "Evidence") .WithMany("EvidenceDetailsList") .HasForeignKey("Evidence_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Evidence"); }); modelBuilder.Entity("Company.Domain.HolidayItemAgg.HolidayItem", b => { b.HasOne("Company.Domain.HolidayAgg.Holiday", "Holidayss") .WithMany("HolidayItems") .HasForeignKey("HolidayId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Holidayss"); }); modelBuilder.Entity("Company.Domain.LeftWorkAgg.LeftWork", b => { b.HasOne("Company.Domain.EmployeeAgg.Employee", "Employee") .WithMany("LeftWorks") .HasForeignKey("EmployeeId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop") .WithMany("LeftWorks") .HasForeignKey("WorkshopId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Employee"); b.Navigation("Workshop"); }); modelBuilder.Entity("Company.Domain.MasterPenaltyTitle.MasterPenaltyTitle", b => { b.HasOne("Company.Domain.MasterPetition.MasterPetition", "MasterPetition") .WithMany("MasterPenaltyTitlesList") .HasForeignKey("MasterPetition_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("MasterPetition"); }); modelBuilder.Entity("Company.Domain.MasterPetition.MasterPetition", b => { b.HasOne("Company.Domain.BoardType.BoardType", "BoardType") .WithMany("MasterPetitionsList") .HasForeignKey("BoardType_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Company.Domain.File1.File1", "File1") .WithMany("MasterPetitionsList") .HasForeignKey("File_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("BoardType"); b.Navigation("File1"); }); modelBuilder.Entity("Company.Domain.MasterWorkHistory.MasterWorkHistory", b => { b.HasOne("Company.Domain.MasterPetition.MasterPetition", "MasterPetition") .WithMany("MasterWorkHistoriesList") .HasForeignKey("MasterPetition_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("MasterPetition"); }); modelBuilder.Entity("Company.Domain.ModuleTextManagerAgg.EntityModuleTextManager", b => { b.HasOne("Company.Domain.ModuleAgg.EntityModule", "Module") .WithMany("EntityModuleTextManagers") .HasForeignKey("ModuleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Company.Domain.TextManagerAgg.EntityTextManager", "TextManager") .WithMany("EntityModuleTextManagers") .HasForeignKey("TextManagerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Module"); b.Navigation("TextManager"); }); modelBuilder.Entity("Company.Domain.PenaltyTitle.PenaltyTitle", b => { b.HasOne("Company.Domain.Petition.Petition", "Petition") .WithMany("PenaltyTitlesList") .HasForeignKey("Petition_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Petition"); }); modelBuilder.Entity("Company.Domain.Petition.Petition", b => { b.HasOne("Company.Domain.BoardType.BoardType", "BoardType") .WithMany("PetitionsList") .HasForeignKey("BoardType_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Company.Domain.File1.File1", "File1") .WithMany("PetitionsList") .HasForeignKey("File_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("BoardType"); b.Navigation("File1"); }); modelBuilder.Entity("Company.Domain.ProceedingSession.ProceedingSession", b => { b.HasOne("Company.Domain.Board.Board", "Board") .WithMany("ProceedingSessionsList") .HasForeignKey("Board_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Board"); }); modelBuilder.Entity("Company.Domain.SubtitleAgg.EntitySubtitle", b => { b.HasOne("Company.Domain.SubtitleAgg.EntitySubtitle", null) .WithMany("Subtitles") .HasForeignKey("EntitySubtitleid"); b.HasOne("Company.Domain.OriginalTitleAgg.EntityOriginalTitle", "EntityOriginalTitle") .WithMany("Subtitles") .HasForeignKey("OriginalTitle_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("EntityOriginalTitle"); }); modelBuilder.Entity("Company.Domain.WorkHistory.WorkHistory", b => { b.HasOne("Company.Domain.Petition.Petition", "Petition") .WithMany("WorkHistoriesList") .HasForeignKey("Petition_Id") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Petition"); }); modelBuilder.Entity("Company.Domain.WorkingHoursAgg.WorkingHours", b => { b.HasOne("Company.Domain.ContractAgg.Contract", "Contracts") .WithMany("WorkingHoursList") .HasForeignKey("ContractId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Contracts"); }); modelBuilder.Entity("Company.Domain.WorkingHoursItemsAgg.WorkingHoursItems", b => { b.HasOne("Company.Domain.WorkingHoursAgg.WorkingHours", "WorkingHourses") .WithMany("WorkingHoursItemsList") .HasForeignKey("WorkingHoursId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("WorkingHourses"); }); modelBuilder.Entity("Company.Domain.WorkshopAccountAgg.WorkshopAccount", b => { b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop") .WithMany() .HasForeignKey("WorkshopId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Workshop"); }); modelBuilder.Entity("Company.Domain.WorkshopEmployerAgg.WorkshopEmployer", b => { b.HasOne("Company.Domain.empolyerAgg.Employer", "Employer") .WithMany("WorkshopEmployers") .HasForeignKey("EmployerId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop") .WithMany("WorkshopEmployers") .HasForeignKey("WorkshopId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Employer"); b.Navigation("Workshop"); }); modelBuilder.Entity("Company.Domain.YearlySalaryItemsAgg.YearlySalaryItem", b => { b.HasOne("Company.Domain.YearlySalaryAgg.YearlySalary", "YearlySalary") .WithMany("YearlySalaryItemsList") .HasForeignKey("YearlySalaryId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("YearlySalary"); }); modelBuilder.Entity("Company.Domain.empolyerAgg.Employer", b => { b.HasOne("Company.Domain.ContarctingPartyAgg.PersonalContractingParty", "ContractingParty") .WithMany("Employers") .HasForeignKey("ContractingPartyId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("ContractingParty"); }); modelBuilder.Entity("EmployerWorkshop", b => { b.HasOne("Company.Domain.empolyerAgg.Employer", null) .WithMany() .HasForeignKey("EmployersListid") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Company.Domain.WorkshopAgg.Workshop", null) .WithMany() .HasForeignKey("WorkshopsListid") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Company.Domain.Board.Board", b => { b.Navigation("ProceedingSessionsList"); }); modelBuilder.Entity("Company.Domain.BoardType.BoardType", b => { b.Navigation("BoardsList"); b.Navigation("EvidencesList"); b.Navigation("MasterPetitionsList"); b.Navigation("PetitionsList"); }); modelBuilder.Entity("Company.Domain.ContarctingPartyAgg.PersonalContractingParty", b => { b.Navigation("Employers"); }); modelBuilder.Entity("Company.Domain.ContractAgg.Contract", b => { b.Navigation("WorkingHoursList"); }); modelBuilder.Entity("Company.Domain.EmployeeAgg.Employee", b => { b.Navigation("Contracts"); b.Navigation("EmployeeChildrenList"); b.Navigation("LeftWorks"); }); modelBuilder.Entity("Company.Domain.Evidence.Evidence", b => { b.Navigation("EvidenceDetailsList"); }); modelBuilder.Entity("Company.Domain.File1.File1", b => { b.Navigation("BoardsList"); b.Navigation("EvidencesList"); b.Navigation("MasterPetitionsList"); b.Navigation("PetitionsList"); }); modelBuilder.Entity("Company.Domain.HolidayAgg.Holiday", b => { b.Navigation("HolidayItems"); }); modelBuilder.Entity("Company.Domain.JobAgg.Job", b => { b.Navigation("ContractsList"); }); modelBuilder.Entity("Company.Domain.MandatoryHoursAgg.MandatoryHours", b => { b.Navigation("Contracts"); }); modelBuilder.Entity("Company.Domain.MasterPetition.MasterPetition", b => { b.Navigation("MasterPenaltyTitlesList"); b.Navigation("MasterWorkHistoriesList"); }); modelBuilder.Entity("Company.Domain.ModuleAgg.EntityModule", b => { b.Navigation("EntityModuleTextManagers"); }); modelBuilder.Entity("Company.Domain.OriginalTitleAgg.EntityOriginalTitle", b => { b.Navigation("Subtitles"); }); modelBuilder.Entity("Company.Domain.Petition.Petition", b => { b.Navigation("PenaltyTitlesList"); b.Navigation("WorkHistoriesList"); }); modelBuilder.Entity("Company.Domain.SubtitleAgg.EntitySubtitle", b => { b.Navigation("Chapters"); b.Navigation("Subtitles"); }); modelBuilder.Entity("Company.Domain.TextManagerAgg.EntityTextManager", b => { b.Navigation("EntityModuleTextManagers"); }); modelBuilder.Entity("Company.Domain.WorkingHoursAgg.WorkingHours", b => { b.Navigation("WorkingHoursItemsList"); }); modelBuilder.Entity("Company.Domain.WorkshopAgg.Workshop", b => { b.Navigation("Contracts2"); b.Navigation("LeftWorks"); b.Navigation("WorkshopEmployers"); }); modelBuilder.Entity("Company.Domain.YearlySalaryAgg.YearlySalary", b => { b.Navigation("Contracts"); b.Navigation("YearlySalaryItemsList"); }); modelBuilder.Entity("Company.Domain.empolyerAgg.Employer", b => { b.Navigation("Contracts"); b.Navigation("WorkshopEmployers"); }); #pragma warning restore 612, 618 } } }