using System;
using Microsoft.EntityFrameworkCore.Migrations;
using NetTopologySuite.Geometries;
#nullable disable
namespace gehGassi.Persistence.Migrations
{
///
public partial class PublicWalkRequestNotificationAdded : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PublicWalkRequestNotifications",
columns: table => new
{
Id = table.Column(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
PublicWalkRequestId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
DogOwnerId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false),
PickupAddress_AddressLine1 = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
PickupAddress_AddressLine2 = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
PickupAddress_City = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
PickupAddress_Zip = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: true),
PickupAddress_State = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true),
PickupAddress_CountryCode = table.Column(type: "nvarchar(2)", maxLength: 2, nullable: true),
Location = table.Column(type: "geography", nullable: true),
SentCount = table.Column(type: "int", nullable: false),
HasBeenSent = table.Column(type: "bit", nullable: false),
SentDate = table.Column(type: "datetimeoffset", nullable: true),
Created = table.Column(type: "datetimeoffset", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PublicWalkRequestNotifications", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PublicWalkRequestNotifications");
}
}
}