Anul 3 Semestrul 1
This commit is contained in:
+413
@@ -0,0 +1,413 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using WebApi.Context;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace WebApi.Migrations
|
||||
{
|
||||
[DbContext(typeof(JyrosContext))]
|
||||
[Migration("20241221184059_db-creation")]
|
||||
partial class dbcreation
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.10")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("UsersStory", b =>
|
||||
{
|
||||
b.Property<int>("StoryId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("StoryId", "UserId")
|
||||
.HasName("PK__UsersSto__8DA87F2683494916");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("UsersStories", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersTeam", b =>
|
||||
{
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.Property<int>("TeamId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
b.HasKey("UserId", "TeamId")
|
||||
.HasName("PK__UsersTea__663CE9D4131E7ED3");
|
||||
|
||||
b.HasIndex("TeamId");
|
||||
|
||||
b.ToTable("UsersTeams", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Adjustment", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AdjustmentPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("adjustment_points");
|
||||
|
||||
b.Property<int>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__Adjustme__3214EC07B3BFDA02");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("Adjustments");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.Property<int>("SprintId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("SprintId"));
|
||||
|
||||
b.Property<DateOnly>("EndDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("end_date");
|
||||
|
||||
b.Property<string>("Goal")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("goal");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("name");
|
||||
|
||||
b.Property<DateOnly>("StartDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("start_date");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasDefaultValue("planned")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<int?>("TeamId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
b.HasKey("SprintId")
|
||||
.HasName("PK__Sprints__396C1802EFA36E05");
|
||||
|
||||
b.HasIndex("TeamId");
|
||||
|
||||
b.ToTable("Sprints");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.Property<int>("StoryId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("StoryId"));
|
||||
|
||||
b.Property<int?>("CreatedBy")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("created_by");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<int?>("ParentId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("parent_id");
|
||||
|
||||
b.Property<int?>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(15)
|
||||
.HasColumnType("nvarchar(15)")
|
||||
.HasDefaultValue("open")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<int?>("StoryPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_points");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("title");
|
||||
|
||||
b.HasKey("StoryId")
|
||||
.HasName("PK__Stories__66339C56B86254B8");
|
||||
|
||||
b.HasIndex("CreatedBy");
|
||||
|
||||
b.HasIndex("ParentId");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("Stories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.Property<int>("TeamId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TeamId"));
|
||||
|
||||
b.Property<string>("TeamDescription")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)")
|
||||
.HasColumnName("team_description");
|
||||
|
||||
b.Property<int?>("TeamLeadId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_lead_id");
|
||||
|
||||
b.Property<string>("TeamName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("team_name");
|
||||
|
||||
b.HasKey("TeamId")
|
||||
.HasName("PK__Teams__F82DEDBCAAB0C3AF");
|
||||
|
||||
b.HasIndex("TeamLeadId");
|
||||
|
||||
b.HasIndex(new[] { "TeamName" }, "UQ__Teams__29E35E0C9F1894C7")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Teams");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.TeamMemberAvailability", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AvailabilityPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("availability_points");
|
||||
|
||||
b.Property<int>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__TeamMemb__3214EC07A9A5EE06");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("TeamMemberAvailabilities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.User", b =>
|
||||
{
|
||||
b.Property<int>("UserId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("UserId"));
|
||||
|
||||
b.Property<string>("Username")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("username");
|
||||
|
||||
b.HasKey("UserId")
|
||||
.HasName("PK__Users__B9BE370FA0824176");
|
||||
|
||||
b.HasIndex(new[] { "Username" }, "UQ__Users__F3DBC572843AEA6F")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Users");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersStory", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Story", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("StoryId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersStor__story__73BA3083");
|
||||
|
||||
b.HasOne("WebApi.Models.User", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersStor__user___74AE54BC");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersTeam", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Team", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("TeamId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersTeam__team___6477ECF3");
|
||||
|
||||
b.HasOne("WebApi.Models.User", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersTeam__user___6383C8BA");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Adjustment", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("Adjustments")
|
||||
.HasForeignKey("SprintId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__Adjustmen__sprin__6EC0713C");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Team", "Team")
|
||||
.WithMany("Sprints")
|
||||
.HasForeignKey("TeamId")
|
||||
.HasConstraintName("FK__Sprints__team_id__693CA210");
|
||||
|
||||
b.Navigation("Team");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.User", "CreatedByNavigation")
|
||||
.WithMany("Stories")
|
||||
.HasForeignKey("CreatedBy")
|
||||
.HasConstraintName("FK__Stories__created__6FE99F9F");
|
||||
|
||||
b.HasOne("WebApi.Models.Story", "Parent")
|
||||
.WithMany("InverseParent")
|
||||
.HasForeignKey("ParentId")
|
||||
.HasConstraintName("FK__Stories__parent___70DDC3D8");
|
||||
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("Stories")
|
||||
.HasForeignKey("SprintId")
|
||||
.HasConstraintName("FK__Stories__sprint___6EF57B66");
|
||||
|
||||
b.Navigation("CreatedByNavigation");
|
||||
|
||||
b.Navigation("Parent");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.User", "TeamLead")
|
||||
.WithMany("Teams")
|
||||
.HasForeignKey("TeamLeadId")
|
||||
.HasConstraintName("FK__Teams__team_lead__60A75C0F");
|
||||
|
||||
b.Navigation("TeamLead");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.TeamMemberAvailability", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("TeamMemberAvailabilities")
|
||||
.HasForeignKey("SprintId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__TeamMembe__sprin__6DCC4D03");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.Navigation("Adjustments");
|
||||
|
||||
b.Navigation("Stories");
|
||||
|
||||
b.Navigation("TeamMemberAvailabilities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.Navigation("InverseParent");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.Navigation("Sprints");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.User", b =>
|
||||
{
|
||||
b.Navigation("Stories");
|
||||
|
||||
b.Navigation("Teams");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
+280
@@ -0,0 +1,280 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using System;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace WebApi.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class dbcreation : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Users",
|
||||
columns: table => new
|
||||
{
|
||||
user_id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
username = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__Users__B9BE370FA0824176", x => x.user_id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Teams",
|
||||
columns: table => new
|
||||
{
|
||||
team_id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
team_name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
team_description = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
||||
team_lead_id = table.Column<int>(type: "int", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__Teams__F82DEDBCAAB0C3AF", x => x.team_id);
|
||||
table.ForeignKey(
|
||||
name: "FK__Teams__team_lead__60A75C0F",
|
||||
column: x => x.team_lead_id,
|
||||
principalTable: "Users",
|
||||
principalColumn: "user_id");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Sprints",
|
||||
columns: table => new
|
||||
{
|
||||
sprint_id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
goal = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
start_date = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
end_date = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
status = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true, defaultValue: "planned"),
|
||||
team_id = table.Column<int>(type: "int", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__Sprints__396C1802EFA36E05", x => x.sprint_id);
|
||||
table.ForeignKey(
|
||||
name: "FK__Sprints__team_id__693CA210",
|
||||
column: x => x.team_id,
|
||||
principalTable: "Teams",
|
||||
principalColumn: "team_id");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "UsersTeams",
|
||||
columns: table => new
|
||||
{
|
||||
user_id = table.Column<int>(type: "int", nullable: false),
|
||||
team_id = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__UsersTea__663CE9D4131E7ED3", x => new { x.user_id, x.team_id });
|
||||
table.ForeignKey(
|
||||
name: "FK__UsersTeam__team___6477ECF3",
|
||||
column: x => x.team_id,
|
||||
principalTable: "Teams",
|
||||
principalColumn: "team_id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK__UsersTeam__user___6383C8BA",
|
||||
column: x => x.user_id,
|
||||
principalTable: "Users",
|
||||
principalColumn: "user_id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Adjustments",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
user_id = table.Column<int>(type: "int", nullable: false),
|
||||
sprint_id = table.Column<int>(type: "int", nullable: false),
|
||||
adjustment_points = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__Adjustme__3214EC07B3BFDA02", x => x.id);
|
||||
table.ForeignKey(
|
||||
name: "FK__Adjustmen__sprin__6EC0713C",
|
||||
column: x => x.sprint_id,
|
||||
principalTable: "Sprints",
|
||||
principalColumn: "sprint_id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Stories",
|
||||
columns: table => new
|
||||
{
|
||||
story_id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
title = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
||||
description = table.Column<string>(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
|
||||
status = table.Column<string>(type: "nvarchar(15)", maxLength: 15, nullable: true, defaultValue: "open"),
|
||||
parent_id = table.Column<int>(type: "int", nullable: true),
|
||||
sprint_id = table.Column<int>(type: "int", nullable: true),
|
||||
created_by = table.Column<int>(type: "int", nullable: true),
|
||||
story_points = table.Column<int>(type: "int", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__Stories__66339C56B86254B8", x => x.story_id);
|
||||
table.ForeignKey(
|
||||
name: "FK__Stories__created__6FE99F9F",
|
||||
column: x => x.created_by,
|
||||
principalTable: "Users",
|
||||
principalColumn: "user_id");
|
||||
table.ForeignKey(
|
||||
name: "FK__Stories__parent___70DDC3D8",
|
||||
column: x => x.parent_id,
|
||||
principalTable: "Stories",
|
||||
principalColumn: "story_id");
|
||||
table.ForeignKey(
|
||||
name: "FK__Stories__sprint___6EF57B66",
|
||||
column: x => x.sprint_id,
|
||||
principalTable: "Sprints",
|
||||
principalColumn: "sprint_id");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TeamMemberAvailabilities",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
user_id = table.Column<int>(type: "int", nullable: false),
|
||||
sprint_id = table.Column<int>(type: "int", nullable: false),
|
||||
availability_points = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__TeamMemb__3214EC07A9A5EE06", x => x.id);
|
||||
table.ForeignKey(
|
||||
name: "FK__TeamMembe__sprin__6DCC4D03",
|
||||
column: x => x.sprint_id,
|
||||
principalTable: "Sprints",
|
||||
principalColumn: "sprint_id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "UsersStories",
|
||||
columns: table => new
|
||||
{
|
||||
story_id = table.Column<int>(type: "int", nullable: false),
|
||||
user_id = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__UsersSto__8DA87F2683494916", x => new { x.story_id, x.user_id });
|
||||
table.ForeignKey(
|
||||
name: "FK__UsersStor__story__73BA3083",
|
||||
column: x => x.story_id,
|
||||
principalTable: "Stories",
|
||||
principalColumn: "story_id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK__UsersStor__user___74AE54BC",
|
||||
column: x => x.user_id,
|
||||
principalTable: "Users",
|
||||
principalColumn: "user_id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Adjustments_sprint_id",
|
||||
table: "Adjustments",
|
||||
column: "sprint_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Sprints_team_id",
|
||||
table: "Sprints",
|
||||
column: "team_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Stories_created_by",
|
||||
table: "Stories",
|
||||
column: "created_by");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Stories_parent_id",
|
||||
table: "Stories",
|
||||
column: "parent_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Stories_sprint_id",
|
||||
table: "Stories",
|
||||
column: "sprint_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TeamMemberAvailabilities_sprint_id",
|
||||
table: "TeamMemberAvailabilities",
|
||||
column: "sprint_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Teams_team_lead_id",
|
||||
table: "Teams",
|
||||
column: "team_lead_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__Teams__29E35E0C9F1894C7",
|
||||
table: "Teams",
|
||||
column: "team_name",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__Users__F3DBC572843AEA6F",
|
||||
table: "Users",
|
||||
column: "username",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_UsersStories_user_id",
|
||||
table: "UsersStories",
|
||||
column: "user_id");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_UsersTeams_team_id",
|
||||
table: "UsersTeams",
|
||||
column: "team_id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Adjustments");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "TeamMemberAvailabilities");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "UsersStories");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "UsersTeams");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Stories");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Sprints");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Teams");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Users");
|
||||
}
|
||||
}
|
||||
}
|
||||
+419
@@ -0,0 +1,419 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using WebApi.Context;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace WebApi.Migrations
|
||||
{
|
||||
[DbContext(typeof(JyrosContext))]
|
||||
[Migration("20241221195345_added-priority")]
|
||||
partial class addedpriority
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.10")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("UsersStory", b =>
|
||||
{
|
||||
b.Property<int>("StoryId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("StoryId", "UserId")
|
||||
.HasName("PK__UsersSto__8DA87F2683494916");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("UsersStories", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersTeam", b =>
|
||||
{
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.Property<int>("TeamId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
b.HasKey("UserId", "TeamId")
|
||||
.HasName("PK__UsersTea__663CE9D4131E7ED3");
|
||||
|
||||
b.HasIndex("TeamId");
|
||||
|
||||
b.ToTable("UsersTeams", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Adjustment", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AdjustmentPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("adjustment_points");
|
||||
|
||||
b.Property<int>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__Adjustme__3214EC07B3BFDA02");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("Adjustments");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.Property<int>("SprintId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("SprintId"));
|
||||
|
||||
b.Property<DateOnly>("EndDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("end_date");
|
||||
|
||||
b.Property<string>("Goal")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("goal");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("name");
|
||||
|
||||
b.Property<DateOnly>("StartDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("start_date");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasDefaultValue("planned")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<int?>("TeamId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
b.HasKey("SprintId")
|
||||
.HasName("PK__Sprints__396C1802EFA36E05");
|
||||
|
||||
b.HasIndex("TeamId");
|
||||
|
||||
b.ToTable("Sprints");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.Property<int>("StoryId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("StoryId"));
|
||||
|
||||
b.Property<int?>("CreatedBy")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("created_by");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<int?>("ParentId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("parent_id");
|
||||
|
||||
b.Property<int>("Priority")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValue(1)
|
||||
.HasColumnName("priority");
|
||||
|
||||
b.Property<int?>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(15)
|
||||
.HasColumnType("nvarchar(15)")
|
||||
.HasDefaultValue("open")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<int?>("StoryPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_points");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("title");
|
||||
|
||||
b.HasKey("StoryId")
|
||||
.HasName("PK__Stories__66339C56B86254B8");
|
||||
|
||||
b.HasIndex("CreatedBy");
|
||||
|
||||
b.HasIndex("ParentId");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("Stories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.Property<int>("TeamId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TeamId"));
|
||||
|
||||
b.Property<string>("TeamDescription")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)")
|
||||
.HasColumnName("team_description");
|
||||
|
||||
b.Property<int?>("TeamLeadId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_lead_id");
|
||||
|
||||
b.Property<string>("TeamName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("team_name");
|
||||
|
||||
b.HasKey("TeamId")
|
||||
.HasName("PK__Teams__F82DEDBCAAB0C3AF");
|
||||
|
||||
b.HasIndex("TeamLeadId");
|
||||
|
||||
b.HasIndex(new[] { "TeamName" }, "UQ__Teams__29E35E0C9F1894C7")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Teams");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.TeamMemberAvailability", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AvailabilityPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("availability_points");
|
||||
|
||||
b.Property<int>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__TeamMemb__3214EC07A9A5EE06");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("TeamMemberAvailabilities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.User", b =>
|
||||
{
|
||||
b.Property<int>("UserId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("UserId"));
|
||||
|
||||
b.Property<string>("Username")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("username");
|
||||
|
||||
b.HasKey("UserId")
|
||||
.HasName("PK__Users__B9BE370FA0824176");
|
||||
|
||||
b.HasIndex(new[] { "Username" }, "UQ__Users__F3DBC572843AEA6F")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Users");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersStory", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Story", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("StoryId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersStor__story__73BA3083");
|
||||
|
||||
b.HasOne("WebApi.Models.User", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersStor__user___74AE54BC");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersTeam", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Team", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("TeamId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersTeam__team___6477ECF3");
|
||||
|
||||
b.HasOne("WebApi.Models.User", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersTeam__user___6383C8BA");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Adjustment", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("Adjustments")
|
||||
.HasForeignKey("SprintId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__Adjustmen__sprin__6EC0713C");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Team", "Team")
|
||||
.WithMany("Sprints")
|
||||
.HasForeignKey("TeamId")
|
||||
.HasConstraintName("FK__Sprints__team_id__693CA210");
|
||||
|
||||
b.Navigation("Team");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.User", "CreatedByNavigation")
|
||||
.WithMany("Stories")
|
||||
.HasForeignKey("CreatedBy")
|
||||
.HasConstraintName("FK__Stories__created__6FE99F9F");
|
||||
|
||||
b.HasOne("WebApi.Models.Story", "Parent")
|
||||
.WithMany("InverseParent")
|
||||
.HasForeignKey("ParentId")
|
||||
.HasConstraintName("FK__Stories__parent___70DDC3D8");
|
||||
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("Stories")
|
||||
.HasForeignKey("SprintId")
|
||||
.HasConstraintName("FK__Stories__sprint___6EF57B66");
|
||||
|
||||
b.Navigation("CreatedByNavigation");
|
||||
|
||||
b.Navigation("Parent");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.User", "TeamLead")
|
||||
.WithMany("Teams")
|
||||
.HasForeignKey("TeamLeadId")
|
||||
.HasConstraintName("FK__Teams__team_lead__60A75C0F");
|
||||
|
||||
b.Navigation("TeamLead");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.TeamMemberAvailability", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("TeamMemberAvailabilities")
|
||||
.HasForeignKey("SprintId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__TeamMembe__sprin__6DCC4D03");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.Navigation("Adjustments");
|
||||
|
||||
b.Navigation("Stories");
|
||||
|
||||
b.Navigation("TeamMemberAvailabilities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.Navigation("InverseParent");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.Navigation("Sprints");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.User", b =>
|
||||
{
|
||||
b.Navigation("Stories");
|
||||
|
||||
b.Navigation("Teams");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace WebApi.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class addedpriority : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "priority",
|
||||
table: "Stories",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 1);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "priority",
|
||||
table: "Stories");
|
||||
}
|
||||
}
|
||||
}
|
||||
+421
@@ -0,0 +1,421 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using WebApi.Context;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace WebApi.Migrations
|
||||
{
|
||||
[DbContext(typeof(JyrosContext))]
|
||||
[Migration("20241222003947_test")]
|
||||
partial class test
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.10")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("UsersStory", b =>
|
||||
{
|
||||
b.Property<int>("StoryId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("StoryId", "UserId")
|
||||
.HasName("PK__UsersSto__8DA87F2683494916");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("UsersStories", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersTeam", b =>
|
||||
{
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.Property<int>("TeamId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
b.HasKey("UserId", "TeamId")
|
||||
.HasName("PK__UsersTea__663CE9D4131E7ED3");
|
||||
|
||||
b.HasIndex("TeamId");
|
||||
|
||||
b.ToTable("UsersTeams", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Adjustment", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AdjustmentPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("adjustment_points");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)")
|
||||
.HasColumnName("reason");
|
||||
|
||||
b.Property<int>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__Adjustme__3214EC07B3BFDA02");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("Adjustments");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.Property<int>("SprintId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("SprintId"));
|
||||
|
||||
b.Property<DateOnly>("EndDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("end_date");
|
||||
|
||||
b.Property<string>("Goal")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("goal");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("name");
|
||||
|
||||
b.Property<DateOnly>("StartDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("start_date");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasDefaultValue("planned")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<int?>("TeamId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
b.HasKey("SprintId")
|
||||
.HasName("PK__Sprints__396C1802EFA36E05");
|
||||
|
||||
b.HasIndex("TeamId");
|
||||
|
||||
b.ToTable("Sprints");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.Property<int>("StoryId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("StoryId"));
|
||||
|
||||
b.Property<int?>("CreatedBy")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("created_by");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<int?>("ParentId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("parent_id");
|
||||
|
||||
b.Property<int>("Priority")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValue(1)
|
||||
.HasColumnName("priority");
|
||||
|
||||
b.Property<int?>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(15)
|
||||
.HasColumnType("nvarchar(15)")
|
||||
.HasDefaultValue("open")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<int?>("StoryPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_points");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("title");
|
||||
|
||||
b.HasKey("StoryId")
|
||||
.HasName("PK__Stories__66339C56B86254B8");
|
||||
|
||||
b.HasIndex("CreatedBy");
|
||||
|
||||
b.HasIndex("ParentId");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("Stories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.Property<int>("TeamId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TeamId"));
|
||||
|
||||
b.Property<string>("TeamDescription")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)")
|
||||
.HasColumnName("team_description");
|
||||
|
||||
b.Property<int?>("TeamLeadId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_lead_id");
|
||||
|
||||
b.Property<string>("TeamName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("team_name");
|
||||
|
||||
b.HasKey("TeamId")
|
||||
.HasName("PK__Teams__F82DEDBCAAB0C3AF");
|
||||
|
||||
b.HasIndex("TeamLeadId");
|
||||
|
||||
b.HasIndex(new[] { "TeamName" }, "UQ__Teams__29E35E0C9F1894C7")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Teams");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.TeamMemberAvailability", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AvailabilityPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("availability_points");
|
||||
|
||||
b.Property<int>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__TeamMemb__3214EC07A9A5EE06");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("TeamMemberAvailabilities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.User", b =>
|
||||
{
|
||||
b.Property<int>("UserId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("UserId"));
|
||||
|
||||
b.Property<string>("Username")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("username");
|
||||
|
||||
b.HasKey("UserId")
|
||||
.HasName("PK__Users__B9BE370FA0824176");
|
||||
|
||||
b.HasIndex(new[] { "Username" }, "UQ__Users__F3DBC572843AEA6F")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Users");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersStory", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Story", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("StoryId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersStor__story__73BA3083");
|
||||
|
||||
b.HasOne("WebApi.Models.User", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersStor__user___74AE54BC");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersTeam", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Team", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("TeamId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersTeam__team___6477ECF3");
|
||||
|
||||
b.HasOne("WebApi.Models.User", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersTeam__user___6383C8BA");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Adjustment", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("Adjustments")
|
||||
.HasForeignKey("SprintId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__Adjustmen__sprin__6EC0713C");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Team", "Team")
|
||||
.WithMany("Sprints")
|
||||
.HasForeignKey("TeamId")
|
||||
.HasConstraintName("FK__Sprints__team_id__693CA210");
|
||||
|
||||
b.Navigation("Team");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.User", "CreatedByNavigation")
|
||||
.WithMany("Stories")
|
||||
.HasForeignKey("CreatedBy")
|
||||
.HasConstraintName("FK__Stories__created__6FE99F9F");
|
||||
|
||||
b.HasOne("WebApi.Models.Story", "Parent")
|
||||
.WithMany("InverseParent")
|
||||
.HasForeignKey("ParentId")
|
||||
.HasConstraintName("FK__Stories__parent___70DDC3D8");
|
||||
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("Stories")
|
||||
.HasForeignKey("SprintId")
|
||||
.HasConstraintName("FK__Stories__sprint___6EF57B66");
|
||||
|
||||
b.Navigation("CreatedByNavigation");
|
||||
|
||||
b.Navigation("Parent");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.User", "TeamLead")
|
||||
.WithMany("Teams")
|
||||
.HasForeignKey("TeamLeadId")
|
||||
.HasConstraintName("FK__Teams__team_lead__60A75C0F");
|
||||
|
||||
b.Navigation("TeamLead");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.TeamMemberAvailability", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("TeamMemberAvailabilities")
|
||||
.HasForeignKey("SprintId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__TeamMembe__sprin__6DCC4D03");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.Navigation("Adjustments");
|
||||
|
||||
b.Navigation("Stories");
|
||||
|
||||
b.Navigation("TeamMemberAvailabilities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.Navigation("InverseParent");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.Navigation("Sprints");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.User", b =>
|
||||
{
|
||||
b.Navigation("Stories");
|
||||
|
||||
b.Navigation("Teams");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace WebApi.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class test : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "user_id",
|
||||
table: "Adjustments");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "reason",
|
||||
table: "Adjustments",
|
||||
type: "nvarchar(100)",
|
||||
maxLength: 100,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "reason",
|
||||
table: "Adjustments");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "user_id",
|
||||
table: "Adjustments",
|
||||
type: "int",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
+425
@@ -0,0 +1,425 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using WebApi.Context;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace WebApi.Migrations
|
||||
{
|
||||
[DbContext(typeof(JyrosContext))]
|
||||
[Migration("20250118125647_password")]
|
||||
partial class password
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.10")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("UsersStory", b =>
|
||||
{
|
||||
b.Property<int>("StoryId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("StoryId", "UserId")
|
||||
.HasName("PK__UsersSto__8DA87F2683494916");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("UsersStories", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersTeam", b =>
|
||||
{
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.Property<int>("TeamId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
b.HasKey("UserId", "TeamId")
|
||||
.HasName("PK__UsersTea__663CE9D4131E7ED3");
|
||||
|
||||
b.HasIndex("TeamId");
|
||||
|
||||
b.ToTable("UsersTeams", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Adjustment", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AdjustmentPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("adjustment_points");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)")
|
||||
.HasColumnName("reason");
|
||||
|
||||
b.Property<int>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__Adjustme__3214EC07B3BFDA02");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("Adjustments");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.Property<int>("SprintId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("SprintId"));
|
||||
|
||||
b.Property<DateOnly>("EndDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("end_date");
|
||||
|
||||
b.Property<string>("Goal")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("goal");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("name");
|
||||
|
||||
b.Property<DateOnly>("StartDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("start_date");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasDefaultValue("planned")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<int?>("TeamId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
b.HasKey("SprintId")
|
||||
.HasName("PK__Sprints__396C1802EFA36E05");
|
||||
|
||||
b.HasIndex("TeamId");
|
||||
|
||||
b.ToTable("Sprints");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.Property<int>("StoryId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("StoryId"));
|
||||
|
||||
b.Property<int?>("CreatedBy")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("created_by");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<int?>("ParentId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("parent_id");
|
||||
|
||||
b.Property<int>("Priority")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValue(1)
|
||||
.HasColumnName("priority");
|
||||
|
||||
b.Property<int?>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(15)
|
||||
.HasColumnType("nvarchar(15)")
|
||||
.HasDefaultValue("open")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<int?>("StoryPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_points");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("title");
|
||||
|
||||
b.HasKey("StoryId")
|
||||
.HasName("PK__Stories__66339C56B86254B8");
|
||||
|
||||
b.HasIndex("CreatedBy");
|
||||
|
||||
b.HasIndex("ParentId");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("Stories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.Property<int>("TeamId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TeamId"));
|
||||
|
||||
b.Property<string>("TeamDescription")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)")
|
||||
.HasColumnName("team_description");
|
||||
|
||||
b.Property<int?>("TeamLeadId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_lead_id");
|
||||
|
||||
b.Property<string>("TeamName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("team_name");
|
||||
|
||||
b.HasKey("TeamId")
|
||||
.HasName("PK__Teams__F82DEDBCAAB0C3AF");
|
||||
|
||||
b.HasIndex("TeamLeadId");
|
||||
|
||||
b.HasIndex(new[] { "TeamName" }, "UQ__Teams__29E35E0C9F1894C7")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Teams");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.TeamMemberAvailability", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AvailabilityPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("availability_points");
|
||||
|
||||
b.Property<int>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__TeamMemb__3214EC07A9A5EE06");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("TeamMemberAvailabilities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.User", b =>
|
||||
{
|
||||
b.Property<int>("UserId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("UserId"));
|
||||
|
||||
b.Property<string>("Password")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("Username")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("username");
|
||||
|
||||
b.HasKey("UserId")
|
||||
.HasName("PK__Users__B9BE370FA0824176");
|
||||
|
||||
b.HasIndex(new[] { "Username" }, "UQ__Users__F3DBC572843AEA6F")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Users");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersStory", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Story", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("StoryId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersStor__story__73BA3083");
|
||||
|
||||
b.HasOne("WebApi.Models.User", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersStor__user___74AE54BC");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersTeam", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Team", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("TeamId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersTeam__team___6477ECF3");
|
||||
|
||||
b.HasOne("WebApi.Models.User", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersTeam__user___6383C8BA");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Adjustment", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("Adjustments")
|
||||
.HasForeignKey("SprintId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__Adjustmen__sprin__6EC0713C");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Team", "Team")
|
||||
.WithMany("Sprints")
|
||||
.HasForeignKey("TeamId")
|
||||
.HasConstraintName("FK__Sprints__team_id__693CA210");
|
||||
|
||||
b.Navigation("Team");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.User", "CreatedByNavigation")
|
||||
.WithMany("Stories")
|
||||
.HasForeignKey("CreatedBy")
|
||||
.HasConstraintName("FK__Stories__created__6FE99F9F");
|
||||
|
||||
b.HasOne("WebApi.Models.Story", "Parent")
|
||||
.WithMany("InverseParent")
|
||||
.HasForeignKey("ParentId")
|
||||
.HasConstraintName("FK__Stories__parent___70DDC3D8");
|
||||
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("Stories")
|
||||
.HasForeignKey("SprintId")
|
||||
.HasConstraintName("FK__Stories__sprint___6EF57B66");
|
||||
|
||||
b.Navigation("CreatedByNavigation");
|
||||
|
||||
b.Navigation("Parent");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.User", "TeamLead")
|
||||
.WithMany("Teams")
|
||||
.HasForeignKey("TeamLeadId")
|
||||
.HasConstraintName("FK__Teams__team_lead__60A75C0F");
|
||||
|
||||
b.Navigation("TeamLead");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.TeamMemberAvailability", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("TeamMemberAvailabilities")
|
||||
.HasForeignKey("SprintId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__TeamMembe__sprin__6DCC4D03");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.Navigation("Adjustments");
|
||||
|
||||
b.Navigation("Stories");
|
||||
|
||||
b.Navigation("TeamMemberAvailabilities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.Navigation("InverseParent");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.Navigation("Sprints");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.User", b =>
|
||||
{
|
||||
b.Navigation("Stories");
|
||||
|
||||
b.Navigation("Teams");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace WebApi.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class password : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Password",
|
||||
table: "Users",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Password",
|
||||
table: "Users");
|
||||
}
|
||||
}
|
||||
}
|
||||
+422
@@ -0,0 +1,422 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using WebApi.Context;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace WebApi.Migrations
|
||||
{
|
||||
[DbContext(typeof(JyrosContext))]
|
||||
partial class JyrosContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.10")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("UsersStory", b =>
|
||||
{
|
||||
b.Property<int>("StoryId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("StoryId", "UserId")
|
||||
.HasName("PK__UsersSto__8DA87F2683494916");
|
||||
|
||||
b.HasIndex("UserId");
|
||||
|
||||
b.ToTable("UsersStories", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersTeam", b =>
|
||||
{
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.Property<int>("TeamId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
b.HasKey("UserId", "TeamId")
|
||||
.HasName("PK__UsersTea__663CE9D4131E7ED3");
|
||||
|
||||
b.HasIndex("TeamId");
|
||||
|
||||
b.ToTable("UsersTeams", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Adjustment", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AdjustmentPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("adjustment_points");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)")
|
||||
.HasColumnName("reason");
|
||||
|
||||
b.Property<int>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__Adjustme__3214EC07B3BFDA02");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("Adjustments");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.Property<int>("SprintId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("SprintId"));
|
||||
|
||||
b.Property<DateOnly>("EndDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("end_date");
|
||||
|
||||
b.Property<string>("Goal")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("goal");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("name");
|
||||
|
||||
b.Property<DateOnly>("StartDate")
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("start_date");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasDefaultValue("planned")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<int?>("TeamId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
b.HasKey("SprintId")
|
||||
.HasName("PK__Sprints__396C1802EFA36E05");
|
||||
|
||||
b.HasIndex("TeamId");
|
||||
|
||||
b.ToTable("Sprints");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.Property<int>("StoryId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("StoryId"));
|
||||
|
||||
b.Property<int?>("CreatedBy")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("created_by");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("nvarchar(1000)")
|
||||
.HasColumnName("description");
|
||||
|
||||
b.Property<int?>("ParentId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("parent_id");
|
||||
|
||||
b.Property<int>("Priority")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasDefaultValue(1)
|
||||
.HasColumnName("priority");
|
||||
|
||||
b.Property<int?>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(15)
|
||||
.HasColumnType("nvarchar(15)")
|
||||
.HasDefaultValue("open")
|
||||
.HasColumnName("status");
|
||||
|
||||
b.Property<int?>("StoryPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("story_points");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("title");
|
||||
|
||||
b.HasKey("StoryId")
|
||||
.HasName("PK__Stories__66339C56B86254B8");
|
||||
|
||||
b.HasIndex("CreatedBy");
|
||||
|
||||
b.HasIndex("ParentId");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("Stories");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.Property<int>("TeamId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("TeamId"));
|
||||
|
||||
b.Property<string>("TeamDescription")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("nvarchar(500)")
|
||||
.HasColumnName("team_description");
|
||||
|
||||
b.Property<int?>("TeamLeadId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("team_lead_id");
|
||||
|
||||
b.Property<string>("TeamName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("team_name");
|
||||
|
||||
b.HasKey("TeamId")
|
||||
.HasName("PK__Teams__F82DEDBCAAB0C3AF");
|
||||
|
||||
b.HasIndex("TeamLeadId");
|
||||
|
||||
b.HasIndex(new[] { "TeamName" }, "UQ__Teams__29E35E0C9F1894C7")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Teams");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.TeamMemberAvailability", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("AvailabilityPoints")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("availability_points");
|
||||
|
||||
b.Property<int>("SprintId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("sprint_id");
|
||||
|
||||
b.Property<int>("UserId")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__TeamMemb__3214EC07A9A5EE06");
|
||||
|
||||
b.HasIndex("SprintId");
|
||||
|
||||
b.ToTable("TeamMemberAvailabilities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.User", b =>
|
||||
{
|
||||
b.Property<int>("UserId")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("user_id");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("UserId"));
|
||||
|
||||
b.Property<string>("Password")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("Username")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)")
|
||||
.HasColumnName("username");
|
||||
|
||||
b.HasKey("UserId")
|
||||
.HasName("PK__Users__B9BE370FA0824176");
|
||||
|
||||
b.HasIndex(new[] { "Username" }, "UQ__Users__F3DBC572843AEA6F")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Users");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersStory", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Story", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("StoryId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersStor__story__73BA3083");
|
||||
|
||||
b.HasOne("WebApi.Models.User", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersStor__user___74AE54BC");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("UsersTeam", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Team", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("TeamId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersTeam__team___6477ECF3");
|
||||
|
||||
b.HasOne("WebApi.Models.User", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("UserId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__UsersTeam__user___6383C8BA");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Adjustment", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("Adjustments")
|
||||
.HasForeignKey("SprintId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__Adjustmen__sprin__6EC0713C");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Team", "Team")
|
||||
.WithMany("Sprints")
|
||||
.HasForeignKey("TeamId")
|
||||
.HasConstraintName("FK__Sprints__team_id__693CA210");
|
||||
|
||||
b.Navigation("Team");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.User", "CreatedByNavigation")
|
||||
.WithMany("Stories")
|
||||
.HasForeignKey("CreatedBy")
|
||||
.HasConstraintName("FK__Stories__created__6FE99F9F");
|
||||
|
||||
b.HasOne("WebApi.Models.Story", "Parent")
|
||||
.WithMany("InverseParent")
|
||||
.HasForeignKey("ParentId")
|
||||
.HasConstraintName("FK__Stories__parent___70DDC3D8");
|
||||
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("Stories")
|
||||
.HasForeignKey("SprintId")
|
||||
.HasConstraintName("FK__Stories__sprint___6EF57B66");
|
||||
|
||||
b.Navigation("CreatedByNavigation");
|
||||
|
||||
b.Navigation("Parent");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.User", "TeamLead")
|
||||
.WithMany("Teams")
|
||||
.HasForeignKey("TeamLeadId")
|
||||
.HasConstraintName("FK__Teams__team_lead__60A75C0F");
|
||||
|
||||
b.Navigation("TeamLead");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.TeamMemberAvailability", b =>
|
||||
{
|
||||
b.HasOne("WebApi.Models.Sprint", "Sprint")
|
||||
.WithMany("TeamMemberAvailabilities")
|
||||
.HasForeignKey("SprintId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__TeamMembe__sprin__6DCC4D03");
|
||||
|
||||
b.Navigation("Sprint");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Sprint", b =>
|
||||
{
|
||||
b.Navigation("Adjustments");
|
||||
|
||||
b.Navigation("Stories");
|
||||
|
||||
b.Navigation("TeamMemberAvailabilities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Story", b =>
|
||||
{
|
||||
b.Navigation("InverseParent");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.Team", b =>
|
||||
{
|
||||
b.Navigation("Sprints");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("WebApi.Models.User", b =>
|
||||
{
|
||||
b.Navigation("Stories");
|
||||
|
||||
b.Navigation("Teams");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user