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