Files
YouTubeViewers/YouTubeViewers.EntityFramework/Migrations/20220819131646_Initial.cs
2022-08-22 15:56:12 +02:00

34 lines
1.1 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace YouTubeViewers.EntityFramework.Migrations
{
public partial class Initial : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "YouTubeViewers",
columns: table => new
{
Id = table.Column<Guid>(type: "TEXT", nullable: false),
Username = table.Column<string>(type: "TEXT", nullable: false),
IsSubscribed = table.Column<bool>(type: "INTEGER", nullable: false),
IsMember = table.Column<bool>(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_YouTubeViewers", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "YouTubeViewers");
}
}
}