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