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(type: "TEXT", nullable: false), Username = table.Column(type: "TEXT", nullable: false), IsSubscribed = table.Column(type: "INTEGER", nullable: false), IsMember = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_YouTubeViewers", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "YouTubeViewers"); } } }