using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Email.Data.Migrations
{
    /// <inheritdoc />
    public partial class AddLocationToScanSummaryTemplate : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                schema: MigrationConstants.SchemaName,
                table: "Templates",
                keyColumns: ["Key", "Language"],
                keyValues: ["email.search-results.scan-summary", "en"],
                columns: ["Value"],
                values: [@"<table width=""100%"" cellpadding=""0"" cellspacing=""0"" border=""0"" style=""width: 100%; margin-bottom: 18px; border: 1px solid #dee2e6; border-collapse: collapse;"">
  <tr>
    <td bgcolor=""#f8f9fa"" style=""background-color: #f8f9fa; padding: 14px 16px; font-size: 13px; color: #495057;"">
      <div style=""margin-bottom: 8px;""><strong>Keywords used:</strong>&nbsp;{{keywordsHtml}}</div>
      <div style=""margin-bottom: 8px;""><strong>Location:</strong>&nbsp;{{location}}</div>
      <div><strong>Providers scanned:</strong>&nbsp;{{providers}}</div>
    </td>
  </tr>
</table>"]);

            migrationBuilder.UpdateData(
                schema: MigrationConstants.SchemaName,
                table: "Templates",
                keyColumns: ["Key", "Language"],
                keyValues: ["email.search-results.scan-summary", "ro"],
                columns: ["Value"],
                values: [@"<table width=""100%"" cellpadding=""0"" cellspacing=""0"" border=""0"" style=""width: 100%; margin-bottom: 18px; border: 1px solid #dee2e6; border-collapse: collapse;"">
  <tr>
    <td bgcolor=""#f8f9fa"" style=""background-color: #f8f9fa; padding: 14px 16px; font-size: 13px; color: #495057;"">
      <div style=""margin-bottom: 8px;""><strong>Cuvinte cheie folosite:</strong>&nbsp;{{keywordsHtml}}</div>
      <div style=""margin-bottom: 8px;""><strong>Locație căutată:</strong>&nbsp;{{location}}</div>
      <div><strong>Furnizori scanați:</strong>&nbsp;{{providers}}</div>
    </td>
  </tr>
</table>"]);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                schema: MigrationConstants.SchemaName,
                table: "Templates",
                keyColumns: ["Key", "Language"],
                keyValues: ["email.search-results.scan-summary", "en"],
                columns: ["Value"],
                values: [@"<table width=""100%"" cellpadding=""0"" cellspacing=""0"" border=""0"" style=""width: 100%; margin-bottom: 18px; border: 1px solid #dee2e6; border-collapse: collapse;"">
  <tr>
    <td bgcolor=""#f8f9fa"" style=""background-color: #f8f9fa; padding: 14px 16px; font-size: 13px; color: #495057;"">
      <div style=""margin-bottom: 8px;""><strong>Keywords used:</strong>&nbsp;{{keywordsHtml}}</div>
      <div><strong>Providers scanned:</strong>&nbsp;{{providers}}</div>
    </td>
  </tr>
</table>"]);

            migrationBuilder.UpdateData(
                schema: MigrationConstants.SchemaName,
                table: "Templates",
                keyColumns: ["Key", "Language"],
                keyValues: ["email.search-results.scan-summary", "ro"],
                columns: ["Value"],
                values: [@"<table width=""100%"" cellpadding=""0"" cellspacing=""0"" border=""0"" style=""width: 100%; margin-bottom: 18px; border: 1px solid #dee2e6; border-collapse: collapse;"">
  <tr>
    <td bgcolor=""#f8f9fa"" style=""background-color: #f8f9fa; padding: 14px 16px; font-size: 13px; color: #495057;"">
      <div style=""margin-bottom: 8px;""><strong>Cuvinte cheie folosite:</strong>&nbsp;{{keywordsHtml}}</div>
      <div><strong>Furnizori scanați:</strong>&nbsp;{{providers}}</div>
    </td>
  </tr>
</table>"]);
        }
    }
}
