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