using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace JobsMedical.Web.Migrations
{
    /// <inheritdoc />
    public partial class IngestionSourcesInSettings : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "AutoIngestEnabled",
                table: "AppSettings",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<string>(
                name: "BaleBotToken",
                table: "AppSettings",
                type: "character varying(200)",
                maxLength: 200,
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "BaleEnabled",
                table: "AppSettings",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<string>(
                name: "DivarCity",
                table: "AppSettings",
                type: "character varying(60)",
                maxLength: 60,
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "DivarEnabled",
                table: "AppSettings",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<string>(
                name: "DivarQueries",
                table: "AppSettings",
                type: "character varying(2000)",
                maxLength: 2000,
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "IngestIntervalMinutes",
                table: "AppSettings",
                type: "integer",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "TelegramChannels",
                table: "AppSettings",
                type: "character varying(2000)",
                maxLength: 2000,
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "TelegramEnabled",
                table: "AppSettings",
                type: "boolean",
                nullable: false,
                defaultValue: false);
        }

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

            migrationBuilder.DropColumn(
                name: "BaleBotToken",
                table: "AppSettings");

            migrationBuilder.DropColumn(
                name: "BaleEnabled",
                table: "AppSettings");

            migrationBuilder.DropColumn(
                name: "DivarCity",
                table: "AppSettings");

            migrationBuilder.DropColumn(
                name: "DivarEnabled",
                table: "AppSettings");

            migrationBuilder.DropColumn(
                name: "DivarQueries",
                table: "AppSettings");

            migrationBuilder.DropColumn(
                name: "IngestIntervalMinutes",
                table: "AppSettings");

            migrationBuilder.DropColumn(
                name: "TelegramChannels",
                table: "AppSettings");

            migrationBuilder.DropColumn(
                name: "TelegramEnabled",
                table: "AppSettings");
        }
    }
}
