using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using foodmarket.Infrastructure.Persistence;

#nullable disable

namespace foodmarket.Infrastructure.Persistence.Migrations
{
    /// <summary>Phase9a — добавляем колонку <c>OwnerTelegramChatId</c> в
    /// organizations. По ней Hangfire-джоб <c>OwnerDailySummaryJob</c> ходит
    /// в Telegram Bot API и шлёт ежедневную сводку владельцу. NULL = бот не
    /// привязан, рассылка не идёт.</summary>
    [DbContext(typeof(AppDbContext))]
    [Migration("20260531100000_Phase9a_OwnerTelegramChatId")]
    public partial class Phase9a_OwnerTelegramChatId : Migration
    {
        protected override void Up(MigrationBuilder b)
        {
            b.AddColumn<long>(
                name: "OwnerTelegramChatId",
                table: "organizations",
                type: "bigint",
                nullable: true);
        }

        protected override void Down(MigrationBuilder b)
        {
            b.DropColumn(name: "OwnerTelegramChatId", table: "organizations");
        }
    }
}
