using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace line_gestao_api.Migrations { /// public partial class AddMobileLines : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "MobileLines", columns: table => new { Id = table.Column(type: "uuid", nullable: false), Item = table.Column(type: "integer", nullable: false), Conta = table.Column(type: "character varying(80)", maxLength: 80, nullable: true), Linha = table.Column(type: "character varying(30)", maxLength: 30, nullable: true), Chip = table.Column(type: "character varying(40)", maxLength: 40, nullable: true), Cliente = table.Column(type: "character varying(200)", maxLength: 200, nullable: true), Usuario = table.Column(type: "character varying(200)", maxLength: 200, nullable: true), PlanoContrato = table.Column(type: "character varying(200)", maxLength: 200, nullable: true), FranquiaVivo = table.Column(type: "numeric", nullable: true), ValorPlanoVivo = table.Column(type: "numeric", nullable: true), GestaoVozDados = table.Column(type: "numeric", nullable: true), Skeelo = table.Column(type: "numeric", nullable: true), VivoNewsPlus = table.Column(type: "numeric", nullable: true), VivoTravelMundo = table.Column(type: "numeric", nullable: true), VivoGestaoDispositivo = table.Column(type: "numeric", nullable: true), ValorContratoVivo = table.Column(type: "numeric", nullable: true), FranquiaLine = table.Column(type: "numeric", nullable: true), FranquiaGestao = table.Column(type: "numeric", nullable: true), LocacaoAp = table.Column(type: "numeric", nullable: true), ValorContratoLine = table.Column(type: "numeric", nullable: true), Desconto = table.Column(type: "numeric", nullable: true), Lucro = table.Column(type: "numeric", nullable: true), Status = table.Column(type: "character varying(80)", maxLength: 80, nullable: true), DataBloqueio = table.Column(type: "timestamp with time zone", nullable: true), Skil = table.Column(type: "character varying(80)", maxLength: 80, nullable: true), Modalidade = table.Column(type: "character varying(80)", maxLength: 80, nullable: true), Cedente = table.Column(type: "character varying(150)", maxLength: 150, nullable: true), Solicitante = table.Column(type: "character varying(150)", maxLength: 150, nullable: true), DataEntregaOpera = table.Column(type: "timestamp with time zone", nullable: true), DataEntregaCliente = table.Column(type: "timestamp with time zone", nullable: true), VencConta = table.Column(type: "character varying(50)", maxLength: 50, 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_MobileLines", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_MobileLines_Linha", table: "MobileLines", column: "Linha", unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "MobileLines"); } } }