using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PARR.DAL.Migrations { /// public partial class TblHosts : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Hosts", columns: table => new { Id = table.Column(type: "uuid", nullable: false), DateCreated = table.Column(type: "timestamp with time zone", nullable: false), DateModified = table.Column(type: "timestamp with time zone", nullable: true), HostName = table.Column(type: "text", nullable: true), IP = table.Column(type: "text", nullable: false), Status = table.Column(type: "text", nullable: true), WorkGroup = table.Column(type: "text", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Hosts", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Hosts"); } } }