mirror of
https://github.com/guilhermewerner/gerencia-projetos
synced 2025-06-16 23:15:05 +00:00
Initial commit
This commit is contained in:
208
GerenciaProjetos/Migrations/20190921193724_1.Designer.cs
generated
Normal file
208
GerenciaProjetos/Migrations/20190921193724_1.Designer.cs
generated
Normal file
@ -0,0 +1,208 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using GerenciaProjetos.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using AppContext = GerenciaProjetos.Data.AppContext;
|
||||
|
||||
namespace GerenciaProjetos.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppContext))]
|
||||
[Migration("20190921193724_1")]
|
||||
partial class _1
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Bug", b =>
|
||||
{
|
||||
b.Property<int>("DesenvolvedorId");
|
||||
|
||||
b.Property<int>("RequisitoId");
|
||||
|
||||
b.Property<int>("CriadorId");
|
||||
|
||||
b.Property<DateTime>("DataCadastro");
|
||||
|
||||
b.Property<int?>("DesenvolvedorId1");
|
||||
|
||||
b.Property<bool>("FoiResolvido");
|
||||
|
||||
b.Property<string>("Prioridade");
|
||||
|
||||
b.HasKey("DesenvolvedorId", "RequisitoId");
|
||||
|
||||
b.HasIndex("CriadorId");
|
||||
|
||||
b.HasIndex("DesenvolvedorId1");
|
||||
|
||||
b.HasIndex("RequisitoId");
|
||||
|
||||
b.ToTable("Bugs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Desenvolvedor", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<bool>("EAdmin");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
b.Property<string>("Nome")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
b.Property<string>("Senha")
|
||||
.IsRequired()
|
||||
.HasMaxLength(45);
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Desenvolvedores");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.DesenvolvedorProjeto", b =>
|
||||
{
|
||||
b.Property<int>("DesenvolvedorId");
|
||||
|
||||
b.Property<int>("ProjetoId");
|
||||
|
||||
b.Property<int?>("DesenvolvedorId1");
|
||||
|
||||
b.HasKey("DesenvolvedorId", "ProjetoId");
|
||||
|
||||
b.HasIndex("DesenvolvedorId1");
|
||||
|
||||
b.HasIndex("ProjetoId");
|
||||
|
||||
b.ToTable("DesenvolvedorProjeto");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.DesenvolvedorRequisito", b =>
|
||||
{
|
||||
b.Property<int>("DesenvolvedorId");
|
||||
|
||||
b.Property<int>("RequisitoId");
|
||||
|
||||
b.Property<int?>("DesenvolvedorId1");
|
||||
|
||||
b.Property<TimeSpan>("TempoGasto");
|
||||
|
||||
b.HasKey("DesenvolvedorId", "RequisitoId");
|
||||
|
||||
b.HasIndex("DesenvolvedorId1");
|
||||
|
||||
b.HasIndex("RequisitoId");
|
||||
|
||||
b.ToTable("DesenvolvedorRequisito");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Projeto", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("DataEntrega");
|
||||
|
||||
b.Property<string>("Nome")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
b.Property<string>("Solicitante")
|
||||
.IsRequired()
|
||||
.HasMaxLength(45);
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Projetos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Requisito", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("DataCadastro");
|
||||
|
||||
b.Property<DateTime>("DataEntrega");
|
||||
|
||||
b.Property<string>("Descricao")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
b.Property<bool>("EFuncional");
|
||||
|
||||
b.Property<string>("Observacoes")
|
||||
.HasMaxLength(100);
|
||||
|
||||
b.Property<int>("ProjetoId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ProjetoId");
|
||||
|
||||
b.ToTable("Requisitos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Bug", b =>
|
||||
{
|
||||
b.HasOne("GerenciaProjetos.Models.Desenvolvedor", "Criador")
|
||||
.WithMany()
|
||||
.HasForeignKey("CriadorId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
|
||||
b.HasOne("GerenciaProjetos.Models.Desenvolvedor", "Desenvolvedor")
|
||||
.WithMany()
|
||||
.HasForeignKey("DesenvolvedorId1");
|
||||
|
||||
b.HasOne("GerenciaProjetos.Models.Requisito", "Requisito")
|
||||
.WithMany()
|
||||
.HasForeignKey("RequisitoId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.DesenvolvedorProjeto", b =>
|
||||
{
|
||||
b.HasOne("GerenciaProjetos.Models.Desenvolvedor", "Desenvolvedor")
|
||||
.WithMany()
|
||||
.HasForeignKey("DesenvolvedorId1");
|
||||
|
||||
b.HasOne("GerenciaProjetos.Models.Projeto", "Projeto")
|
||||
.WithMany()
|
||||
.HasForeignKey("ProjetoId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.DesenvolvedorRequisito", b =>
|
||||
{
|
||||
b.HasOne("GerenciaProjetos.Models.Desenvolvedor", "Desenvolvedor")
|
||||
.WithMany()
|
||||
.HasForeignKey("DesenvolvedorId1");
|
||||
|
||||
b.HasOne("GerenciaProjetos.Models.Requisito", "Requisito")
|
||||
.WithMany()
|
||||
.HasForeignKey("RequisitoId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Requisito", b =>
|
||||
{
|
||||
b.HasOne("GerenciaProjetos.Models.Projeto", "Projeto")
|
||||
.WithMany("Requisitos")
|
||||
.HasForeignKey("ProjetoId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
214
GerenciaProjetos/Migrations/20190921193724_1.cs
Normal file
214
GerenciaProjetos/Migrations/20190921193724_1.cs
Normal file
@ -0,0 +1,214 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace GerenciaProjetos.Migrations
|
||||
{
|
||||
public partial class _1 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Desenvolvedores",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
Nome = table.Column<string>(maxLength: 100, nullable: false),
|
||||
Email = table.Column<string>(maxLength: 100, nullable: false),
|
||||
Senha = table.Column<string>(maxLength: 45, nullable: false),
|
||||
EAdmin = table.Column<bool>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Desenvolvedores", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Projetos",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
Nome = table.Column<string>(maxLength: 100, nullable: false),
|
||||
DataEntrega = table.Column<DateTime>(nullable: false),
|
||||
Solicitante = table.Column<string>(maxLength: 45, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Projetos", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "DesenvolvedorProjeto",
|
||||
columns: table => new
|
||||
{
|
||||
DesenvolvedorId = table.Column<int>(nullable: false),
|
||||
ProjetoId = table.Column<int>(nullable: false),
|
||||
DesenvolvedorId1 = table.Column<int>(nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_DesenvolvedorProjeto", x => new { x.DesenvolvedorId, x.ProjetoId });
|
||||
table.ForeignKey(
|
||||
name: "FK_DesenvolvedorProjeto_Desenvolvedores_DesenvolvedorId1",
|
||||
column: x => x.DesenvolvedorId1,
|
||||
principalTable: "Desenvolvedores",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_DesenvolvedorProjeto_Projetos_ProjetoId",
|
||||
column: x => x.ProjetoId,
|
||||
principalTable: "Projetos",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Requisitos",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
Descricao = table.Column<string>(maxLength: 100, nullable: false),
|
||||
Observacoes = table.Column<string>(maxLength: 100, nullable: true),
|
||||
DataCadastro = table.Column<DateTime>(nullable: false),
|
||||
DataEntrega = table.Column<DateTime>(nullable: false),
|
||||
EFuncional = table.Column<bool>(nullable: false),
|
||||
ProjetoId = table.Column<int>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Requisitos", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Requisitos_Projetos_ProjetoId",
|
||||
column: x => x.ProjetoId,
|
||||
principalTable: "Projetos",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Bugs",
|
||||
columns: table => new
|
||||
{
|
||||
DesenvolvedorId = table.Column<int>(nullable: false),
|
||||
RequisitoId = table.Column<int>(nullable: false),
|
||||
DesenvolvedorId1 = table.Column<int>(nullable: true),
|
||||
Prioridade = table.Column<string>(nullable: true),
|
||||
DataCadastro = table.Column<DateTime>(nullable: false),
|
||||
CriadorId = table.Column<int>(nullable: false),
|
||||
FoiResolvido = table.Column<bool>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Bugs", x => new { x.DesenvolvedorId, x.RequisitoId });
|
||||
table.ForeignKey(
|
||||
name: "FK_Bugs_Desenvolvedores_CriadorId",
|
||||
column: x => x.CriadorId,
|
||||
principalTable: "Desenvolvedores",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Bugs_Desenvolvedores_DesenvolvedorId1",
|
||||
column: x => x.DesenvolvedorId1,
|
||||
principalTable: "Desenvolvedores",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_Bugs_Requisitos_RequisitoId",
|
||||
column: x => x.RequisitoId,
|
||||
principalTable: "Requisitos",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "DesenvolvedorRequisito",
|
||||
columns: table => new
|
||||
{
|
||||
DesenvolvedorId = table.Column<int>(nullable: false),
|
||||
RequisitoId = table.Column<int>(nullable: false),
|
||||
DesenvolvedorId1 = table.Column<int>(nullable: true),
|
||||
TempoGasto = table.Column<TimeSpan>(nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_DesenvolvedorRequisito", x => new { x.DesenvolvedorId, x.RequisitoId });
|
||||
table.ForeignKey(
|
||||
name: "FK_DesenvolvedorRequisito_Desenvolvedores_DesenvolvedorId1",
|
||||
column: x => x.DesenvolvedorId1,
|
||||
principalTable: "Desenvolvedores",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_DesenvolvedorRequisito_Requisitos_RequisitoId",
|
||||
column: x => x.RequisitoId,
|
||||
principalTable: "Requisitos",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Bugs_CriadorId",
|
||||
table: "Bugs",
|
||||
column: "CriadorId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Bugs_DesenvolvedorId1",
|
||||
table: "Bugs",
|
||||
column: "DesenvolvedorId1");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Bugs_RequisitoId",
|
||||
table: "Bugs",
|
||||
column: "RequisitoId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_DesenvolvedorProjeto_DesenvolvedorId1",
|
||||
table: "DesenvolvedorProjeto",
|
||||
column: "DesenvolvedorId1");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_DesenvolvedorProjeto_ProjetoId",
|
||||
table: "DesenvolvedorProjeto",
|
||||
column: "ProjetoId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_DesenvolvedorRequisito_DesenvolvedorId1",
|
||||
table: "DesenvolvedorRequisito",
|
||||
column: "DesenvolvedorId1");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_DesenvolvedorRequisito_RequisitoId",
|
||||
table: "DesenvolvedorRequisito",
|
||||
column: "RequisitoId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Requisitos_ProjetoId",
|
||||
table: "Requisitos",
|
||||
column: "ProjetoId");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Bugs");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "DesenvolvedorProjeto");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "DesenvolvedorRequisito");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Desenvolvedores");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Requisitos");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Projetos");
|
||||
}
|
||||
}
|
||||
}
|
206
GerenciaProjetos/Migrations/AppContextModelSnapshot.cs
Normal file
206
GerenciaProjetos/Migrations/AppContextModelSnapshot.cs
Normal file
@ -0,0 +1,206 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using GerenciaProjetos.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using AppContext = GerenciaProjetos.Data.AppContext;
|
||||
|
||||
namespace GerenciaProjetos.Migrations
|
||||
{
|
||||
[DbContext(typeof(AppContext))]
|
||||
partial class AppContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Bug", b =>
|
||||
{
|
||||
b.Property<int>("DesenvolvedorId");
|
||||
|
||||
b.Property<int>("RequisitoId");
|
||||
|
||||
b.Property<int>("CriadorId");
|
||||
|
||||
b.Property<DateTime>("DataCadastro");
|
||||
|
||||
b.Property<int?>("DesenvolvedorId1");
|
||||
|
||||
b.Property<bool>("FoiResolvido");
|
||||
|
||||
b.Property<string>("Prioridade");
|
||||
|
||||
b.HasKey("DesenvolvedorId", "RequisitoId");
|
||||
|
||||
b.HasIndex("CriadorId");
|
||||
|
||||
b.HasIndex("DesenvolvedorId1");
|
||||
|
||||
b.HasIndex("RequisitoId");
|
||||
|
||||
b.ToTable("Bugs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Desenvolvedor", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<bool>("EAdmin");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
b.Property<string>("Nome")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
b.Property<string>("Senha")
|
||||
.IsRequired()
|
||||
.HasMaxLength(45);
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Desenvolvedores");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.DesenvolvedorProjeto", b =>
|
||||
{
|
||||
b.Property<int>("DesenvolvedorId");
|
||||
|
||||
b.Property<int>("ProjetoId");
|
||||
|
||||
b.Property<int?>("DesenvolvedorId1");
|
||||
|
||||
b.HasKey("DesenvolvedorId", "ProjetoId");
|
||||
|
||||
b.HasIndex("DesenvolvedorId1");
|
||||
|
||||
b.HasIndex("ProjetoId");
|
||||
|
||||
b.ToTable("DesenvolvedorProjeto");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.DesenvolvedorRequisito", b =>
|
||||
{
|
||||
b.Property<int>("DesenvolvedorId");
|
||||
|
||||
b.Property<int>("RequisitoId");
|
||||
|
||||
b.Property<int?>("DesenvolvedorId1");
|
||||
|
||||
b.Property<TimeSpan>("TempoGasto");
|
||||
|
||||
b.HasKey("DesenvolvedorId", "RequisitoId");
|
||||
|
||||
b.HasIndex("DesenvolvedorId1");
|
||||
|
||||
b.HasIndex("RequisitoId");
|
||||
|
||||
b.ToTable("DesenvolvedorRequisito");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Projeto", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("DataEntrega");
|
||||
|
||||
b.Property<string>("Nome")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
b.Property<string>("Solicitante")
|
||||
.IsRequired()
|
||||
.HasMaxLength(45);
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Projetos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Requisito", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("DataCadastro");
|
||||
|
||||
b.Property<DateTime>("DataEntrega");
|
||||
|
||||
b.Property<string>("Descricao")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100);
|
||||
|
||||
b.Property<bool>("EFuncional");
|
||||
|
||||
b.Property<string>("Observacoes")
|
||||
.HasMaxLength(100);
|
||||
|
||||
b.Property<int>("ProjetoId");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ProjetoId");
|
||||
|
||||
b.ToTable("Requisitos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Bug", b =>
|
||||
{
|
||||
b.HasOne("GerenciaProjetos.Models.Desenvolvedor", "Criador")
|
||||
.WithMany()
|
||||
.HasForeignKey("CriadorId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
|
||||
b.HasOne("GerenciaProjetos.Models.Desenvolvedor", "Desenvolvedor")
|
||||
.WithMany()
|
||||
.HasForeignKey("DesenvolvedorId1");
|
||||
|
||||
b.HasOne("GerenciaProjetos.Models.Requisito", "Requisito")
|
||||
.WithMany()
|
||||
.HasForeignKey("RequisitoId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.DesenvolvedorProjeto", b =>
|
||||
{
|
||||
b.HasOne("GerenciaProjetos.Models.Desenvolvedor", "Desenvolvedor")
|
||||
.WithMany()
|
||||
.HasForeignKey("DesenvolvedorId1");
|
||||
|
||||
b.HasOne("GerenciaProjetos.Models.Projeto", "Projeto")
|
||||
.WithMany()
|
||||
.HasForeignKey("ProjetoId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.DesenvolvedorRequisito", b =>
|
||||
{
|
||||
b.HasOne("GerenciaProjetos.Models.Desenvolvedor", "Desenvolvedor")
|
||||
.WithMany()
|
||||
.HasForeignKey("DesenvolvedorId1");
|
||||
|
||||
b.HasOne("GerenciaProjetos.Models.Requisito", "Requisito")
|
||||
.WithMany()
|
||||
.HasForeignKey("RequisitoId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerenciaProjetos.Models.Requisito", b =>
|
||||
{
|
||||
b.HasOne("GerenciaProjetos.Models.Projeto", "Projeto")
|
||||
.WithMany("Requisitos")
|
||||
.HasForeignKey("ProjetoId")
|
||||
.OnDelete(DeleteBehavior.Cascade);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user