using System.Collections.Generic; using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace RhSolutions.Api.Migrations { /// public partial class Init : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Products", columns: table => new { Id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), ProductSku = table.Column(type: "text", nullable: true), DeprecatedSkus = table.Column>(type: "text[]", nullable: false), Name = table.Column(type: "text", nullable: false), ProductLine = table.Column(type: "text", nullable: true), IsOnWarehouse = table.Column(type: "boolean", nullable: true), ProductMeasure = table.Column(type: "integer", nullable: false), DeliveryMakeUp = table.Column(type: "double precision", nullable: true), Price = table.Column(type: "numeric(8,2)", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Products", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Products"); } } }