a project model dbset, and it migration

This commit is contained in:
2018-06-21 14:01:40 +02:00
parent e401f82f0f
commit 1ea0e2daa6
5 changed files with 2877 additions and 4 deletions

View File

@ -1337,6 +1337,73 @@ namespace Yavsc.Migrations
b.HasKey("Id");
});
modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("ActivityCode")
.IsRequired();
b.Property<string>("ClientId")
.IsRequired();
b.Property<bool>("Consent");
b.Property<DateTime>("DateCreated");
b.Property<DateTime>("DateModified");
b.Property<string>("Description");
b.Property<string>("LocalRepo");
b.Property<string>("Name")
.IsRequired();
b.Property<string>("OwnerId");
b.Property<string>("PaymentId");
b.Property<string>("PerformerId")
.IsRequired();
b.Property<decimal?>("Previsional");
b.Property<string>("ProjectName")
.IsRequired();
b.Property<bool>("Rejected");
b.Property<DateTime>("RejectedAt");
b.Property<int>("Status");
b.Property<string>("UserCreated");
b.Property<string>("UserModified");
b.Property<DateTime?>("ValidationDate");
b.Property<string>("Version");
b.HasKey("Id");
});
modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd();
b.Property<string>("Name")
.IsRequired();
b.Property<string>("ProjectName")
.IsRequired();
b.HasKey("Id");
});
modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b =>
{
b.Property<string>("Path");
@ -1809,6 +1876,37 @@ namespace Yavsc.Migrations
.HasForeignKey("ManagerId");
});
modelBuilder.Entity("Yavsc.Server.Models.IT.Project", b =>
{
b.HasOne("Yavsc.Models.Workflow.Activity")
.WithMany()
.HasForeignKey("ActivityCode");
b.HasOne("Yavsc.Models.ApplicationUser")
.WithMany()
.HasForeignKey("ClientId");
b.HasOne("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference")
.WithMany()
.HasForeignKey("Name");
b.HasOne("Yavsc.Models.Payment.PayPalPayment")
.WithMany()
.HasForeignKey("PaymentId");
b.HasOne("Yavsc.Models.Workflow.PerformerProfile")
.WithMany()
.HasForeignKey("PerformerId");
});
modelBuilder.Entity("Yavsc.Server.Models.IT.ProjectBuildConfiguration", b =>
{
b.HasOne("Yavsc.Server.Models.IT.Project")
.WithMany()
.HasForeignKey("ProjectName")
.HasPrincipalKey("ProjectName");
});
modelBuilder.Entity("Yavsc.Server.Models.IT.SourceCode.GitRepositoryReference", b =>
{
b.HasOne("Yavsc.Models.ApplicationUser")