using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Persistence.Database.Postgres.Migrations
{
///
public partial class Add_ChangeLog : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ChangeLog",
columns: table => new
{
Id = table.Column(type: "uuid", nullable: false),
IdDiscriminator = table.Column(type: "uuid", nullable: false),
IdAuthor = table.Column(type: "uuid", nullable: false),
IdEditor = table.Column(type: "uuid", nullable: true),
Creation = table.Column(type: "timestamp with time zone", nullable: false),
Obsolete = table.Column(type: "timestamp with time zone", nullable: true),
IdNext = table.Column(type: "uuid", nullable: true),
DepthStart = table.Column(type: "double precision", nullable: false),
DepthEnd = table.Column(type: "double precision", nullable: false),
IdSection = table.Column(type: "uuid", nullable: false),
Value = table.Column>(type: "jsonb", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ChangeLog", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ChangeLog");
}
}
}