mirror of
https://github.com/guilhermewerner/gerencia-projetos
synced 2025-06-16 23:15:05 +00:00
Acho q acabou
This commit is contained in:
@ -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 =>
|
||||
|
Reference in New Issue
Block a user