5491 lines
198 KiB
C#
5491 lines
198 KiB
C#
// <auto-generated />
|
|
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;
|
|
|
|
#nullable disable
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
[DbContext(typeof(CompanyContext))]
|
|
[Migration("20240530140019_InstitutionPlanTable")]
|
|
partial class InstitutionPlanTable
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.4")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Company.Domain.BillAgg.EntityBill", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("Appointed")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Contact")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ProcessingStage")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SubjectBill")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("TextManager_Bill", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.Board.Board", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("BoardChairman")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("BoardType_Id")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Branch")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DisputeResolutionPetitionDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ExpertReport")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("File_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("BoardType_Id");
|
|
|
|
b.HasIndex("File_Id");
|
|
|
|
b.ToTable("Boards", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.BoardType.BoardType", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("BoardTypes", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ChapterAgg.EntityChapter", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("Chapter")
|
|
.IsRequired()
|
|
.HasMaxLength(60)
|
|
.HasColumnType("nvarchar(60)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("Subtitle_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("Subtitle_Id");
|
|
|
|
b.ToTable("TextManager_Chapter", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.CheckoutAgg.Checkout", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<double>("AbsenceDeduction")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("AbsencePeriod")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("ArchiveCode")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<double>("AverageHoursPerDay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("BaseYearsPay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("BonusesPay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("ConsumableItems")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("ContractEnd")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("ContractId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("ContractNo")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("ContractStart")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("CreditLeaves")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("DateOfBirth")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("EmployeeFullName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<double>("FamilyAllowance")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("FathersName")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<double>("FridayPay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("HousingAllowance")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("InstallmentDeduction")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("InsuranceDeduction")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<bool>("LeaveCheckout")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<double>("LeavePay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("MarriedAllowance")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("MissionPay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Month")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<double>("MonthlySalary")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("NationalCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<double>("NightworkPay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("OvertimePay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("PersonnelCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<double?>("RewardPay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("SalaryAidDeduction")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("ShiftPay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Signature")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("SumOfWorkingDays")
|
|
.HasMaxLength(6)
|
|
.HasColumnType("nvarchar(6)");
|
|
|
|
b.Property<double>("TaxDeducation")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("TotalClaims")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<string>("TotalDeductions")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<double>("TotalPayment")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<long>("WorkingHoursId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.HasMaxLength(70)
|
|
.HasColumnType("nvarchar(70)");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(4)
|
|
.HasColumnType("nvarchar(4)");
|
|
|
|
b.Property<double>("YearsPay")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("WorkshopId");
|
|
|
|
b.ToTable("Checkouts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ClassifiedSalaryAgg.ClassifiedSalary", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("EndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("Group1")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group10")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group11")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group12")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group13")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group14")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group15")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group16")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group17")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group18")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group19")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group2")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group20")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group3")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group4")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group5")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group6")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group7")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group8")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group9")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("StartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Year")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("ClassifiedSalaries", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ClientEmployeeWorkshopAgg.ClientEmployeeWorkshop", b =>
|
|
{
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("WorkshopId", "EmployeeId");
|
|
|
|
b.HasIndex("EmployeeId");
|
|
|
|
b.ToTable("ClientWorkshopEmployee", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.Contact2Agg.EntityContact", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("NameContact")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Signature")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("TextManager_Contact", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ContarctingPartyAgg.PersonalContractingParty", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("Address")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("AgentPhone")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("ArchiveCode")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BlockTimes")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("City")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FName")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("IdNumber")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("IsBlock")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("IsLegal")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("LName")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("NationalId")
|
|
.IsRequired()
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("Nationalcode")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("Phone")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("RegisterId")
|
|
.IsRequired()
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("RepresentativeFullName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("RepresentativeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("State")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SureName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Zone")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("RepresentativeId");
|
|
|
|
b.ToTable("PersonalContractingParties", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ContractAgg.Contract", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("AgreementSalary")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ArchiveCode")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("ConsumableItems")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("ContarctStart")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("ContractEnd")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ContractNo")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("ContractPeriod")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("nvarchar(2)");
|
|
|
|
b.Property<string>("ContractType")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DayliWage")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("EmployerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("FamilyAllowance")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<DateTime>("GetWorkDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("HousingAllowance")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("JobType")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<long>("JobTypeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long?>("MandatoryHoursid")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("PersonnelCode")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("SetContractDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Signature")
|
|
.HasMaxLength(1)
|
|
.HasColumnType("nvarchar(1)");
|
|
|
|
b.Property<string>("WorkingHoursWeekly")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("WorkshopAddress1")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("WorkshopAddress2")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<long>("WorkshopIds")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("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", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ContractingPartyAccountAgg.ContractingPartyAccount", b =>
|
|
{
|
|
b.Property<long>("PersonalContractingPartyId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("AccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("PersonalContractingPartyId", "AccountId");
|
|
|
|
b.ToTable("ContractingPartyAccount", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.CrossJobAgg.CrossJob", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("CrossJobGuildId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("EquivalentRialOver")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("EquivalentRialUnder")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<double>("SalaryRatioOver")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("SalaryRatioUnder")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("CrossJobGuildId");
|
|
|
|
b.ToTable("CrossJobs", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.CrossJobGuildAgg.CrossJobGuild", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EconomicCode")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<int>("Year")
|
|
.HasMaxLength(4)
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("CrossJobGuilds", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.CrossJobItemsAgg.CrossJobItems", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("CrossJobId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("JobId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("CrossJobId");
|
|
|
|
b.HasIndex("JobId");
|
|
|
|
b.ToTable("CrossJobItems", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.DateSalaryAgg.DateSalary", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EndDateFa")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("EndDateGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("StartDateFa")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("StartDateGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(4)
|
|
.HasColumnType("nvarchar(4)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("DateSalaries", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.DateSalaryItemAgg.DateSalaryItem", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("DateSalaryId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<double>("Percent")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<long>("PercentageId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<double>("Salary")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("DateSalaryId");
|
|
|
|
b.HasIndex("PercentageId");
|
|
|
|
b.ToTable("DateSalaryItems", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.EmployeeAccountAgg.EmployeeAccount", b =>
|
|
{
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("AccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("EmployeeId", "AccountId");
|
|
|
|
b.ToTable("EmployeeAccounts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.EmployeeAgg.Employee", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("Address")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("BankBranch")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("BankCardNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("City")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateOfBirth")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateOfIssue")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EservicePassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("EserviceUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("FName")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("FatherName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("FieldOfStudy")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Gender")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("IdNumber")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("InsuranceCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("InsuranceHistoryByMonth")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("InsuranceHistoryByYear")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("LName")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("LevelOfEducation")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("MaritalStatus")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("MclsPassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("MclsUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("MilitaryService")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("NationalCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("Nationality")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("NumberOfChildren")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("OfficePhone")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Phone")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PlaceOfIssue")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SanaPassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("SanaUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("State")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("TaxOfficeUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("TaxOfficepassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Employees", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.EmployeeChildrenAgg.EmployeeChildren", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateOfBirth")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("FName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("ParentNationalCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("EmployeeId");
|
|
|
|
b.ToTable("EmployeeChildren", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.EmployeeComputeOptionsAgg.EmployeeComputeOptions", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("BonusesOptions")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ComputeOptions")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("YearsOptions")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("EmployeeComputeOptions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.EmployeeInsurancListDataAgg.EmployeeInsurancListData", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<double>("BenefitsIncludedContinuous")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("BenefitsIncludedNonContinuous")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("DailyWage")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IncludeStatus")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<long>("InsuranceListId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<double>("InsuranceShare")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<long>("JobId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("LeftWorkDate")
|
|
.HasColumnType("datetime2(7)");
|
|
|
|
b.Property<double>("MonthlyBenefits")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("MonthlyBenefitsIncluded")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("MonthlySalary")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("StartWorkDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("WorkingDays")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("EmployeeInsurancListData", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.EmployeeInsuranceRecordAgg.EmployeeInsuranceRecord", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("DateOfEnd")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateOfStart")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("WorkShopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("EmployeeId");
|
|
|
|
b.HasIndex("WorkShopId");
|
|
|
|
b.ToTable("EmployeeInsuranceRecord", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.EmployerAccountAgg.EmployerAccount", b =>
|
|
{
|
|
b.Property<long>("EmployerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("AccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("EmployerId", "AccountId");
|
|
|
|
b.ToTable("EmployerAccounts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.Evidence.Evidence", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<int>("BoardType_Id")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("File_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("BoardType_Id");
|
|
|
|
b.HasIndex("File_Id");
|
|
|
|
b.ToTable("Evidences", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.EvidenceDetail.EvidenceDetail", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Day")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("Evidence_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("FromDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("ToDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("Evidence_Id");
|
|
|
|
b.ToTable("EvidenceDetails", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.File1.File1", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("ArchiveNo")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Client")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("ClientVisitDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("FileClass")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("HasMandate")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ProceederReference")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("Reqester")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("Summoned")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Files", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileAlert.FileAlert", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<int>("AdditionalDeadline")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("FileState_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("File_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("FileState_Id");
|
|
|
|
b.HasIndex("File_Id");
|
|
|
|
b.ToTable("File_Alerts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileAndFileEmployerAgg.FileAndFileEmployer", b =>
|
|
{
|
|
b.Property<long>("FileId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("FileEmployerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("FileId", "FileEmployerId");
|
|
|
|
b.HasIndex("FileEmployerId");
|
|
|
|
b.ToTable("FileAndFileEmployers", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileEmployeeAgg.FileEmployee", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateOfBirth")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EservicePassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("EserviceUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("FName")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<string>("FatherName")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<string>("FieldOfStudy")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("Gender")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("IdNumber")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("InsuranceCode")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("IsActive")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("LName")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<string>("LevelOfEducation")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("MaritalStatus")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("MclsPassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("MclsUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("NationalCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("OfficePhone")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("Phone")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("RepresentativeFullName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("RepresentativeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("SanaPassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("SanaUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("TaxOfficeUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("TaxOfficepassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("RepresentativeId");
|
|
|
|
b.ToTable("FileEmployee", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileEmployerAgg.FileEmployer", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateOfBirth")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EservicePassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("EserviceUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("FName")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<string>("FieldOfStudy")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("FullName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Gender")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("IdNumber")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("InsuranceWorkshopCode")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("IsActive")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("IsLegal")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("LName")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<string>("LegalName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("LevelOfEducation")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("MaritalStatus")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("MclsPassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("MclsUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("NationalCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("NationalId")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("OfficePhone")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("Phone")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("RegisterId")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("RepresentativeFullName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("RepresentativeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("SanaPassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("SanaUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("TaxOfficeUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("TaxOfficepassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("RepresentativeId");
|
|
|
|
b.ToTable("FileEmployer", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileState.FileState", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("FileTiming_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("FileTiming_Id");
|
|
|
|
b.ToTable("File_States", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileTiming.FileTiming", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Deadline")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Tips")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("File_Timings", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileTitle.FileTitle", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Type")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("File_Titles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FinancialStatmentAgg.FinancialStatment", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("ContractingPartyId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("ContractingPartyName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("FinancialStatments", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FinancialTransactionAgg.FinancialTransaction", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<double>("Balance")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("Creditor")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Deptor")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(600)
|
|
.HasColumnType("nvarchar(600)");
|
|
|
|
b.Property<string>("DescriptionOption")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("FinancialStatementId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("MessageText")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<bool>("SentSms")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("SentSmsDateFa")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("TdateFa")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("TdateGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("TypeOfTransaction")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("FinancialStatementId");
|
|
|
|
b.ToTable("FinancialTransactions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.GroupPlanAgg.GroupPlan", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<double>("AnnualSalary")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("BaseSalary")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("GroupNo")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("nvarchar(2)");
|
|
|
|
b.Property<double>("JobSalary")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("WorkshopPlanId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("WorkshopPlanId");
|
|
|
|
b.ToTable("GroupPlans", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.GroupPlanJobItemAgg.GroupPlanJobItem", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("GroupNo")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("nvarchar(2)");
|
|
|
|
b.Property<long>("GroupPlanId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("JobId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("JobName")
|
|
.HasMaxLength(150)
|
|
.HasColumnType("nvarchar(150)");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("WorkshopPlanId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("GroupPlanId");
|
|
|
|
b.ToTable("GroupPlanJobItems", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.HolidayAgg.Holiday", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(4)
|
|
.HasColumnType("nvarchar(4)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Holidays", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.HolidayItemAgg.HolidayItem", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("HolidayId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("HolidayYear")
|
|
.HasMaxLength(4)
|
|
.HasColumnType("nvarchar(4)");
|
|
|
|
b.Property<DateTime>("Holidaydate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("HolidayId");
|
|
|
|
b.ToTable("Holidayitems", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InstitutionContractAgg.InstitutionContract", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("Address")
|
|
.HasMaxLength(250)
|
|
.HasColumnType("nvarchar(250)");
|
|
|
|
b.Property<string>("City")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<double>("ContractAmount")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("ContractDateFa")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("ContractDateGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ContractEndFa")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("ContractEndGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ContractNo")
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)");
|
|
|
|
b.Property<string>("ContractStartFa")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("ContractStartGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("ContractingPartyId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("ContractingPartyName")
|
|
.HasMaxLength(80)
|
|
.HasColumnType("nvarchar(80)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("DailyCompenseation")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(10000)
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("EmployeeManualCount")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<int>("ExtensionNo")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<double>("Obligation")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("OfficialCompany")
|
|
.HasMaxLength(12)
|
|
.HasColumnType("nvarchar(12)");
|
|
|
|
b.Property<long>("RepresentativeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("RepresentativeName")
|
|
.HasMaxLength(80)
|
|
.HasColumnType("nvarchar(80)");
|
|
|
|
b.Property<string>("Signature")
|
|
.HasMaxLength(1)
|
|
.HasColumnType("nvarchar(1)");
|
|
|
|
b.Property<string>("State")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<double>("TotalAmount")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("TypeOfContract")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("WorkshopManualCount")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("InstitutionContracts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InstitutionContractContactInfoAgg.InstitutionContractContactInfo", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FnameLname")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("InstitutionContractId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("PhoneType")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("Position")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("SendSms")
|
|
.HasColumnType("bit");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("InstitutionContractId");
|
|
|
|
b.ToTable("InstitutinContractContactInfo", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InstitutionPlanAgg.InstitutionPlan", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<double>("BaseContractAmont")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("CountPerson")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("FinalContractAmont")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("IncreasePercentage")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("InstitutionPlan", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsurancJobAgg.InsuranceJob", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EconomicCode")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("InsuranceJobTitle")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(4)
|
|
.HasColumnType("nvarchar(4)");
|
|
|
|
b.Property<long>("YearlySalaryId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("InsuranceJobs", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsurancWorkshopInfoAgg.InsuranceWorkshopInfo", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("Address")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("AgreementNumber")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EmployerName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("InsuranceCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("ListNumber")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("WorkshopId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("InsuranceWorkshopInformation", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceAgg.Insurance", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("Address")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EmployerStr")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ListNumber")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("Month")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("WorkShopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("WorkShopStr")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("Year")
|
|
.HasMaxLength(4)
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("WorkShopId");
|
|
|
|
b.ToTable("Insurances", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceEmployeeInfoAgg.InsuranceEmployeeInfo", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateOfBirth")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateOfIssue")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("FName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("FatherName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("Gender")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("IdNumber")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("InsuranceCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("LName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("NationalCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("PlaceOfIssue")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("EmployeeId")
|
|
.IsUnique();
|
|
|
|
b.ToTable("InsuranceEmployeeInformation", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceJobAndJobsAgg.InsuranceJobAndJobs", b =>
|
|
{
|
|
b.Property<long>("JobId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("InsuranceJobItemId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("JobId", "InsuranceJobItemId");
|
|
|
|
b.HasIndex("InsuranceJobItemId");
|
|
|
|
b.ToTable("InsuranceJobAndJobs", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceJobItemAgg.InsuranceJobItem", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("InsuranceJobId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<double>("PercentageLessThan")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("PercentageMoreThan")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("SalaeyLessThan")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("SalaryMoreThan")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("InsuranceJobId");
|
|
|
|
b.ToTable("InsuranceJobItems", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceListAgg.InsuranceList", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<bool>("ConfirmSentlist")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("DifficultJobsInsuranc")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("EmployerShare")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("EndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("Included")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("IncludedAndNotIncluded")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("InsuredShare")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("Month")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("nvarchar(2)");
|
|
|
|
b.Property<DateTime>("StartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("SumOfBenefitsIncluded")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("SumOfDailyWage")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("SumOfEmployees")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("SumOfSalaries")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("SumOfWorkingDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("UnEmploymentInsurance")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(4)
|
|
.HasColumnType("nvarchar(4)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("InsuranceLists", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceWorkshopAgg.InsuranceListWorkshop", b =>
|
|
{
|
|
b.Property<long>("InsurancListId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("InsurancListId", "WorkshopId");
|
|
|
|
b.HasIndex("WorkshopId");
|
|
|
|
b.ToTable("InsuranceListWorkshops", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceYearlySalaryAgg.InsuranceYearlySalary", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("EndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("Group1")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group10")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group11")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group12")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group13")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group14")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group15")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group16")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group17")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group18")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group19")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group2")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group20")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group21")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group22")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group23")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group24")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group25")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group26")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group27")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group28")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group29")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group3")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group30")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group4")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group5")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group6")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group7")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group8")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("Group9")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("StartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Year")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("InsuranceYearlySalaries", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.JobAgg.Job", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("JobCode")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("JobName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Jobs", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.LeaveAgg.Leave", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Decription")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("EmployeeFullName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("EndLeave")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("IsAccepted")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("LeaveHourses")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("LeaveType")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<int>("Month")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("PaidLeaveType")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<DateTime>("StartLeave")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<int>("Year")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Leave", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.LeftWorkAgg.LeftWork", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<bool>("AddBonusesPay")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("AddLeavePay")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("AddYearsPay")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("BonusesOptions")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ComputeOptions")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EmployeeFullName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IncludeStatus")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<long>("JobId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("LeftWorkDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("StartWorkDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("EmployeeId");
|
|
|
|
b.HasIndex("WorkshopId");
|
|
|
|
b.ToTable("LeftWork", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.LeftWorkInsuranceAgg.LeftWorkInsurance", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EmployeeFullName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IncludeStatus")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<long>("JobId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("LeftWorkDate")
|
|
.HasColumnType("datetime2(7)");
|
|
|
|
b.Property<DateTime>("StartWorkDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("EmployeeId");
|
|
|
|
b.HasIndex("WorkshopId");
|
|
|
|
b.ToTable("LeftWorkInsurances", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.MandatoryHoursAgg.MandatoryHours", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<double>("Aban")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("AbanFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("AbanHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("AbanMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Azar")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("AzarFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("AzarHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("AzarMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Bahman")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("BahmanFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BahmanHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("BahmanMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("Dey")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("DeyFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DeyHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DeyMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Esfand")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("EsfandFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("EsfandHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("EsfandMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Farvardin")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("FarvardinFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("FarvardinHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("FarvardinMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Khordad")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("KhordadFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("KhordadHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("KhordadMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Mehr")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("MehrFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MehrHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MehrMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Mordad")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("MordadFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MordadHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("MordadMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Ordibehesht")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("OrdibeheshtFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("OrdibeheshtHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("OrdibeheshtMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Shahrivar")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("ShahrivarFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ShahrivarHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("ShahrivarMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Tir")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("TirFridays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TirHolidays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TirMonadatoryDays")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Year")
|
|
.HasMaxLength(4)
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("MandatoryHours", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.MasterPenaltyTitle.MasterPenaltyTitle", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Day")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("FromDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("MasterPetition_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("PaidAmount")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RemainingAmount")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("ToDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("MasterPetition_Id");
|
|
|
|
b.ToTable("Master_PenaltyTitles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.MasterPetition.MasterPetition", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<int>("BoardType_Id")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("File_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("MasterName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkHistoryDescreption")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("BoardType_Id");
|
|
|
|
b.HasIndex("File_Id");
|
|
|
|
b.ToTable("Master_Petitions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.MasterWorkHistory.MasterWorkHistory", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("FromDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("MasterPetition_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("ToDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int?>("WorkingHoursPerDay")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("WorkingHoursPerWeek")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("MasterPetition_Id");
|
|
|
|
b.ToTable("Master_WorkHistories", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ModuleAgg.EntityModule", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("NameSubModule")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("TextManager_Module", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ModuleTextManagerAgg.EntityModuleTextManager", b =>
|
|
{
|
|
b.Property<long>("TextManagerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("ModuleId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("TextManagerId", "ModuleId");
|
|
|
|
b.HasIndex("ModuleId");
|
|
|
|
b.ToTable("TextManager_ModuleTextManager", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.OriginalTitleAgg.EntityOriginalTitle", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Title")
|
|
.IsRequired()
|
|
.HasMaxLength(60)
|
|
.HasColumnType("nvarchar(60)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("TextManager_OriginalTitle", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.PaymentToEmployeeAgg.PaymentToEmployee", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Month")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(4)
|
|
.HasColumnType("nvarchar(4)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("PaymentToEmployees", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.PaymentToEmployeeItemAgg.PaymentToEmployeeItem", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("BankCheckNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("CashDescription")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DestinationBankAccountNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("DestinationBankName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("PayDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("Payment")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("PaymentMetod")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<string>("PaymentTitle")
|
|
.HasMaxLength(150)
|
|
.HasColumnType("nvarchar(150)");
|
|
|
|
b.Property<long>("PaymentToEmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("SourceBankAccountNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SourceBankName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("PaymentToEmployeeId");
|
|
|
|
b.ToTable("PaymentToEmployeeItems", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.PenaltyTitle.PenaltyTitle", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Day")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("FromDate")
|
|
.HasColumnType("datetime2(7)");
|
|
|
|
b.Property<string>("PaidAmount")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("Petition_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("RemainingAmount")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("ToDate")
|
|
.HasColumnType("datetime2(7)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("Petition_Id");
|
|
|
|
b.ToTable("PenaltyTitles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.PercentageAgg.Percentage", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("Percent")
|
|
.HasColumnType("float");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Percentages", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.PersonnelCodeAgg.PersonnelCodeDomain", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("PersonnelCode")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("EmployeeId");
|
|
|
|
b.HasIndex("WorkshopId");
|
|
|
|
b.ToTable("PersonnelCodes", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.Petition.Petition", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<int>("BoardType_Id")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("File_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("NotificationPetitionDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("PetitionIssuanceDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("PetitionNo")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("TotalPenalty")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("TotalPenaltyTitles")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("WorkHistoryDescreption")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("BoardType_Id");
|
|
|
|
b.HasIndex("File_Id");
|
|
|
|
b.ToTable("Petitions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ProceedingSession.ProceedingSession", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("Board_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("Date")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Time")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("Board_Id");
|
|
|
|
b.ToTable("ProceedingSessions", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.RepresentativeAgg.Representative", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("Address")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("AgentPhone")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FName")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("FullName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("IdNumber")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("IsActive")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("IsLegal")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("LName")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("LegalName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("NationalId")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("Nationalcode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("Phone")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("RegisterId")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Representative", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.RollCallAgg.RollCall", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EmployeeFullName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("EndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Month")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("StartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Year")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("RollCall", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.RollCallServiceAgg.RollCallService", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("AccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<double>("Amount")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Duration")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("nvarchar(2)");
|
|
|
|
b.Property<DateTime>("EndService")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<int>("MaxPersonValid")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ServiceType")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<DateTime>("StartService")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("AccountId");
|
|
|
|
b.ToTable("RollCallServices", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.SmsResultAgg.SmsResult", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("ContractingPartyName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("ContractingPatyId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("InstitutionContractId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("MessageId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Mobile")
|
|
.HasMaxLength(12)
|
|
.HasColumnType("nvarchar(12)");
|
|
|
|
b.Property<string>("Status")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("TypeOfSms")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("SmsResults", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.SubtitleAgg.EntitySubtitle", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("EntitySubtitleid")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("OriginalTitle_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Subtitle")
|
|
.IsRequired()
|
|
.HasMaxLength(60)
|
|
.HasColumnType("nvarchar(60)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("EntitySubtitleid");
|
|
|
|
b.HasIndex("OriginalTitle_Id");
|
|
|
|
b.ToTable("TextManager_Subtitle", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.Task.Task", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("Commander_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Customer")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("Customer_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("SeniorUser_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("TaskDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("TaskTitle")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long?>("TaskTitleid")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("TaskTitleid");
|
|
|
|
b.ToTable("Tasks", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.TaskStatus.TaskStatus", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("DeadlineExtentionDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("DeadlineExtentionRegDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("DeadlineExtentionRegUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<short>("DeadlineExtentionStatus")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<DateTime?>("DoneRegDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("DoneRegUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<short>("DoneStatus")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<string>("ImpossibilityDescription")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("ImpossibilityRegDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("ImpossibilityRegUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<short>("ImpossibilityStatus")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<DateTime?>("ReferralRegDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("ReferralRegUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<short>("ReferralStatus")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<long>("ReferralUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("Task_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("Task_Id")
|
|
.IsUnique();
|
|
|
|
b.ToTable("TaskStatuses", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.TaskTitle.TaskTitle", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("TaskTitles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.TextManagerAgg.EntityTextManager", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("Chapter_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DateTextManager")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("NoteNumber")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("NumberTextManager")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("OriginalTitle_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Paragraph")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SubjectTextManager")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<long>("Subtitle_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("TextManager_TextManager", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkHistory.WorkHistory", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("FromDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("Petition_Id")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("ToDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int?>("WorkingHoursPerDay")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("WorkingHoursPerWeek")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("Petition_Id");
|
|
|
|
b.ToTable("WorkHistories", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkingHoursAgg.WorkingHours", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<long>("ContractId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("ContractNo")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("NumberOfFriday")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("NumberOfWorkingDays")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("OverNightWorkH")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("OverNightWorkM")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("nvarchar(2)");
|
|
|
|
b.Property<string>("OverTimeWorkH")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("OverTimeWorkM")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("nvarchar(2)");
|
|
|
|
b.Property<string>("ShiftWork")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("nvarchar(2)");
|
|
|
|
b.Property<string>("TotalHoursesH")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("TotalHoursesM")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("nvarchar(2)");
|
|
|
|
b.Property<string>("WeeklyWorkingTime")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("ContractId");
|
|
|
|
b.ToTable("WorkingHours", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkingHoursItemsAgg.WorkingHoursItems", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("ComplexEnd")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("ComplexStart")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DayOfWork")
|
|
.HasMaxLength(1)
|
|
.HasColumnType("nvarchar(1)");
|
|
|
|
b.Property<string>("End1")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("End2")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("End3")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("RestTime")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("Start1")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("Start2")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("Start3")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("WeekNumber")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<long>("WorkingHoursId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("WorkingHoursId");
|
|
|
|
b.ToTable("WorkingHoursItems", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkingHoursTempAgg.WorkingHoursTemp", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("ShiftWork")
|
|
.HasMaxLength(2)
|
|
.HasColumnType("nvarchar(2)");
|
|
|
|
b.Property<string>("WorkShopAddress2")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("WorkingHoursTemp", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkingHoursTempItemAgg.WorkingHoursTempItem", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("ComplexEnd")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("ComplexStart")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DayOfWork")
|
|
.HasMaxLength(1)
|
|
.HasColumnType("nvarchar(1)");
|
|
|
|
b.Property<string>("End1")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("End2")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("RestTime")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("Start1")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("Start2")
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("WeekNumber")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<long>("WorkingHoursTempId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("WorkingHoursTempId");
|
|
|
|
b.ToTable("WorkingHoursTempItem", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkshopAccountAgg.WorkshopAccount", b =>
|
|
{
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("AccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("WorkshopId", "AccountId");
|
|
|
|
b.ToTable("WorkshopeAccounts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkshopAgg.Workshop", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<bool>("AddBonusesPay")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("AddLeavePay")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("AddYearsPay")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Address")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("AgentName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("AgentPhone")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("AgreementNumber")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("ArchiveCode")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("BonusesOptions")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("City")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("ComputeOptions")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ContractTerm")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("FixedSalary")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("InsuranceCode")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<long?>("InsuranceJobId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("IsActiveString")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<bool>("IsClassified")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsOldContract")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Population")
|
|
.HasMaxLength(25)
|
|
.HasColumnType("nvarchar(25)");
|
|
|
|
b.Property<string>("State")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<bool>("TotalPaymentHide")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("TypeOfContract")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("TypeOfInsuranceSend")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("TypeOfOwnership")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("WorkshopFullName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("WorkshopSureName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("YearsOptions")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ZoneName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Workshops", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkshopEmployerAgg.WorkshopEmployer", b =>
|
|
{
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("EmployerId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("WorkshopId", "EmployerId");
|
|
|
|
b.HasIndex("EmployerId");
|
|
|
|
b.ToTable("WorkshopeEmployers", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkshopPlanAgg.WorkshopPlan", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Designer")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("DesignerPhone")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("ExecutionDateFa")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("ExecutionDateGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("IncludingDateFa")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<DateTime>("IncludingDateGr")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("WorkshopPlan", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkshopPlanEmployeeAgg.WorkshopPlanEmployee", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EmployeeFullName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<long>("EmployeeId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("WorkshopId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("WorkshopPlanId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("WorkshopPlanId");
|
|
|
|
b.ToTable("WorkshopPlanEmployees", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.YearlySalaryAgg.YearlySalary", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<int>("ConnectionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("EndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("StartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("YearlySalariess", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.YearlySalaryItemsAgg.YearlySalaryItem", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ItemName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<double>("ItemValue")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("ParentConnectionId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ValueType")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<long>("YearlySalaryId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("YearlySalaryId");
|
|
|
|
b.ToTable("YearlyItems", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.YearlysSalaryTitleAgg.YearlySalaryTitle", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Title1")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Title10")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Title2")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Title3")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Title4")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Title5")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Title6")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Title7")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Title8")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Title9")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("YearlySalaryTitles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ZoneAgg.Zone", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<int>("CityId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ZoneName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.ToTable("Zones", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.empolyerAgg.Employer", b =>
|
|
{
|
|
b.Property<long>("id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
|
|
|
b.Property<string>("Address")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("AgentPhone")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("ContractingPartyId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateOfBirth")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateOfIssue")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EmployerLName")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("EmployerNo")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("EservicePassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("EserviceUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("FName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("FatherName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("FullName")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("Gender")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("IdNumber")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("IsLegal")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("LName")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("nvarchar(255)");
|
|
|
|
b.Property<string>("MclsPassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("MclsUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("NationalId")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("Nationalcode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.Property<string>("Nationality")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Phone")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PlaceOfIssue")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("RegisterId")
|
|
.HasMaxLength(15)
|
|
.HasColumnType("nvarchar(15)");
|
|
|
|
b.Property<string>("SanaPassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("SanaUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("TaxOfficeUserName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("TaxOfficepassword")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.HasKey("id");
|
|
|
|
b.HasIndex("ContractingPartyId");
|
|
|
|
b.ToTable("Employers", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("EmployerWorkshop", b =>
|
|
{
|
|
b.Property<long>("EmployersListid")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<long>("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.CheckoutAgg.Checkout", b =>
|
|
{
|
|
b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop")
|
|
.WithMany("Checkouts")
|
|
.HasForeignKey("WorkshopId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Workshop");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ClientEmployeeWorkshopAgg.ClientEmployeeWorkshop", b =>
|
|
{
|
|
b.HasOne("Company.Domain.EmployeeAgg.Employee", "Employee")
|
|
.WithMany("ClientEmployeeWorkshopList")
|
|
.HasForeignKey("EmployeeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop")
|
|
.WithMany("ClientEmployeeWorkshopList")
|
|
.HasForeignKey("WorkshopId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Employee");
|
|
|
|
b.Navigation("Workshop");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.ContarctingPartyAgg.PersonalContractingParty", b =>
|
|
{
|
|
b.HasOne("Company.Domain.RepresentativeAgg.Representative", "Representative")
|
|
.WithMany("ContractingParties")
|
|
.HasForeignKey("RepresentativeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Representative");
|
|
});
|
|
|
|
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.ContractingPartyAccountAgg.ContractingPartyAccount", b =>
|
|
{
|
|
b.HasOne("Company.Domain.ContarctingPartyAgg.PersonalContractingParty", "PersonalContractingParty")
|
|
.WithMany()
|
|
.HasForeignKey("PersonalContractingPartyId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("PersonalContractingParty");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.CrossJobAgg.CrossJob", b =>
|
|
{
|
|
b.HasOne("Company.Domain.CrossJobGuildAgg.CrossJobGuild", "CrossJobGuild")
|
|
.WithMany("CrossJobList")
|
|
.HasForeignKey("CrossJobGuildId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("CrossJobGuild");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.CrossJobItemsAgg.CrossJobItems", b =>
|
|
{
|
|
b.HasOne("Company.Domain.CrossJobAgg.CrossJob", "CrossJob")
|
|
.WithMany("CrossJobItemsList")
|
|
.HasForeignKey("CrossJobId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Company.Domain.JobAgg.Job", "Job")
|
|
.WithMany("CrossJobItemsList")
|
|
.HasForeignKey("JobId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("CrossJob");
|
|
|
|
b.Navigation("Job");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.DateSalaryItemAgg.DateSalaryItem", b =>
|
|
{
|
|
b.HasOne("Company.Domain.DateSalaryAgg.DateSalary", "DateSalary")
|
|
.WithMany("DateSalaryItemList")
|
|
.HasForeignKey("DateSalaryId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Company.Domain.PercentageAgg.Percentage", "Percentage")
|
|
.WithMany("DateSalaryItemList")
|
|
.HasForeignKey("PercentageId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("DateSalary");
|
|
|
|
b.Navigation("Percentage");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.EmployeeAccountAgg.EmployeeAccount", b =>
|
|
{
|
|
b.HasOne("Company.Domain.EmployeeAgg.Employee", "Employee")
|
|
.WithMany()
|
|
.HasForeignKey("EmployeeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Employee");
|
|
});
|
|
|
|
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.EmployeeInsuranceRecordAgg.EmployeeInsuranceRecord", b =>
|
|
{
|
|
b.HasOne("Company.Domain.EmployeeAgg.Employee", "Employee")
|
|
.WithMany("EmployeeInsuranceRecords")
|
|
.HasForeignKey("EmployeeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop")
|
|
.WithMany("EmployeeInsuranceRecords")
|
|
.HasForeignKey("WorkShopId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Employee");
|
|
|
|
b.Navigation("Workshop");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.EmployerAccountAgg.EmployerAccount", b =>
|
|
{
|
|
b.HasOne("Company.Domain.empolyerAgg.Employer", "Employer")
|
|
.WithMany()
|
|
.HasForeignKey("EmployerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Employer");
|
|
});
|
|
|
|
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.FileAlert.FileAlert", b =>
|
|
{
|
|
b.HasOne("Company.Domain.FileState.FileState", "FileState")
|
|
.WithMany("FileAlertsList")
|
|
.HasForeignKey("FileState_Id")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Company.Domain.File1.File1", "File")
|
|
.WithMany("FileAlertsList")
|
|
.HasForeignKey("File_Id")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("File");
|
|
|
|
b.Navigation("FileState");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileAndFileEmployerAgg.FileAndFileEmployer", b =>
|
|
{
|
|
b.HasOne("Company.Domain.FileEmployerAgg.FileEmployer", "FileEmployer")
|
|
.WithMany("FileAndFileEmployers")
|
|
.HasForeignKey("FileEmployerId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Company.Domain.File1.File1", "File1")
|
|
.WithMany("FileAndFileEmployers")
|
|
.HasForeignKey("FileId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("File1");
|
|
|
|
b.Navigation("FileEmployer");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileEmployeeAgg.FileEmployee", b =>
|
|
{
|
|
b.HasOne("Company.Domain.RepresentativeAgg.Representative", "Representative")
|
|
.WithMany("FileEmployeeList")
|
|
.HasForeignKey("RepresentativeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Representative");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileEmployerAgg.FileEmployer", b =>
|
|
{
|
|
b.HasOne("Company.Domain.RepresentativeAgg.Representative", "Representative")
|
|
.WithMany("FileEmployerList")
|
|
.HasForeignKey("RepresentativeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Representative");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileState.FileState", b =>
|
|
{
|
|
b.HasOne("Company.Domain.FileTiming.FileTiming", "FileTiming")
|
|
.WithMany("FileStates")
|
|
.HasForeignKey("FileTiming_Id")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("FileTiming");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FinancialTransactionAgg.FinancialTransaction", b =>
|
|
{
|
|
b.HasOne("Company.Domain.FinancialStatmentAgg.FinancialStatment", "FinancialStatment")
|
|
.WithMany("FinancialTransactionList")
|
|
.HasForeignKey("FinancialStatementId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("FinancialStatment");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.GroupPlanAgg.GroupPlan", b =>
|
|
{
|
|
b.HasOne("Company.Domain.WorkshopPlanAgg.WorkshopPlan", "WorkshopPlan")
|
|
.WithMany("GroupPlans")
|
|
.HasForeignKey("WorkshopPlanId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("WorkshopPlan");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.GroupPlanJobItemAgg.GroupPlanJobItem", b =>
|
|
{
|
|
b.HasOne("Company.Domain.GroupPlanAgg.GroupPlan", "GroupPlan")
|
|
.WithMany("GroupPlanJobItems")
|
|
.HasForeignKey("GroupPlanId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("GroupPlan");
|
|
});
|
|
|
|
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.InstitutionContractContactInfoAgg.InstitutionContractContactInfo", b =>
|
|
{
|
|
b.HasOne("Company.Domain.InstitutionContractAgg.InstitutionContract", "InstitutionContracts")
|
|
.WithMany("ContactInfoList")
|
|
.HasForeignKey("InstitutionContractId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("InstitutionContracts");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsurancWorkshopInfoAgg.InsuranceWorkshopInfo", b =>
|
|
{
|
|
b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop")
|
|
.WithOne("InsuranceWorkshopInfo")
|
|
.HasForeignKey("Company.Domain.InsurancWorkshopInfoAgg.InsuranceWorkshopInfo", "WorkshopId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Workshop");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceAgg.Insurance", b =>
|
|
{
|
|
b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop")
|
|
.WithMany("Insurances")
|
|
.HasForeignKey("WorkShopId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Workshop");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceEmployeeInfoAgg.InsuranceEmployeeInfo", b =>
|
|
{
|
|
b.HasOne("Company.Domain.EmployeeAgg.Employee", "Employee")
|
|
.WithOne("InsuranceEmployeeInfo")
|
|
.HasForeignKey("Company.Domain.InsuranceEmployeeInfoAgg.InsuranceEmployeeInfo", "EmployeeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Employee");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceJobAndJobsAgg.InsuranceJobAndJobs", b =>
|
|
{
|
|
b.HasOne("Company.Domain.InsuranceJobItemAgg.InsuranceJobItem", "InsuranceJobItem")
|
|
.WithMany("InsuranceJobAndJobs")
|
|
.HasForeignKey("InsuranceJobItemId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Company.Domain.JobAgg.Job", "Jobs")
|
|
.WithMany("InsuranceJobAndJobs")
|
|
.HasForeignKey("JobId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("InsuranceJobItem");
|
|
|
|
b.Navigation("Jobs");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceJobItemAgg.InsuranceJobItem", b =>
|
|
{
|
|
b.HasOne("Company.Domain.InsurancJobAgg.InsuranceJob", "InsuranceJob")
|
|
.WithMany("InsuranceJobItemList")
|
|
.HasForeignKey("InsuranceJobId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("InsuranceJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceWorkshopAgg.InsuranceListWorkshop", b =>
|
|
{
|
|
b.HasOne("Company.Domain.InsuranceListAgg.InsuranceList", "InsuranceList")
|
|
.WithMany("InsuranceListWorkshops")
|
|
.HasForeignKey("InsurancListId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop")
|
|
.WithMany("InsuranceListWorkshops")
|
|
.HasForeignKey("WorkshopId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("InsuranceList");
|
|
|
|
b.Navigation("Workshop");
|
|
});
|
|
|
|
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.LeftWorkInsuranceAgg.LeftWorkInsurance", b =>
|
|
{
|
|
b.HasOne("Company.Domain.EmployeeAgg.Employee", "Employee")
|
|
.WithMany("LeftWorkInsurances")
|
|
.HasForeignKey("EmployeeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop")
|
|
.WithMany("LeftWorkInsurances")
|
|
.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.PaymentToEmployeeItemAgg.PaymentToEmployeeItem", b =>
|
|
{
|
|
b.HasOne("Company.Domain.PaymentToEmployeeAgg.PaymentToEmployee", "PaymentToEmployee")
|
|
.WithMany("PaymentToEmployeeItemList")
|
|
.HasForeignKey("PaymentToEmployeeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("PaymentToEmployee");
|
|
});
|
|
|
|
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.PersonnelCodeAgg.PersonnelCodeDomain", b =>
|
|
{
|
|
b.HasOne("Company.Domain.EmployeeAgg.Employee", "Employee")
|
|
.WithMany("PersonnelCodeList")
|
|
.HasForeignKey("EmployeeId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop")
|
|
.WithMany("PersonnelCodeList")
|
|
.HasForeignKey("WorkshopId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Employee");
|
|
|
|
b.Navigation("Workshop");
|
|
});
|
|
|
|
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.RollCallServiceAgg.RollCallService", b =>
|
|
{
|
|
b.HasOne("Company.Domain.WorkshopAgg.Workshop", "Workshop")
|
|
.WithMany("RollCallServicesList")
|
|
.HasForeignKey("AccountId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Workshop");
|
|
});
|
|
|
|
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.Task.Task", b =>
|
|
{
|
|
b.HasOne("Company.Domain.TaskTitle.TaskTitle", null)
|
|
.WithMany("TasksList")
|
|
.HasForeignKey("TaskTitleid");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.TaskStatus.TaskStatus", b =>
|
|
{
|
|
b.HasOne("Company.Domain.Task.Task", "Task")
|
|
.WithOne("TaskStatus")
|
|
.HasForeignKey("Company.Domain.TaskStatus.TaskStatus", "Task_Id")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Task");
|
|
});
|
|
|
|
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.WorkingHoursTempItemAgg.WorkingHoursTempItem", b =>
|
|
{
|
|
b.HasOne("Company.Domain.WorkingHoursTempAgg.WorkingHoursTemp", "WorkingHoursTemp")
|
|
.WithMany("WorkingHoursTempItemList")
|
|
.HasForeignKey("WorkingHoursTempId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("WorkingHoursTemp");
|
|
});
|
|
|
|
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.WorkshopPlanEmployeeAgg.WorkshopPlanEmployee", b =>
|
|
{
|
|
b.HasOne("Company.Domain.WorkshopPlanAgg.WorkshopPlan", "WorkshopPlan")
|
|
.WithMany("WorkshopPlanEmployees")
|
|
.HasForeignKey("WorkshopPlanId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("WorkshopPlan");
|
|
});
|
|
|
|
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.CrossJobAgg.CrossJob", b =>
|
|
{
|
|
b.Navigation("CrossJobItemsList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.CrossJobGuildAgg.CrossJobGuild", b =>
|
|
{
|
|
b.Navigation("CrossJobList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.DateSalaryAgg.DateSalary", b =>
|
|
{
|
|
b.Navigation("DateSalaryItemList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.EmployeeAgg.Employee", b =>
|
|
{
|
|
b.Navigation("ClientEmployeeWorkshopList");
|
|
|
|
b.Navigation("Contracts");
|
|
|
|
b.Navigation("EmployeeChildrenList");
|
|
|
|
b.Navigation("EmployeeInsuranceRecords");
|
|
|
|
b.Navigation("InsuranceEmployeeInfo");
|
|
|
|
b.Navigation("LeftWorkInsurances");
|
|
|
|
b.Navigation("LeftWorks");
|
|
|
|
b.Navigation("PersonnelCodeList");
|
|
});
|
|
|
|
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("FileAlertsList");
|
|
|
|
b.Navigation("FileAndFileEmployers");
|
|
|
|
b.Navigation("MasterPetitionsList");
|
|
|
|
b.Navigation("PetitionsList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileEmployerAgg.FileEmployer", b =>
|
|
{
|
|
b.Navigation("FileAndFileEmployers");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileState.FileState", b =>
|
|
{
|
|
b.Navigation("FileAlertsList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FileTiming.FileTiming", b =>
|
|
{
|
|
b.Navigation("FileStates");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.FinancialStatmentAgg.FinancialStatment", b =>
|
|
{
|
|
b.Navigation("FinancialTransactionList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.GroupPlanAgg.GroupPlan", b =>
|
|
{
|
|
b.Navigation("GroupPlanJobItems");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.HolidayAgg.Holiday", b =>
|
|
{
|
|
b.Navigation("HolidayItems");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InstitutionContractAgg.InstitutionContract", b =>
|
|
{
|
|
b.Navigation("ContactInfoList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsurancJobAgg.InsuranceJob", b =>
|
|
{
|
|
b.Navigation("InsuranceJobItemList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceJobItemAgg.InsuranceJobItem", b =>
|
|
{
|
|
b.Navigation("InsuranceJobAndJobs");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.InsuranceListAgg.InsuranceList", b =>
|
|
{
|
|
b.Navigation("InsuranceListWorkshops");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.JobAgg.Job", b =>
|
|
{
|
|
b.Navigation("ContractsList");
|
|
|
|
b.Navigation("CrossJobItemsList");
|
|
|
|
b.Navigation("InsuranceJobAndJobs");
|
|
});
|
|
|
|
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.PaymentToEmployeeAgg.PaymentToEmployee", b =>
|
|
{
|
|
b.Navigation("PaymentToEmployeeItemList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.PercentageAgg.Percentage", b =>
|
|
{
|
|
b.Navigation("DateSalaryItemList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.Petition.Petition", b =>
|
|
{
|
|
b.Navigation("PenaltyTitlesList");
|
|
|
|
b.Navigation("WorkHistoriesList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.RepresentativeAgg.Representative", b =>
|
|
{
|
|
b.Navigation("ContractingParties");
|
|
|
|
b.Navigation("FileEmployeeList");
|
|
|
|
b.Navigation("FileEmployerList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.SubtitleAgg.EntitySubtitle", b =>
|
|
{
|
|
b.Navigation("Chapters");
|
|
|
|
b.Navigation("Subtitles");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.Task.Task", b =>
|
|
{
|
|
b.Navigation("TaskStatus");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.TaskTitle.TaskTitle", b =>
|
|
{
|
|
b.Navigation("TasksList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.TextManagerAgg.EntityTextManager", b =>
|
|
{
|
|
b.Navigation("EntityModuleTextManagers");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkingHoursAgg.WorkingHours", b =>
|
|
{
|
|
b.Navigation("WorkingHoursItemsList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkingHoursTempAgg.WorkingHoursTemp", b =>
|
|
{
|
|
b.Navigation("WorkingHoursTempItemList");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkshopAgg.Workshop", b =>
|
|
{
|
|
b.Navigation("Checkouts");
|
|
|
|
b.Navigation("ClientEmployeeWorkshopList");
|
|
|
|
b.Navigation("Contracts2");
|
|
|
|
b.Navigation("EmployeeInsuranceRecords");
|
|
|
|
b.Navigation("InsuranceListWorkshops");
|
|
|
|
b.Navigation("InsuranceWorkshopInfo");
|
|
|
|
b.Navigation("Insurances");
|
|
|
|
b.Navigation("LeftWorkInsurances");
|
|
|
|
b.Navigation("LeftWorks");
|
|
|
|
b.Navigation("PersonnelCodeList");
|
|
|
|
b.Navigation("RollCallServicesList");
|
|
|
|
b.Navigation("WorkshopEmployers");
|
|
});
|
|
|
|
modelBuilder.Entity("Company.Domain.WorkshopPlanAgg.WorkshopPlan", b =>
|
|
{
|
|
b.Navigation("GroupPlans");
|
|
|
|
b.Navigation("WorkshopPlanEmployees");
|
|
});
|
|
|
|
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
|
|
}
|
|
}
|
|
}
|