//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using line_gestao_api.Data;
#nullable disable
namespace line_gestao_api.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20260112191043_RemoveParcelamento")]
partial class RemoveParcelamento
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("line_gestao_api.Models.BillingClient", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Aparelho")
.HasColumnType("text");
b.Property("Cliente")
.IsRequired()
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("FormaPagamento")
.HasColumnType("text");
b.Property("FranquiaLine")
.HasColumnType("numeric");
b.Property("FranquiaVivo")
.HasColumnType("numeric");
b.Property("Item")
.HasColumnType("integer");
b.Property("Lucro")
.HasColumnType("numeric");
b.Property("QtdLinhas")
.HasColumnType("integer");
b.Property("Tipo")
.IsRequired()
.HasMaxLength(2)
.HasColumnType("character varying(2)");
b.Property("UpdatedAt")
.HasColumnType("timestamp with time zone");
b.Property("ValorContratoLine")
.HasColumnType("numeric");
b.Property("ValorContratoVivo")
.HasColumnType("numeric");
b.HasKey("Id");
b.HasIndex("Cliente");
b.HasIndex("Item");
b.HasIndex("Tipo");
b.HasIndex("Tipo", "Cliente");
b.ToTable("billing_clients", (string)null);
});
modelBuilder.Entity("line_gestao_api.Models.MobileLine", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Cedente")
.HasMaxLength(150)
.HasColumnType("character varying(150)");
b.Property("Chip")
.HasMaxLength(40)
.HasColumnType("character varying(40)");
b.Property("Cliente")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("Conta")
.HasMaxLength(80)
.HasColumnType("character varying(80)");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("DataBloqueio")
.HasColumnType("timestamp with time zone");
b.Property("DataEntregaCliente")
.HasColumnType("timestamp with time zone");
b.Property("DataEntregaOpera")
.HasColumnType("timestamp with time zone");
b.Property("Desconto")
.HasColumnType("numeric");
b.Property("FranquiaGestao")
.HasColumnType("numeric");
b.Property("FranquiaLine")
.HasColumnType("numeric");
b.Property("FranquiaVivo")
.HasColumnType("numeric");
b.Property("GestaoVozDados")
.HasColumnType("numeric");
b.Property("Item")
.HasColumnType("integer");
b.Property("Linha")
.HasMaxLength(30)
.HasColumnType("character varying(30)");
b.Property("LocacaoAp")
.HasColumnType("numeric");
b.Property("Lucro")
.HasColumnType("numeric");
b.Property("Modalidade")
.HasMaxLength(80)
.HasColumnType("character varying(80)");
b.Property("PlanoContrato")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("Skeelo")
.HasColumnType("numeric");
b.Property("Skil")
.HasMaxLength(80)
.HasColumnType("character varying(80)");
b.Property("Solicitante")
.HasMaxLength(150)
.HasColumnType("character varying(150)");
b.Property("Status")
.HasMaxLength(80)
.HasColumnType("character varying(80)");
b.Property("UpdatedAt")
.HasColumnType("timestamp with time zone");
b.Property("Usuario")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("ValorContratoLine")
.HasColumnType("numeric");
b.Property("ValorContratoVivo")
.HasColumnType("numeric");
b.Property("ValorPlanoVivo")
.HasColumnType("numeric");
b.Property("VencConta")
.HasMaxLength(50)
.HasColumnType("character varying(50)");
b.Property("VivoGestaoDispositivo")
.HasColumnType("numeric");
b.Property("VivoNewsPlus")
.HasColumnType("numeric");
b.Property("VivoTravelMundo")
.HasColumnType("numeric");
b.HasKey("Id");
b.HasIndex("Linha")
.IsUnique();
b.ToTable("MobileLines");
});
modelBuilder.Entity("line_gestao_api.Models.MuregLine", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Cliente")
.HasColumnType("text");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("DataDaMureg")
.HasColumnType("timestamp with time zone");
b.Property("ICCID")
.HasColumnType("text");
b.Property("Item")
.HasColumnType("integer");
b.Property("LinhaAntiga")
.HasColumnType("text");
b.Property("LinhaNova")
.HasColumnType("text");
b.Property("UpdatedAt")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.HasIndex("Cliente");
b.HasIndex("ICCID");
b.HasIndex("Item");
b.HasIndex("LinhaNova");
b.ToTable("MuregLines");
});
modelBuilder.Entity("line_gestao_api.Models.TrocaNumeroLine", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("DataTroca")
.HasColumnType("timestamp with time zone");
b.Property("ICCID")
.HasColumnType("text");
b.Property("Item")
.HasColumnType("integer");
b.Property("LinhaAntiga")
.HasColumnType("text");
b.Property("LinhaNova")
.HasColumnType("text");
b.Property("Motivo")
.HasColumnType("text");
b.Property("Observacao")
.HasColumnType("text");
b.Property("UpdatedAt")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.ToTable("TrocaNumeroLines");
});
modelBuilder.Entity("line_gestao_api.Models.User", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("Email")
.IsRequired()
.HasMaxLength(120)
.HasColumnType("character varying(120)");
b.Property("Name")
.IsRequired()
.HasMaxLength(120)
.HasColumnType("character varying(120)");
b.Property("PasswordHash")
.IsRequired()
.HasColumnType("text");
b.Property("Phone")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)");
b.HasKey("Id");
b.HasIndex("Email")
.IsUnique();
b.ToTable("Users");
});
modelBuilder.Entity("line_gestao_api.Models.UserData", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Celular")
.HasColumnType("text");
b.Property("Cliente")
.HasColumnType("text");
b.Property("Cpf")
.HasColumnType("text");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("DataNascimento")
.HasColumnType("timestamp with time zone");
b.Property("Email")
.HasColumnType("text");
b.Property("Endereco")
.HasColumnType("text");
b.Property("Item")
.HasColumnType("integer");
b.Property("Linha")
.HasColumnType("text");
b.Property("Rg")
.HasColumnType("text");
b.Property("TelefoneFixo")
.HasColumnType("text");
b.Property("UpdatedAt")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.ToTable("UserDatas");
});
modelBuilder.Entity("line_gestao_api.Models.VigenciaLine", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Cliente")
.HasColumnType("text");
b.Property("Conta")
.HasColumnType("text");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("DtEfetivacaoServico")
.HasColumnType("timestamp with time zone");
b.Property("DtTerminoFidelizacao")
.HasColumnType("timestamp with time zone");
b.Property("Item")
.HasColumnType("integer");
b.Property("Linha")
.HasColumnType("text");
b.Property("PlanoContrato")
.HasColumnType("text");
b.Property("Total")
.HasColumnType("numeric");
b.Property("UpdatedAt")
.HasColumnType("timestamp with time zone");
b.Property("Usuario")
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("VigenciaLines");
});
#pragma warning restore 612, 618
}
}
}