using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Web.Migrations
{
///
public partial class SentEmailNewsletterModelAdded : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "SentNewsletterEamils",
columns: table => new
{
Id = table.Column(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
RecipientEmail = table.Column(type: "nvarchar(max)", nullable: true),
Subject = table.Column(type: "nvarchar(max)", nullable: true),
Body = table.Column(type: "nvarchar(max)", nullable: true),
SentDate = table.Column(type: "datetime2", nullable: false),
IsDelivered = table.Column(type: "bit", nullable: false),
IsOpened = table.Column(type: "bit", nullable: false),
IsClicked = table.Column(type: "bit", nullable: false),
IsBounced = table.Column(type: "bit", nullable: false),
IsSpam = table.Column(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SentNewsletterEamils", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "SentNewsletterEamils");
}
}
}