using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LiteCharms.Infrastructure.Database.Migrations
{
///
public partial class AddedNotifications : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Notification",
columns: table => new
{
Id = table.Column(type: "uuid", nullable: false),
CreatedAt = table.Column(type: "timestamp with time zone", nullable: false),
Direction = table.Column(type: "integer", nullable: false),
Author = table.Column(type: "text", nullable: false),
Title = table.Column(type: "text", nullable: false),
Description = table.Column(type: "text", nullable: false),
Platform = table.Column(type: "text", nullable: false),
PlatformAddress = table.Column(type: "text", nullable: false),
CorrelationId = table.Column(type: "text", nullable: false),
CorrelationIdType = table.Column(type: "text", nullable: false),
IsInternal = table.Column(type: "boolean", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Notification", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Notification");
}
}
}