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: "uuid", nullable: false), Data = table.Column(type: "text", nullable: false), User = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), CorrelationId = table.Column(type: "varchar(100)", maxLength: 100, nullable: false), AggregateId = table.Column(type: "uuid", nullable: false), MessageType = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), Timestamp = table.Column(type: "timestamp with time zone", nullable: false), Key = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), Value = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false), Code = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), Version = table.Column(type: "integer", nullable: false) }, constraints: table => { table.PrimaryKey("PK_StoredDomainNotifications", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "StoredDomainNotifications"); } } }