using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace gehGassi.Persistence.Migrations
{
///
public partial class SystemMessagesToSendAdded : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "SystemMessagesToSend",
columns: table => new
{
Id = table.Column(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Title = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false),
Message = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: false),
AppUserCount = table.Column(type: "int", nullable: false),
SentCount = table.Column(type: "int", nullable: false),
ToSendDate = table.Column(type: "datetimeoffset", nullable: true),
HasBeenSent = table.Column(type: "bit", nullable: false),
SentDate = table.Column(type: "datetimeoffset", nullable: true),
SentBy = table.Column(type: "nvarchar(255)", maxLength: 255, nullable: true),
AppUserType = table.Column(type: "int", nullable: false),
Country = table.Column(type: "nvarchar(2)", maxLength: 2, nullable: true),
State = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
City = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
Zip = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true),
VerifiedOnly = table.Column(type: "bit", nullable: false),
Sex = table.Column(type: "int", nullable: true),
Created = table.Column(type: "datetimeoffset", nullable: false),
CreatedBy = table.Column(type: "nvarchar(max)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_SystemMessagesToSend", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "SystemMessagesToSend");
}
}
}