using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace CleanArchitecture.Infrastructure.Migrations.DomainNotificationStoreDb { /// public partial class AddDomainNotificationStore : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "StoredDomainNotifications", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), Data = table.Column(type: "nvarchar(max)", nullable: false), User = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), CorrelationId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), AggregateId = table.Column(type: "uniqueidentifier", nullable: false), MessageType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), Timestamp = table.Column(type: "datetime2", nullable: false), Key = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false), Code = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), Version = table.Column(type: "int", nullable: false) }, constraints: table => { table.PrimaryKey("PK_StoredDomainNotifications", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "StoredDomainNotifications"); } } }