44 lines
2.0 KiB
C#
44 lines
2.0 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace gehGassiApp.Data.Migrations
|
|
{
|
|
public partial class PublicWalkResponsesAdded : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "PublicWalkResponses",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
|
PublicWalkRequestId = table.Column<string>(type: "TEXT", maxLength: 128, nullable: true),
|
|
DogWalkerId = table.Column<string>(type: "TEXT", maxLength: 128, nullable: true),
|
|
Price = table.Column<decimal>(type: "TEXT", nullable: false),
|
|
Info = table.Column<string>(type: "TEXT", maxLength: 500, nullable: true),
|
|
Answer = table.Column<string>(type: "TEXT", maxLength: 500, nullable: true),
|
|
Status = table.Column<int>(type: "INTEGER", nullable: false),
|
|
CancellationReason = table.Column<string>(type: "TEXT", maxLength: 500, nullable: true),
|
|
Created = table.Column<long>(type: "INTEGER", nullable: false),
|
|
Version = table.Column<byte[]>(type: "BLOB", rowVersion: true, nullable: true),
|
|
UpdatedAt = table.Column<long>(type: "INTEGER", nullable: false),
|
|
Deleted = table.Column<bool>(type: "INTEGER", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_PublicWalkResponses", x => x.Id);
|
|
});
|
|
|
|
System.Diagnostics.Debug.WriteLine($"Migration PublicWalkResponsesAdded done");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "PublicWalkResponses");
|
|
}
|
|
}
|
|
}
|