Acho q acabou

This commit is contained in:
GuiNerd
2019-11-30 15:10:33 -03:00
parent cc389221db
commit b98436187f
39 changed files with 924 additions and 1395 deletions

View File

@ -22,14 +22,14 @@ namespace GerenciaProjetos.Migrations
b.Property<int>("Id")
.ValueGeneratedOnAdd();
b.Property<int>("CriadorId");
b.Property<DateTime>("DataCadastro");
b.Property<string>("Descricao")
.IsRequired()
.HasMaxLength(100);
b.Property<int>("DesenvolvedorId");
b.Property<bool>("FoiResolvido");
b.Property<string>("Prioridade")
@ -37,12 +37,16 @@ namespace GerenciaProjetos.Migrations
b.Property<int>("RequisitoId");
b.Property<int>("SolucionadorId");
b.HasKey("Id");
b.HasIndex("DesenvolvedorId");
b.HasIndex("CriadorId");
b.HasIndex("RequisitoId");
b.HasIndex("SolucionadorId");
b.ToTable("Bugs");
});
@ -147,15 +151,20 @@ namespace GerenciaProjetos.Migrations
modelBuilder.Entity("GerenciaProjetos.Models.Bug", b =>
{
b.HasOne("GerenciaProjetos.Models.Desenvolvedor", "Desenvolvedor")
b.HasOne("GerenciaProjetos.Models.Desenvolvedor", "Criador")
.WithMany()
.HasForeignKey("DesenvolvedorId")
.HasForeignKey("CriadorId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("GerenciaProjetos.Models.Requisito", "Requisito")
.WithMany()
.WithMany("Bugs")
.HasForeignKey("RequisitoId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("GerenciaProjetos.Models.Desenvolvedor", "Solucionador")
.WithMany()
.HasForeignKey("SolucionadorId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("GerenciaProjetos.Models.DesenvolvedorProjeto", b =>