Budget improvements and list!

This commit is contained in:
Elias Jansson
2025-09-11 22:42:56 +02:00
parent 01baccaad7
commit ce35261d74
18 changed files with 2206 additions and 75 deletions

File diff suppressed because it is too large Load Diff

View 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");
}
}
}

View File

@@ -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")