Budget improvements and list!
This commit is contained in:
1304
Aberwyn/Migrations/20250903130637_AddDoughPlans.Designer.cs
generated
Normal file
1304
Aberwyn/Migrations/20250903130637_AddDoughPlans.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
44
Aberwyn/Migrations/20250903130637_AddDoughPlans.cs
Normal file
44
Aberwyn/Migrations/20250903130637_AddDoughPlans.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Aberwyn.Migrations
|
||||
{
|
||||
public partial class AddDoughPlans : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "DoughPlans",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
||||
AntalPizzor = table.Column<int>(type: "int", nullable: false),
|
||||
ViktPerPizza = table.Column<double>(type: "double", nullable: false),
|
||||
Mjol = table.Column<double>(type: "double", nullable: false),
|
||||
Vatten = table.Column<double>(type: "double", nullable: false),
|
||||
Olja = table.Column<double>(type: "double", nullable: false),
|
||||
Salt = table.Column<double>(type: "double", nullable: false),
|
||||
Jast = table.Column<double>(type: "double", nullable: false),
|
||||
TotalDeg = table.Column<double>(type: "double", nullable: false),
|
||||
Datum = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
Namn = table.Column<string>(type: "longtext", nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_DoughPlans", x => x.Id);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "DoughPlans");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -243,6 +243,48 @@ namespace Aberwyn.Migrations
|
||||
b.ToTable("BudgetPeriods");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Aberwyn.Models.DoughPlan", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("AntalPizzor")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<DateTime>("Datum")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<double>("Jast")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double>("Mjol")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<string>("Namn")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<double>("Olja")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double>("Salt")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double>("TotalDeg")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double>("Vatten")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.Property<double>("ViktPerPizza")
|
||||
.HasColumnType("double");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("DoughPlans");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Aberwyn.Models.Ingredient", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
|
||||
Reference in New Issue
Block a user