mirror of
https://github.com/alex289/CleanArchitecture.git
synced 2025-07-03 12:02:55 +00:00
44 lines
2.0 KiB
C#
44 lines
2.0 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace CleanArchitecture.Infrastructure.Migrations.DomainNotificationStoreDb
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddDomainNotificationStore : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "StoredDomainNotifications",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
|
Data = table.Column<string>(type: "text", nullable: false),
|
|
User = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false),
|
|
CorrelationId = table.Column<string>(type: "varchar(100)", maxLength: 100, nullable: false),
|
|
AggregateId = table.Column<Guid>(type: "uuid", nullable: false),
|
|
MessageType = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false),
|
|
Timestamp = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
Key = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false),
|
|
Value = table.Column<string>(type: "character varying(1024)", maxLength: 1024, nullable: false),
|
|
Code = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false),
|
|
Version = table.Column<int>(type: "integer", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_StoredDomainNotifications", x => x.Id);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "StoredDomainNotifications");
|
|
}
|
|
}
|
|
}
|