using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TimetableDesigner.Backend.Services.Authentication.Database.Migrations
{
///
public partial class Outbox_Pattern : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Event",
columns: table => new
{
Id = table.Column(type: "uuid", nullable: false),
Payload = table.Column(type: "text", nullable: false),
PayloadType = table.Column(type: "text", nullable: false),
OccuredOn = table.Column(type: "timestamp with time zone", nullable: false),
ProcessedOn = table.Column(type: "timestamp with time zone", nullable: true),
RetryCount = table.Column(type: "bigint", nullable: false),
xmin = table.Column(type: "xid", rowVersion: true, nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Event", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_Event_Id",
table: "Event",
column: "Id",
unique: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Event");
}
}
}