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