#nullable disable using System; using Microsoft.EntityFrameworkCore.Migrations; namespace CleanArchitecture.Infrastructure.Migrations.EventStoreDb; /// public partial class AddEventStore : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( "StoredDomainEvents", 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), Action = table.Column("varchar(100)", nullable: false), CreationDate = table.Column("datetime2", nullable: false) }, constraints: table => { table.PrimaryKey("PK_StoredDomainEvents", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( "StoredDomainEvents"); } }