using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Persistence.Database.Postgres.Migrations { /// public partial class SetpointMigration : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Setpoint", columns: table => new { Key = table.Column(type: "uuid", nullable: false, comment: "Ключ"), Created = table.Column(type: "timestamp with time zone", nullable: false, comment: "Дата изменения уставки"), Value = table.Column(type: "jsonb", nullable: false, comment: "Значение уставки"), IdUser = table.Column(type: "integer", nullable: false, comment: "Id автора последнего изменения") }, constraints: table => { table.PrimaryKey("PK_Setpoint", x => new { x.Key, x.Created }); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Setpoint"); } } }