using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace OmsorgCore.Infrastructure.Persistence.Migrations
{
    /// <inheritdoc />
    public partial class AddContractDetailsAndQueryFilter : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "AllowancesDescription",
                table: "contracts",
                type: "character varying(500)",
                maxLength: 500,
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "HourlyWage",
                table: "contracts",
                type: "numeric(10,2)",
                precision: 10,
                scale: 2,
                nullable: true);

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

            migrationBuilder.AddColumn<int>(
                name: "ProbationPeriodMonths",
                table: "contracts",
                type: "integer",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "VacationDaysPerYear",
                table: "contracts",
                type: "integer",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "WeeklyHours",
                table: "contracts",
                type: "numeric(10,2)",
                precision: 10,
                scale: 2,
                nullable: true);
        }

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

            migrationBuilder.DropColumn(
                name: "HourlyWage",
                table: "contracts");

            migrationBuilder.DropColumn(
                name: "OvertimeRules",
                table: "contracts");

            migrationBuilder.DropColumn(
                name: "ProbationPeriodMonths",
                table: "contracts");

            migrationBuilder.DropColumn(
                name: "VacationDaysPerYear",
                table: "contracts");

            migrationBuilder.DropColumn(
                name: "WeeklyHours",
                table: "contracts");
        }
    }
}
