using Email.Data;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Email.Data.Migrations
{
    /// <inheritdoc />
    public partial class AddManualJobLabelTemplate : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.InsertData(
                schema: MigrationConstants.SchemaName,
                table: "Templates",
                columns: ["Key", "Language", "Value", "Description"],
                values: ["email.match.manual-job-label", "en", "Manual job description", "Label used in the match email subject and body when no job URL was provided"]);

            migrationBuilder.InsertData(
                schema: MigrationConstants.SchemaName,
                table: "Templates",
                columns: ["Key", "Language", "Value", "Description"],
                values: ["email.match.manual-job-label", "ro", "Descriere manuală a jobului", "Etichetă folosită în subiectul și corpul emailului când nu a fost furnizat un URL de job"]);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                schema: MigrationConstants.SchemaName,
                table: "Templates",
                keyColumns: ["Key", "Language"],
                keyValues: ["email.match.manual-job-label", "en"]);

            migrationBuilder.DeleteData(
                schema: MigrationConstants.SchemaName,
                table: "Templates",
                keyColumns: ["Key", "Language"],
                keyValues: ["email.match.manual-job-label", "ro"]);
        }
    }
}
