using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace barkmanapi.Migrations { /// public partial class postyFirst : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "inventory", columns: table => new { id = table.Column(type: "integer", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), name = table.Column(type: "text", nullable: false), brand = table.Column(type: "text", nullable: false), serial_number = table.Column(type: "text", nullable: true), status = table.Column(type: "text", nullable: true), rental_price = table.Column(type: "real", nullable: true), replacement_cost = table.Column(type: "real", nullable: true), notes = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("pk_inventory", x => x.id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "inventory"); } } }