using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace line_gestao_api.Migrations { /// public partial class AddTrocaNumeroLines : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "TrocaNumeroLines", 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), DataTroca = table.Column(type: "timestamp with time zone", nullable: true), Motivo = table.Column(type: "text", nullable: true), Observacao = 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_TrocaNumeroLines", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "TrocaNumeroLines"); } } }