feat(gehege): Reinigungszyklus (Maße, Kapazität, letzte/nächste Reinigung)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-22 22:43:19 +02:00
parent 5e14124322
commit 4e7cd21b70
15 changed files with 2071 additions and 14 deletions

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