using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Webhooks.API.Migrations { public partial class Initial : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Subscriptions", columns: table => new { Id = table.Column(nullable: false) .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn), Type = table.Column(nullable: false), Date = table.Column(nullable: false), DestUrl = table.Column(nullable: true), Token = table.Column(nullable: true), UserId = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Subscriptions", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Subscriptions"); } } }