|
@@ -812,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)");
|
|
|
|
|
|
@@ -853,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");
|
|
@@ -3768,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)");
|
|
|
|
|
|
@@ -3809,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");
|
|
@@ -5358,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");
|
|
});
|
|
});
|
|
|
|
|
|
@@ -5425,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");
|
|
});
|
|
});
|
|
|
|
|