Merge branch 'worktree-agent-a9d8edbd439109a45'

This commit is contained in:
2026-06-22 22:53:33 +02:00
15 changed files with 2071 additions and 14 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,59 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace GerbilManagerWebAPI.Migrations
{
/// <inheritdoc />
public partial class AddEnclosureCleaning : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Capacity",
table: "Enclosures",
type: "integer",
nullable: true);
migrationBuilder.AddColumn<int>(
name: "CleaningCycleDays",
table: "Enclosures",
type: "integer",
nullable: true);
migrationBuilder.AddColumn<DateOnly>(
name: "LastCleanedDate",
table: "Enclosures",
type: "date",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Size",
table: "Enclosures",
type: "text",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Capacity",
table: "Enclosures");
migrationBuilder.DropColumn(
name: "CleaningCycleDays",
table: "Enclosures");
migrationBuilder.DropColumn(
name: "LastCleanedDate",
table: "Enclosures");
migrationBuilder.DropColumn(
name: "Size",
table: "Enclosures");
}
}
}

View File

@@ -755,6 +755,15 @@ namespace GerbilManagerWebAPI.Migrations
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<int?>("Capacity")
.HasColumnType("integer");
b.Property<int?>("CleaningCycleDays")
.HasColumnType("integer");
b.Property<DateOnly?>("LastCleanedDate")
.HasColumnType("date");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text");
@@ -762,6 +771,9 @@ namespace GerbilManagerWebAPI.Migrations
b.Property<string>("Notes")
.HasColumnType("text");
b.Property<string>("Size")
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("Enclosures");