|
@@ -1666,6 +1666,10 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
.HasColumnType("nvarchar(450)")
|
|
.HasColumnType("nvarchar(450)")
|
|
.HasColumnOrder(8);
|
|
.HasColumnOrder(8);
|
|
|
|
|
|
|
|
+ b.Property<string>("Desc")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
|
+
|
|
b.Property<bool>("IsDeleted")
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("bit")
|
|
.HasColumnType("bit")
|
|
.HasColumnOrder(7);
|
|
.HasColumnOrder(7);
|
|
@@ -1696,6 +1700,50 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.ToTable("Projects");
|
|
b.ToTable("Projects");
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ modelBuilder.Entity("MTWorkHR.Core.Entities.ProjectTeam", b =>
|
|
|
|
+ {
|
|
|
|
+ b.Property<long>("Id")
|
|
|
|
+ .ValueGeneratedOnAdd()
|
|
|
|
+ .HasColumnType("bigint")
|
|
|
|
+ .HasColumnOrder(0);
|
|
|
|
+
|
|
|
|
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
|
|
|
|
+
|
|
|
|
+ b.Property<DateTime>("CreateDate")
|
|
|
|
+ .HasColumnType("datetime2")
|
|
|
|
+ .HasColumnOrder(3);
|
|
|
|
+
|
|
|
|
+ b.Property<string>("CreateUser")
|
|
|
|
+ .HasMaxLength(450)
|
|
|
|
+ .HasColumnType("nvarchar(450)")
|
|
|
|
+ .HasColumnOrder(1);
|
|
|
|
+
|
|
|
|
+ b.Property<long>("ProjectId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
|
|
+ b.Property<long>("TeamId")
|
|
|
|
+ .HasColumnType("bigint");
|
|
|
|
+
|
|
|
|
+ b.Property<string>("TeamName")
|
|
|
|
+ .IsRequired()
|
|
|
|
+ .HasColumnType("nvarchar(max)");
|
|
|
|
+
|
|
|
|
+ b.Property<DateTime?>("UpdateDate")
|
|
|
|
+ .HasColumnType("datetime2")
|
|
|
|
+ .HasColumnOrder(4);
|
|
|
|
+
|
|
|
|
+ b.Property<string>("UpdateUser")
|
|
|
|
+ .HasMaxLength(450)
|
|
|
|
+ .HasColumnType("nvarchar(450)")
|
|
|
|
+ .HasColumnOrder(2);
|
|
|
|
+
|
|
|
|
+ b.HasKey("Id");
|
|
|
|
+
|
|
|
|
+ b.HasIndex("ProjectId");
|
|
|
|
+
|
|
|
|
+ b.ToTable("ProjectTeam");
|
|
|
|
+ });
|
|
|
|
+
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.Qualification", b =>
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.Qualification", b =>
|
|
{
|
|
{
|
|
b.Property<long>("Id")
|
|
b.Property<long>("Id")
|
|
@@ -3092,6 +3140,17 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.Navigation("OrderType");
|
|
b.Navigation("OrderType");
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ modelBuilder.Entity("MTWorkHR.Core.Entities.ProjectTeam", b =>
|
|
|
|
+ {
|
|
|
|
+ b.HasOne("MTWorkHR.Core.Entities.Project", "Project")
|
|
|
|
+ .WithMany("ProjectTeams")
|
|
|
|
+ .HasForeignKey("ProjectId")
|
|
|
|
+ .OnDelete(DeleteBehavior.Cascade)
|
|
|
|
+ .IsRequired();
|
|
|
|
+
|
|
|
|
+ b.Navigation("Project");
|
|
|
|
+ });
|
|
|
|
+
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.TeamUser", b =>
|
|
{
|
|
{
|
|
b.HasOne("MTWorkHR.Core.Entities.Team", "Team")
|
|
b.HasOne("MTWorkHR.Core.Entities.Team", "Team")
|
|
@@ -3327,6 +3386,11 @@ namespace MTWorkHR.Infrastructure.Migrations
|
|
b.Navigation("MeetingUsers");
|
|
b.Navigation("MeetingUsers");
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ modelBuilder.Entity("MTWorkHR.Core.Entities.Project", b =>
|
|
|
|
+ {
|
|
|
|
+ b.Navigation("ProjectTeams");
|
|
|
|
+ });
|
|
|
|
+
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
|
|
modelBuilder.Entity("MTWorkHR.Core.Entities.Team", b =>
|
|
{
|
|
{
|
|
b.Navigation("TeamUsers");
|
|
b.Navigation("TeamUsers");
|