gehgassi_app/gehGassiApp/gehGassiApp.Data/Migrations/20221101152530_WalkingTimesAdded.cs

41 lines
1.6 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace gehGassiApp.Data.Migrations
{
public partial class WalkingTimesAdded : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "WalkingTimes",
columns: table => new
{
Id = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
DogWalkerId = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
Day = table.Column<int>(type: "INTEGER", nullable: false),
Start = table.Column<long>(type: "INTEGER", nullable: false),
End = table.Column<long>(type: "INTEGER", nullable: false),
Enabled = table.Column<bool>(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_WalkingTimes", x => x.Id);
});
System.Diagnostics.Debug.WriteLine($"Migration WalkingTimesAdded done");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "WalkingTimes");
}
}
}