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: "uuid", nullable: false), Data = table.Column(type: "text", nullable: false), User = table.Column(type: "varchar(100)", maxLength: 100, nullable: false), CorrelationId = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), AggregateId = table.Column(type: "uuid", nullable: false), Action = table.Column(type: "varchar(100)", nullable: false), CreationDate = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_StoredDomainEvents", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "StoredDomainEvents"); } } }