using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace line_gestao_api.Migrations { /// public partial class AddMuregLines : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "MuregLines", columns: table => new { Id = table.Column(type: "uuid", nullable: false), Item = table.Column(type: "integer", nullable: false), LinhaAntiga = table.Column(type: "text", nullable: true), LinhaNova = table.Column(type: "text", nullable: true), ICCID = table.Column(type: "text", nullable: true), DataDaMureg = table.Column(type: "timestamp with time zone", nullable: true), Cliente = table.Column(type: "text", nullable: true), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false), UpdatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_MuregLines", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_MuregLines_Cliente", table: "MuregLines", column: "Cliente"); migrationBuilder.CreateIndex( name: "IX_MuregLines_ICCID", table: "MuregLines", column: "ICCID"); migrationBuilder.CreateIndex( name: "IX_MuregLines_Item", table: "MuregLines", column: "Item"); migrationBuilder.CreateIndex( name: "IX_MuregLines_LinhaNova", table: "MuregLines", column: "LinhaNova"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "MuregLines"); } } }