gehgassi_backend/gehGassi.Persistence/Migrations/20230516084519_PublicWalkRequestNotificationAdded.cs

49 lines
2.4 KiB
C#

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