1270 lines
47 KiB
C#
1270 lines
47 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using GozareshgirProgramManager.Infrastructure.Persistence.Context;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace GozareshgirProgramManager.Infrastructure.Migrations
|
|
{
|
|
[DbContext(typeof(ProgramManagerDbContext))]
|
|
partial class AppDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "10.0.1")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.CheckoutAgg.Entities.Checkout", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CheckoutEndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CheckoutStartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<double>("DeductionFromSalary")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<string>("FullName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<int>("MandatoryHours")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("Month")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("MonthlySalaryDefined")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<double>("MonthlySalaryPay")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("RemainingHours")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TotalDaysWorked")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("TotalHoursWorked")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<int>("Year")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Checkouts", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.CustomerAgg.Customer", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasMaxLength(256)
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Customers", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.FileManagementAgg.Entities.UploadedFile", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Category")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("DeletedByUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("DeletedDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int?>("DurationSeconds")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("FileExtension")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long>("FileSizeBytes")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("FileType")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int?>("ImageHeight")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int?>("ImageWidth")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<bool?>("IsVirusScanPassed")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("MimeType")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<string>("OriginalFileName")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("ReferenceEntityId")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("ReferenceEntityType")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("StoragePath")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<string>("StorageProvider")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("StorageUrl")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<string>("ThumbnailUrl")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<string>("UniqueFileName")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<DateTime>("UploadDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("UploadedByUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("VirusScanDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("VirusScanResult")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Category");
|
|
|
|
b.HasIndex("IsDeleted");
|
|
|
|
b.HasIndex("Status");
|
|
|
|
b.HasIndex("UniqueFileName")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("UploadedByUserId");
|
|
|
|
b.HasIndex("ReferenceEntityType", "ReferenceEntityId");
|
|
|
|
b.ToTable("UploadedFiles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.BugSection", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("InitialDescription")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<long>("OriginalAssignedUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Priority")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TaskId");
|
|
|
|
b.ToTable("BugSections", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.PhaseSection", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("PhaseId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("SkillId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PhaseId");
|
|
|
|
b.HasIndex("SkillId");
|
|
|
|
b.ToTable("PhaseSections");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Phase.ProjectPhase", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DeployStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<DateTime?>("EndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("HasAssignmentOverride")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsArchived")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<int>("OrderIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid>("ProjectId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime?>("StartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ProjectId");
|
|
|
|
b.ToTable("ProjectPhases", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Project.Project", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<DateTime?>("EndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("HasAssignmentOverride")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<DateTime?>("PlannedEndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("PlannedStartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("StartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Projects", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Project.ProjectSection", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("ProjectId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("SkillId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ProjectId");
|
|
|
|
b.HasIndex("SkillId");
|
|
|
|
b.ToTable("ProjectSections");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.ProjectTask", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AllocatedTime")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<DateTime?>("DueDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("EndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("HasAssignmentOverride")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("HasTimeOverride")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<int>("OrderIndex")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid>("PhaseId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Priority")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("StartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("PhaseId");
|
|
|
|
b.ToTable("ProjectTasks", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSection", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("CurrentAssignedUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("InitialDescription")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("InitialEstimatedHours")
|
|
.IsRequired()
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<long>("OriginalAssignedUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<Guid>("SkillId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SkillId");
|
|
|
|
b.HasIndex("TaskId");
|
|
|
|
b.ToTable("TaskSections", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSectionActivity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("EndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EndNotes")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Notes")
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<Guid>("SectionId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("StartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("SectionId");
|
|
|
|
b.ToTable("TaskSectionActivities", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSectionAdditionalTime", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("AddedAt")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("AddedByUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Hours")
|
|
.IsRequired()
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("Reason")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<Guid?>("TaskSectionId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TaskSectionId");
|
|
|
|
b.ToTable("TaskSectionAdditionalTimes", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSectionRevision", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<long>("CreatedByUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Message")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("TaskSectionId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("TaskSectionRevisions");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSectionTimeRequest", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasMaxLength(1200)
|
|
.HasColumnType("nvarchar(1200)");
|
|
|
|
b.Property<string>("RequestStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("RequestType")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("RequestedTime")
|
|
.IsRequired()
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<Guid>("TaskSectionId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("TaskSectionId");
|
|
|
|
b.ToTable("TaskSectionTimeRequests");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.RoleAgg.Entities.Role", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long?>("GozareshgirRoleId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("RoleName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("PmRoles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.SalaryPaymentSettingAgg.Entities.SalaryPaymentSetting", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("EndSettingDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("HolidayWorking")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<double>("MonthlySalary")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<DateTime?>("StartSettingDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("SalaryPaymentSetting", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.SkillAgg.Entities.Skill", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Skills", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.TaskChatAgg.Entities.TaskChatMessage", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("DeletedDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("EditedDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("FileId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<bool>("IsEdited")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<bool>("IsPinned")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("MessageType")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<long?>("PinnedByUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime?>("PinnedDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("ReplyToMessageId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<long>("SenderUserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("TextContent")
|
|
.HasMaxLength(4000)
|
|
.HasColumnType("nvarchar(4000)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("CreationDate");
|
|
|
|
b.HasIndex("FileId");
|
|
|
|
b.HasIndex("IsDeleted");
|
|
|
|
b.HasIndex("ReplyToMessageId");
|
|
|
|
b.HasIndex("SenderUserId");
|
|
|
|
b.HasIndex("TaskId");
|
|
|
|
b.HasIndex("TaskId", "IsPinned");
|
|
|
|
b.ToTable("TaskChatMessages", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.UserAgg.Entities.User", b =>
|
|
{
|
|
b.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
b.Property<long?>("AccountId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(150)
|
|
.HasColumnType("nvarchar(150)");
|
|
|
|
b.Property<string>("FullName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Mobile")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(20)");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("nvarchar(1000)");
|
|
|
|
b.Property<string>("ProfilePhotoPath")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("UserName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("VerifyCode")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("nvarchar(10)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Users", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.UserAgg.Entities.UserRefreshToken", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("ExpiresAt")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("IpAddress")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("RevokedAt")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Token")
|
|
.IsRequired()
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("UserAgent")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("ExpiresAt");
|
|
|
|
b.HasIndex("Token")
|
|
.IsUnique();
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("UserRefreshTokens", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.BugSection", b =>
|
|
{
|
|
b.HasOne("GozareshgirProgramManager.Domain.ProjectAgg.Entities.ProjectTask", "ProjectTask")
|
|
.WithMany("BugSectionList")
|
|
.HasForeignKey("TaskId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.OwnsMany("GozareshgirProgramManager.Domain.ProjectAgg.Entities.BugDocument", "BugDocuments", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<Guid>("BugSectionId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<Guid>("FileId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("BugSectionId");
|
|
|
|
b1.ToTable("BugDocuments", (string)null);
|
|
|
|
b1.WithOwner("BugSection")
|
|
.HasForeignKey("BugSectionId");
|
|
|
|
b1.Navigation("BugSection");
|
|
});
|
|
|
|
b.Navigation("BugDocuments");
|
|
|
|
b.Navigation("ProjectTask");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.PhaseSection", b =>
|
|
{
|
|
b.HasOne("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Phase.ProjectPhase", "Phase")
|
|
.WithMany("PhaseSections")
|
|
.HasForeignKey("PhaseId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("GozareshgirProgramManager.Domain.SkillAgg.Entities.Skill", "Skill")
|
|
.WithMany()
|
|
.HasForeignKey("SkillId")
|
|
.OnDelete(DeleteBehavior.Restrict);
|
|
|
|
b.Navigation("Phase");
|
|
|
|
b.Navigation("Skill");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Phase.ProjectPhase", b =>
|
|
{
|
|
b.HasOne("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Project.Project", "Project")
|
|
.WithMany("Phases")
|
|
.HasForeignKey("ProjectId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Project");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Project.ProjectSection", b =>
|
|
{
|
|
b.HasOne("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Project.Project", "Project")
|
|
.WithMany("ProjectSections")
|
|
.HasForeignKey("ProjectId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("GozareshgirProgramManager.Domain.SkillAgg.Entities.Skill", "Skill")
|
|
.WithMany()
|
|
.HasForeignKey("SkillId")
|
|
.OnDelete(DeleteBehavior.Restrict);
|
|
|
|
b.Navigation("Project");
|
|
|
|
b.Navigation("Skill");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.ProjectTask", b =>
|
|
{
|
|
b.HasOne("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Phase.ProjectPhase", "Phase")
|
|
.WithMany("Tasks")
|
|
.HasForeignKey("PhaseId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Phase");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSection", b =>
|
|
{
|
|
b.HasOne("GozareshgirProgramManager.Domain.SkillAgg.Entities.Skill", "Skill")
|
|
.WithMany("Sections")
|
|
.HasForeignKey("SkillId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.ProjectTask", "Task")
|
|
.WithMany("Sections")
|
|
.HasForeignKey("TaskId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Skill");
|
|
|
|
b.Navigation("Task");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSectionActivity", b =>
|
|
{
|
|
b.HasOne("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSection", "Section")
|
|
.WithMany("Activities")
|
|
.HasForeignKey("SectionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("Section");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSectionAdditionalTime", b =>
|
|
{
|
|
b.HasOne("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSection", null)
|
|
.WithMany("AdditionalTimes")
|
|
.HasForeignKey("TaskSectionId");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSectionRevision", b =>
|
|
{
|
|
b.OwnsMany("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskRevisionFile", "Files", b1 =>
|
|
{
|
|
b1.Property<Guid>("Id")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<DateTime>("CreationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b1.Property<Guid>("FileId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.Property<Guid>("TaskSectionRevisionId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("FileId");
|
|
|
|
b1.HasIndex("TaskSectionRevisionId");
|
|
|
|
b1.ToTable("TaskRevisionFile");
|
|
|
|
b1.HasOne("GozareshgirProgramManager.Domain.FileManagementAgg.Entities.UploadedFile", null)
|
|
.WithMany()
|
|
.HasForeignKey("FileId")
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
.IsRequired();
|
|
|
|
b1.WithOwner()
|
|
.HasForeignKey("TaskSectionRevisionId");
|
|
});
|
|
|
|
b.Navigation("Files");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSectionTimeRequest", b =>
|
|
{
|
|
b.HasOne("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSection", "TaskSection")
|
|
.WithMany()
|
|
.HasForeignKey("TaskSectionId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("TaskSection");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.RoleAgg.Entities.Role", b =>
|
|
{
|
|
b.OwnsMany("GozareshgirProgramManager.Domain.PermissionAgg.Entities.Permission", "Permissions", b1 =>
|
|
{
|
|
b1.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b1.Property<long>("Id"));
|
|
|
|
b1.Property<int>("Code")
|
|
.HasColumnType("int");
|
|
|
|
b1.Property<long>("RoleId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("RoleId");
|
|
|
|
b1.ToTable("PmRolePermissions", (string)null);
|
|
|
|
b1.WithOwner("Role")
|
|
.HasForeignKey("RoleId");
|
|
|
|
b1.Navigation("Role");
|
|
});
|
|
|
|
b.Navigation("Permissions");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.SalaryPaymentSettingAgg.Entities.SalaryPaymentSetting", b =>
|
|
{
|
|
b.OwnsMany("GozareshgirProgramManager.Domain.SalaryPaymentSettingAgg.Entities.WorkingHours", "WorkingHoursList", b1 =>
|
|
{
|
|
b1.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b1.Property<long>("Id"));
|
|
|
|
b1.Property<TimeSpan>("EndShiftOne")
|
|
.HasColumnType("time(0)");
|
|
|
|
b1.Property<TimeSpan>("EndShiftTwo")
|
|
.HasColumnType("time(0)");
|
|
|
|
b1.Property<bool>("HasRestTime")
|
|
.HasColumnType("bit");
|
|
|
|
b1.Property<bool>("HasShiftOne")
|
|
.HasColumnType("bit");
|
|
|
|
b1.Property<bool>("HasShiftTow")
|
|
.HasColumnType("bit");
|
|
|
|
b1.Property<bool>("IsActiveDay")
|
|
.HasColumnType("bit");
|
|
|
|
b1.Property<int>("PersianDayOfWeek")
|
|
.HasColumnType("int");
|
|
|
|
b1.Property<TimeSpan>("RestTime")
|
|
.HasColumnType("time(0)");
|
|
|
|
b1.Property<long>("SalaryPaymentSettingId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<int>("ShiftDurationInMinutes")
|
|
.HasColumnType("int");
|
|
|
|
b1.Property<TimeSpan>("StartShiftOne")
|
|
.HasColumnType("time(0)");
|
|
|
|
b1.Property<TimeSpan>("StartShiftTwo")
|
|
.HasColumnType("time(0)");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("SalaryPaymentSettingId");
|
|
|
|
b1.ToTable("WorkingHours", (string)null);
|
|
|
|
b1.WithOwner("SalaryPaymentSetting")
|
|
.HasForeignKey("SalaryPaymentSettingId");
|
|
|
|
b1.Navigation("SalaryPaymentSetting");
|
|
});
|
|
|
|
b.Navigation("WorkingHoursList");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.TaskChatAgg.Entities.TaskChatMessage", b =>
|
|
{
|
|
b.HasOne("GozareshgirProgramManager.Domain.TaskChatAgg.Entities.TaskChatMessage", "ReplyToMessage")
|
|
.WithMany()
|
|
.HasForeignKey("ReplyToMessageId")
|
|
.OnDelete(DeleteBehavior.NoAction);
|
|
|
|
b.Navigation("ReplyToMessage");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.UserAgg.Entities.User", b =>
|
|
{
|
|
b.OwnsMany("GozareshgirProgramManager.Domain.RoleUserAgg.RoleUser", "RoleUser", b1 =>
|
|
{
|
|
b1.Property<long>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b1.Property<long>("Id"));
|
|
|
|
b1.Property<long>("RoleId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.Property<long>("UserId")
|
|
.HasColumnType("bigint");
|
|
|
|
b1.HasKey("Id");
|
|
|
|
b1.HasIndex("UserId");
|
|
|
|
b1.ToTable("RoleUsers", (string)null);
|
|
|
|
b1.WithOwner("User")
|
|
.HasForeignKey("UserId");
|
|
|
|
b1.Navigation("User");
|
|
});
|
|
|
|
b.Navigation("RoleUser");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.UserAgg.Entities.UserRefreshToken", b =>
|
|
{
|
|
b.HasOne("GozareshgirProgramManager.Domain.UserAgg.Entities.User", "User")
|
|
.WithMany("RefreshTokens")
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.Navigation("User");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Phase.ProjectPhase", b =>
|
|
{
|
|
b.Navigation("PhaseSections");
|
|
|
|
b.Navigation("Tasks");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Project.Project", b =>
|
|
{
|
|
b.Navigation("Phases");
|
|
|
|
b.Navigation("ProjectSections");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.ProjectTask", b =>
|
|
{
|
|
b.Navigation("BugSectionList");
|
|
|
|
b.Navigation("Sections");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.ProjectAgg.Entities.Task.TaskSection.TaskSection", b =>
|
|
{
|
|
b.Navigation("Activities");
|
|
|
|
b.Navigation("AdditionalTimes");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.SkillAgg.Entities.Skill", b =>
|
|
{
|
|
b.Navigation("Sections");
|
|
});
|
|
|
|
modelBuilder.Entity("GozareshgirProgramManager.Domain.UserAgg.Entities.User", b =>
|
|
{
|
|
b.Navigation("RefreshTokens");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|