using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace foodmarket.Infrastructure.Persistence.Migrations
{
    /// <summary>employees: Salary numeric(18,2), TaxNumber varchar(20),
    /// Description varchar(2000), ImageUrl varchar(500). Все nullable —
    /// существующие записи не ломаются.</summary>
    public partial class Phase4c_EmployeeExtraFields : Migration
    {
        protected override void Up(MigrationBuilder b)
        {
            b.AddColumn<decimal>(
                name: "Salary", schema: "public", table: "employees",
                type: "numeric(18,2)", precision: 18, scale: 2, nullable: true);
            b.AddColumn<string>(
                name: "TaxNumber", schema: "public", table: "employees",
                type: "character varying(20)", maxLength: 20, nullable: true);
            b.AddColumn<string>(
                name: "Description", schema: "public", table: "employees",
                type: "character varying(2000)", maxLength: 2000, nullable: true);
            b.AddColumn<string>(
                name: "ImageUrl", schema: "public", table: "employees",
                type: "character varying(500)", maxLength: 500, nullable: true);
        }

        protected override void Down(MigrationBuilder b)
        {
            b.DropColumn(name: "ImageUrl", schema: "public", table: "employees");
            b.DropColumn(name: "Description", schema: "public", table: "employees");
            b.DropColumn(name: "TaxNumber", schema: "public", table: "employees");
            b.DropColumn(name: "Salary", schema: "public", table: "employees");
        }
    }
}
