Adjust
This commit is contained in:
@@ -11,8 +11,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace GerbilManagerWebAPI.Migrations
|
||||
{
|
||||
[DbContext(typeof(ApplicationContext))]
|
||||
[Migration("20231023182219_InitialCreate")]
|
||||
partial class InitialCreate
|
||||
[Migration("20231030203950_initialCreate")]
|
||||
partial class initialCreate
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -31,11 +31,12 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Breeders");
|
||||
b.ToTable("Breeders", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.Gerbil", b =>
|
||||
@@ -47,13 +48,15 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
b.Property<Guid?>("BreederId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("Gender")
|
||||
.HasColumnType("int");
|
||||
b.Property<string>("Gender")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<Guid?>("LitterId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.HasKey("Id");
|
||||
@@ -62,7 +65,7 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
|
||||
b.HasIndex("LitterId");
|
||||
|
||||
b.ToTable("Gerbils");
|
||||
b.ToTable("Gerbils", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.Litter", b =>
|
||||
@@ -81,9 +84,10 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Strength")
|
||||
b.Property<int?>("Strength")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
@@ -92,7 +96,7 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
|
||||
b.HasIndex("MotherId");
|
||||
|
||||
b.ToTable("Litters");
|
||||
b.ToTable("Litters", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.Gerbil", b =>
|
||||
@@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
namespace GerbilManagerWebAPI.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class InitialCreate : Migration
|
||||
public partial class initialCreate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
@@ -16,7 +16,7 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||
Name = table.Column<string>(type: "nvarchar(max)", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
@@ -28,8 +28,8 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
Gender = table.Column<int>(type: "nvarchar(max)", nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
Gender = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
LitterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
BreederId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
@@ -48,9 +48,9 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||
Name = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
||||
Name = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
Date = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
Strength = table.Column<int>(type: "int", nullable: false),
|
||||
Strength = table.Column<int>(type: "int", nullable: true),
|
||||
FatherId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||
MotherId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
||||
},
|
||||
@@ -28,11 +28,12 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Breeders");
|
||||
b.ToTable("Breeders", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.Gerbil", b =>
|
||||
@@ -44,13 +45,15 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
b.Property<Guid?>("BreederId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("Gender")
|
||||
.HasColumnType("int");
|
||||
b.Property<string>("Gender")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<Guid?>("LitterId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.HasKey("Id");
|
||||
@@ -59,7 +62,7 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
|
||||
b.HasIndex("LitterId");
|
||||
|
||||
b.ToTable("Gerbils");
|
||||
b.ToTable("Gerbils", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.Litter", b =>
|
||||
@@ -78,9 +81,10 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Strength")
|
||||
b.Property<int?>("Strength")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
@@ -89,7 +93,7 @@ namespace GerbilManagerWebAPI.Migrations
|
||||
|
||||
b.HasIndex("MotherId");
|
||||
|
||||
b.ToTable("Litters");
|
||||
b.ToTable("Litters", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GerbilManagerWebAPI.Models.Gerbil", b =>
|
||||
|
||||
Reference in New Issue
Block a user