|
@@ -507,6 +507,9 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
.HasColumnType("bit")
|
|
.HasColumnType("bit")
|
|
.HasColumnOrder(7);
|
|
.HasColumnOrder(7);
|
|
|
|
|
|
|
|
+ b.Property<bool>("IsSuspended")
|
|
|
|
+ .HasColumnType("bit");
|
|
|
|
+
|
|
b.Property<string>("PhoneNumber")
|
|
b.Property<string>("PhoneNumber")
|
|
.IsRequired()
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
.HasColumnType("nvarchar(max)");
|
|
@@ -809,10 +812,6 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.Property<long?>("AttachmentTypeId")
|
|
b.Property<long?>("AttachmentTypeId")
|
|
.HasColumnType("bigint");
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
- b.Property<byte[]>("Content")
|
|
|
|
- .IsRequired()
|
|
|
|
- .HasColumnType("varbinary(max)");
|
|
|
|
-
|
|
|
|
b.Property<string>("ContentType")
|
|
b.Property<string>("ContentType")
|
|
.HasColumnType("nvarchar(max)");
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
@@ -850,8 +849,6 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
b.HasKey("Id");
|
|
b.HasKey("Id");
|
|
|
|
|
|
- b.HasIndex("AttachmentTypeId");
|
|
|
|
-
|
|
|
|
b.HasIndex("ContractTaskId");
|
|
b.HasIndex("ContractTaskId");
|
|
|
|
|
|
b.ToTable("ContractTaskAttachment");
|
|
b.ToTable("ContractTaskAttachment");
|
|
@@ -3765,10 +3762,6 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.Property<long?>("AttachmentTypeId")
|
|
b.Property<long?>("AttachmentTypeId")
|
|
.HasColumnType("bigint");
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
- b.Property<byte[]>("Content")
|
|
|
|
- .IsRequired()
|
|
|
|
- .HasColumnType("varbinary(max)");
|
|
|
|
-
|
|
|
|
b.Property<string>("ContentType")
|
|
b.Property<string>("ContentType")
|
|
.HasColumnType("nvarchar(max)");
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
@@ -3806,8 +3799,6 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
b.HasKey("Id");
|
|
b.HasKey("Id");
|
|
|
|
|
|
- b.HasIndex("AttachmentTypeId");
|
|
|
|
-
|
|
|
|
b.HasIndex("ProjectStageId");
|
|
b.HasIndex("ProjectStageId");
|
|
|
|
|
|
b.ToTable("ProjectStageAttachment");
|
|
b.ToTable("ProjectStageAttachment");
|
|
@@ -5355,18 +5346,12 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.ContractTaskAttachment", b =>
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.ContractTaskAttachment", b =>
|
|
{
|
|
{
|
|
- b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
|
|
|
|
- .WithMany()
|
|
|
|
- .HasForeignKey("AttachmentTypeId");
|
|
|
|
-
|
|
|
|
b.HasOne("MTWorkHR.Core.Entities.ContractTask", "ContractTask")
|
|
b.HasOne("MTWorkHR.Core.Entities.ContractTask", "ContractTask")
|
|
.WithMany("TaskAttachments")
|
|
.WithMany("TaskAttachments")
|
|
.HasForeignKey("ContractTaskId")
|
|
.HasForeignKey("ContractTaskId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
.IsRequired();
|
|
|
|
|
|
- b.Navigation("AttachmentType");
|
|
|
|
-
|
|
|
|
b.Navigation("ContractTask");
|
|
b.Navigation("ContractTask");
|
|
});
|
|
});
|
|
|
|
|
|
@@ -5422,18 +5407,12 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
|
|
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.ProjectStageAttachment", b =>
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.ProjectStageAttachment", b =>
|
|
{
|
|
{
|
|
- b.HasOne("MTWorkHR.Core.Entities.Base.AttachmentType", "AttachmentType")
|
|
|
|
- .WithMany()
|
|
|
|
- .HasForeignKey("AttachmentTypeId");
|
|
|
|
-
|
|
|
|
b.HasOne("MTWorkHR.Core.Entities.ProjectStage", "ProjectStage")
|
|
b.HasOne("MTWorkHR.Core.Entities.ProjectStage", "ProjectStage")
|
|
.WithMany("StageAttachments")
|
|
.WithMany("StageAttachments")
|
|
.HasForeignKey("ProjectStageId")
|
|
.HasForeignKey("ProjectStageId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
.IsRequired();
|
|
|
|
|
|
- b.Navigation("AttachmentType");
|
|
|
|
-
|
|
|
|
b.Navigation("ProjectStage");
|
|
b.Navigation("ProjectStage");
|
|
});
|
|
});
|
|
|
|
|