Files
ClaudeDo/src/ClaudeDo.Data/Migrations/20260428064951_AddPrimeSchedules.cs
Mika Kuns 0b90df6ff0 feat(data): add AddPrimeSchedules migration
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 08:50:38 +02:00

42 lines
1.6 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ClaudeDo.Data.Migrations
{
/// <inheritdoc />
public partial class AddPrimeSchedules : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "prime_schedules",
columns: table => new
{
id = table.Column<Guid>(type: "TEXT", nullable: false),
start_date = table.Column<DateOnly>(type: "TEXT", nullable: false),
end_date = table.Column<DateOnly>(type: "TEXT", nullable: false),
time_of_day = table.Column<TimeSpan>(type: "TEXT", nullable: false),
workdays_only = table.Column<bool>(type: "INTEGER", nullable: false, defaultValue: true),
enabled = table.Column<bool>(type: "INTEGER", nullable: false, defaultValue: true),
last_run_at = table.Column<DateTimeOffset>(type: "TEXT", nullable: true),
prompt_override = table.Column<string>(type: "TEXT", nullable: true),
created_at = table.Column<DateTimeOffset>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_prime_schedules", x => x.id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "prime_schedules");
}
}
}