using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace ROLAC.API.Migrations
{
    /// <inheritdoc />
    public partial class AddChurchAiSettings : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "AiProvider",
                table: "ChurchProfiles",
                type: "character varying(20)",
                maxLength: 20,
                nullable: false,
                defaultValue: "Claude");

            migrationBuilder.AddColumn<string>(
                name: "ClaudeApiKey",
                table: "ChurchProfiles",
                type: "character varying(500)",
                maxLength: 500,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ClaudeModel",
                table: "ChurchProfiles",
                type: "character varying(100)",
                maxLength: 100,
                nullable: true,
                defaultValue: "claude-haiku-4-5-20251001");

            migrationBuilder.AddColumn<string>(
                name: "GeminiApiKey",
                table: "ChurchProfiles",
                type: "character varying(500)",
                maxLength: 500,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "GeminiModel",
                table: "ChurchProfiles",
                type: "character varying(100)",
                maxLength: 100,
                nullable: true,
                defaultValue: "gemini-2.5-flash-lite");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AiProvider",
                table: "ChurchProfiles");

            migrationBuilder.DropColumn(
                name: "ClaudeApiKey",
                table: "ChurchProfiles");

            migrationBuilder.DropColumn(
                name: "ClaudeModel",
                table: "ChurchProfiles");

            migrationBuilder.DropColumn(
                name: "GeminiApiKey",
                table: "ChurchProfiles");

            migrationBuilder.DropColumn(
                name: "GeminiModel",
                table: "ChurchProfiles");
        }
    }
}
