using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace TakeoutSaaS.Infrastructure.Migrations
{
    /// <inheritdoc />
    public partial class AddTenantPackageRecommendationAndTags : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "IsRecommended",
                table: "tenant_packages",
                type: "boolean",
                nullable: false,
                defaultValue: false,
                comment: "是否推荐展示（运营推荐标识）。");

            migrationBuilder.AddColumn<string[]>(
                name: "Tags",
                table: "tenant_packages",
                type: "text[]",
                nullable: false,
                defaultValue: new string[0],
                comment: "套餐标签（用于展示与对比页）。");
        }

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

            migrationBuilder.DropColumn(
                name: "Tags",
                table: "tenant_packages");
        }
    }
}
