// 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("20260205151645_AddResumoReservaTotalGeral")] partial class AddResumoReservaTotalGeral { /// 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("Microsoft.AspNetCore.Identity.IdentityRole", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("text"); b.Property("Name") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("NormalizedName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasDatabaseName("RoleNameIndex"); b.ToTable("AspNetRoles", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClaimType") .HasColumnType("text"); b.Property("ClaimValue") .HasColumnType("text"); b.Property("RoleId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("RoleId"); b.ToTable("AspNetRoleClaims", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer"); NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); b.Property("ClaimType") .HasColumnType("text"); b.Property("ClaimValue") .HasColumnType("text"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("AspNetUserClaims", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.Property("LoginProvider") .HasColumnType("text"); b.Property("ProviderKey") .HasColumnType("text"); b.Property("ProviderDisplayName") .HasColumnType("text"); b.Property("UserId") .HasColumnType("uuid"); b.HasKey("LoginProvider", "ProviderKey"); b.HasIndex("UserId"); b.ToTable("AspNetUserLogins", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.Property("UserId") .HasColumnType("uuid"); b.Property("RoleId") .HasColumnType("uuid"); b.HasKey("UserId", "RoleId"); b.HasIndex("RoleId"); b.ToTable("AspNetUserRoles", (string)null); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.Property("UserId") .HasColumnType("uuid"); b.Property("LoginProvider") .HasColumnType("text"); b.Property("Name") .HasColumnType("text"); b.Property("Value") .HasColumnType("text"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens", (string)null); }); modelBuilder.Entity("line_gestao_api.Models.ApplicationUser", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AccessFailedCount") .HasColumnType("integer"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Email") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("EmailConfirmed") .HasColumnType("boolean"); b.Property("IsActive") .HasColumnType("boolean"); b.Property("LockoutEnabled") .HasColumnType("boolean"); b.Property("LockoutEnd") .HasColumnType("timestamp with time zone"); b.Property("Name") .IsRequired() .HasMaxLength(120) .HasColumnType("character varying(120)"); b.Property("NormalizedEmail") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("NormalizedUserName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.Property("PasswordHash") .HasColumnType("text"); b.Property("PhoneNumber") .HasColumnType("text"); b.Property("PhoneNumberConfirmed") .HasColumnType("boolean"); b.Property("SecurityStamp") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("TwoFactorEnabled") .HasColumnType("boolean"); b.Property("UserName") .HasMaxLength(256) .HasColumnType("character varying(256)"); b.HasKey("Id"); b.HasIndex("NormalizedEmail") .HasDatabaseName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() .HasDatabaseName("UserNameIndex"); b.HasIndex("TenantId", "NormalizedEmail") .IsUnique(); b.ToTable("AspNetUsers", (string)null); }); modelBuilder.Entity("line_gestao_api.Models.AuditLog", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Action") .IsRequired() .HasMaxLength(20) .HasColumnType("character varying(20)"); b.Property("ChangesJson") .IsRequired() .HasColumnType("jsonb"); b.Property("EntityId") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("EntityLabel") .HasMaxLength(255) .HasColumnType("character varying(255)"); b.Property("EntityName") .IsRequired() .HasMaxLength(120) .HasColumnType("character varying(120)"); b.Property("IpAddress") .HasMaxLength(80) .HasColumnType("character varying(80)"); b.Property("OccurredAtUtc") .HasColumnType("timestamp with time zone"); b.Property("Page") .IsRequired() .HasMaxLength(80) .HasColumnType("character varying(80)"); b.Property("RequestMethod") .HasMaxLength(10) .HasColumnType("character varying(10)"); b.Property("RequestPath") .HasMaxLength(255) .HasColumnType("character varying(255)"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("UserEmail") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property("UserId") .HasColumnType("uuid"); b.Property("UserName") .HasMaxLength(200) .HasColumnType("character varying(200)"); b.HasKey("Id"); b.HasIndex("EntityName"); b.HasIndex("OccurredAtUtc"); b.HasIndex("Page"); b.HasIndex("TenantId"); b.HasIndex("UserId"); b.ToTable("AuditLogs"); }); 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("TenantId") .HasColumnType("uuid"); 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("TenantId"); b.HasIndex("Tipo"); b.HasIndex("Tipo", "Cliente"); b.ToTable("billing_clients", (string)null); }); modelBuilder.Entity("line_gestao_api.Models.ChipVirgemLine", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Item") .HasColumnType("integer"); b.Property("NumeroDoChip") .HasMaxLength(40) .HasColumnType("character varying(40)"); b.Property("Observacoes") .HasMaxLength(500) .HasColumnType("character varying(500)"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("Item"); b.HasIndex("NumeroDoChip"); b.HasIndex("TenantId"); b.ToTable("ChipVirgemLines"); }); modelBuilder.Entity("line_gestao_api.Models.ControleRecebidoLine", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Ano") .HasColumnType("integer"); b.Property("Chip") .HasMaxLength(40) .HasColumnType("character varying(40)"); b.Property("ConteudoDaNf") .HasMaxLength(255) .HasColumnType("character varying(255)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DataDaNf") .HasColumnType("timestamp with time zone"); b.Property("DataDoRecebimento") .HasColumnType("timestamp with time zone"); b.Property("IsResumo") .HasColumnType("boolean"); b.Property("Item") .HasColumnType("integer"); b.Property("NotaFiscal") .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("NumeroDaLinha") .HasMaxLength(40) .HasColumnType("character varying(40)"); b.Property("Quantidade") .HasColumnType("integer"); b.Property("Serial") .HasMaxLength(80) .HasColumnType("character varying(80)"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("ValorDaNf") .HasColumnType("numeric"); b.Property("ValorUnit") .HasColumnType("numeric"); b.HasKey("Id"); b.HasIndex("Ano"); b.HasIndex("Chip"); b.HasIndex("DataDaNf"); b.HasIndex("DataDoRecebimento"); b.HasIndex("Item"); b.HasIndex("NotaFiscal"); b.HasIndex("NumeroDaLinha"); b.HasIndex("Serial"); b.HasIndex("TenantId"); b.ToTable("ControleRecebidoLines"); }); 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("TenantId") .HasColumnType("uuid"); b.Property("TipoDeChip") .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("VivoSync") .HasColumnType("numeric"); b.Property("VivoTravelMundo") .HasColumnType("numeric"); b.HasKey("Id"); b.HasIndex("Chip"); b.HasIndex("Cliente"); b.HasIndex("Skil"); b.HasIndex("Status"); b.HasIndex("Usuario"); b.HasIndex("TenantId", "Linha") .IsUnique(); b.ToTable("MobileLines"); }); modelBuilder.Entity("line_gestao_api.Models.MuregLine", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DataDaMureg") .HasColumnType("timestamp with time zone"); b.Property("ICCID") .HasMaxLength(40) .HasColumnType("character varying(40)"); b.Property("Item") .HasColumnType("integer"); b.Property("LinhaAntiga") .HasMaxLength(30) .HasColumnType("character varying(30)"); b.Property("LinhaNova") .HasMaxLength(30) .HasColumnType("character varying(30)"); b.Property("MobileLineId") .HasColumnType("uuid"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("ICCID"); b.HasIndex("Item"); b.HasIndex("LinhaAntiga"); b.HasIndex("LinhaNova"); b.HasIndex("MobileLineId"); b.HasIndex("TenantId"); b.ToTable("MuregLines"); }); modelBuilder.Entity("line_gestao_api.Models.Notification", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Cliente") .HasColumnType("text"); b.Property("Data") .HasColumnType("timestamp with time zone"); b.Property("DedupKey") .IsRequired() .HasColumnType("text"); b.Property("DiasParaVencer") .HasColumnType("integer"); b.Property("Lida") .HasColumnType("boolean"); b.Property("LidaEm") .HasColumnType("timestamp with time zone"); b.Property("Linha") .HasColumnType("text"); b.Property("Mensagem") .IsRequired() .HasColumnType("text"); b.Property("ReferenciaData") .HasColumnType("timestamp with time zone"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("Tipo") .IsRequired() .HasColumnType("text"); b.Property("Titulo") .IsRequired() .HasColumnType("text"); b.Property("UserId") .HasColumnType("uuid"); b.Property("Usuario") .HasColumnType("text"); b.Property("VigenciaLineId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("Cliente"); b.HasIndex("Data"); b.HasIndex("DedupKey") .IsUnique(); b.HasIndex("Lida"); b.HasIndex("TenantId"); b.HasIndex("UserId"); b.HasIndex("VigenciaLineId"); b.ToTable("Notifications"); }); modelBuilder.Entity("line_gestao_api.Models.ParcelamentoLine", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AnoRef") .HasColumnType("integer"); b.Property("Cliente") .HasMaxLength(120) .HasColumnType("character varying(120)"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Desconto") .HasPrecision(18, 2) .HasColumnType("numeric(18,2)"); b.Property("Item") .HasColumnType("integer"); b.Property("Linha") .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("ParcelaAtual") .HasColumnType("integer"); b.Property("QtParcelas") .HasMaxLength(32) .HasColumnType("character varying(32)"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("TotalParcelas") .HasColumnType("integer"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("ValorCheio") .HasPrecision(18, 2) .HasColumnType("numeric(18,2)"); b.Property("ValorComDesconto") .HasPrecision(18, 2) .HasColumnType("numeric(18,2)"); b.HasKey("Id"); b.HasIndex("Linha"); b.HasIndex("TenantId"); b.HasIndex("AnoRef", "Item") .IsUnique(); b.ToTable("ParcelamentoLines"); }); modelBuilder.Entity("line_gestao_api.Models.ParcelamentoMonthValue", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Competencia") .HasColumnType("date"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("ParcelamentoLineId") .HasColumnType("uuid"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("Valor") .HasPrecision(18, 2) .HasColumnType("numeric(18,2)"); b.HasKey("Id"); b.HasIndex("TenantId"); b.HasIndex("ParcelamentoLineId", "Competencia") .IsUnique(); b.ToTable("ParcelamentoMonthValues"); }); modelBuilder.Entity("line_gestao_api.Models.ResumoClienteEspecial", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Nome") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("Valor") .HasColumnType("numeric"); b.HasKey("Id"); b.ToTable("ResumoClienteEspeciais"); }); modelBuilder.Entity("line_gestao_api.Models.ResumoLineTotais", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("LucroTotalLine") .HasColumnType("numeric"); b.Property("QtdLinhas") .HasColumnType("integer"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("Tipo") .HasColumnType("text"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("ValorTotalLine") .HasColumnType("numeric"); b.HasKey("Id"); b.ToTable("ResumoLineTotais"); }); modelBuilder.Entity("line_gestao_api.Models.ResumoMacrophonyPlan", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FranquiaGb") .HasColumnType("numeric"); b.Property("Gb") .HasColumnType("numeric"); b.Property("PlanoContrato") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("TotalLinhas") .HasColumnType("integer"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("ValorIndividualComSvas") .HasColumnType("numeric"); b.Property("ValorTotal") .HasColumnType("numeric"); b.Property("VivoTravel") .HasColumnType("boolean"); b.HasKey("Id"); b.ToTable("ResumoMacrophonyPlans"); }); modelBuilder.Entity("line_gestao_api.Models.ResumoMacrophonyTotal", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FranquiaGbTotal") .HasColumnType("numeric"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("TotalLinhasTotal") .HasColumnType("integer"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("ValorTotal") .HasColumnType("numeric"); b.HasKey("Id"); b.ToTable("ResumoMacrophonyTotals"); }); modelBuilder.Entity("line_gestao_api.Models.ResumoPlanoContratoResumo", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FranquiaGb") .HasColumnType("numeric"); b.Property("Gb") .HasColumnType("numeric"); b.Property("PlanoContrato") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("TotalLinhas") .HasColumnType("integer"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("ValorIndividualComSvas") .HasColumnType("numeric"); b.Property("ValorTotal") .HasColumnType("numeric"); b.HasKey("Id"); b.ToTable("ResumoPlanoContratoResumos"); }); modelBuilder.Entity("line_gestao_api.Models.ResumoPlanoContratoTotal", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("ValorTotal") .HasColumnType("numeric"); b.HasKey("Id"); b.ToTable("ResumoPlanoContratoTotals"); }); modelBuilder.Entity("line_gestao_api.Models.ResumoReservaLine", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Ddd") .HasColumnType("text"); b.Property("FranquiaGb") .HasColumnType("numeric"); b.Property("QtdLinhas") .HasColumnType("integer"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("Total") .HasColumnType("numeric"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("ResumoReservaLines"); }); modelBuilder.Entity("line_gestao_api.Models.ResumoReservaTotal", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("QtdLinhasTotal") .HasColumnType("integer"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("Total") .HasColumnType("numeric"); b.Property("TotalGeralLinhasReserva") .HasColumnType("integer"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.ToTable("ResumoReservaTotals"); }); modelBuilder.Entity("line_gestao_api.Models.ResumoVivoLineResumo", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Cliente") .HasColumnType("text"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FranquiaLine") .HasColumnType("numeric"); b.Property("FranquiaTotal") .HasColumnType("numeric"); b.Property("Lucro") .HasColumnType("numeric"); b.Property("QtdLinhas") .HasColumnType("integer"); b.Property("Skil") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("ValorContratoLine") .HasColumnType("numeric"); b.Property("ValorContratoVivo") .HasColumnType("numeric"); b.HasKey("Id"); b.ToTable("ResumoVivoLineResumos"); }); modelBuilder.Entity("line_gestao_api.Models.ResumoVivoLineTotal", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("FranquiaLine") .HasColumnType("numeric"); b.Property("FranquiaTotal") .HasColumnType("numeric"); b.Property("Lucro") .HasColumnType("numeric"); b.Property("QtdLinhasTotal") .HasColumnType("integer"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("ValorContratoLine") .HasColumnType("numeric"); b.Property("ValorContratoVivo") .HasColumnType("numeric"); b.HasKey("Id"); b.ToTable("ResumoVivoLineTotals"); }); modelBuilder.Entity("line_gestao_api.Models.Tenant", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("Name") .IsRequired() .HasColumnType("text"); b.HasKey("Id"); b.ToTable("Tenants"); }); 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("TenantId") .HasColumnType("uuid"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("DataTroca"); b.HasIndex("ICCID"); b.HasIndex("Item"); b.HasIndex("LinhaAntiga"); b.HasIndex("LinhaNova"); b.HasIndex("TenantId"); b.ToTable("TrocaNumeroLines"); }); 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("Cnpj") .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("Nome") .HasColumnType("text"); b.Property("RazaoSocial") .HasColumnType("text"); b.Property("Rg") .HasColumnType("text"); b.Property("TelefoneFixo") .HasColumnType("text"); b.Property("TenantId") .HasColumnType("uuid"); b.Property("TipoPessoa") .HasColumnType("text"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("Cliente"); b.HasIndex("Cnpj"); b.HasIndex("Cpf"); b.HasIndex("Email"); b.HasIndex("Item"); b.HasIndex("Linha"); b.HasIndex("Nome"); b.HasIndex("RazaoSocial"); b.HasIndex("TenantId"); b.HasIndex("TipoPessoa"); 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("TenantId") .HasColumnType("uuid"); b.Property("Total") .HasColumnType("numeric"); b.Property("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property("Usuario") .HasColumnType("text"); b.HasKey("Id"); b.HasIndex("Cliente"); b.HasIndex("DtTerminoFidelizacao"); b.HasIndex("Item"); b.HasIndex("Linha"); b.HasIndex("TenantId"); b.ToTable("VigenciaLines"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b => { b.HasOne("line_gestao_api.Models.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b => { b.HasOne("line_gestao_api.Models.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("line_gestao_api.Models.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b => { b.HasOne("line_gestao_api.Models.ApplicationUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("line_gestao_api.Models.MuregLine", b => { b.HasOne("line_gestao_api.Models.MobileLine", "MobileLine") .WithMany("Muregs") .HasForeignKey("MobileLineId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("MobileLine"); }); modelBuilder.Entity("line_gestao_api.Models.Notification", b => { b.HasOne("line_gestao_api.Models.ApplicationUser", "User") .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Restrict); b.HasOne("line_gestao_api.Models.VigenciaLine", "VigenciaLine") .WithMany() .HasForeignKey("VigenciaLineId") .OnDelete(DeleteBehavior.Restrict); b.Navigation("User"); b.Navigation("VigenciaLine"); }); modelBuilder.Entity("line_gestao_api.Models.ParcelamentoMonthValue", b => { b.HasOne("line_gestao_api.Models.ParcelamentoLine", "ParcelamentoLine") .WithMany("MonthValues") .HasForeignKey("ParcelamentoLineId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("ParcelamentoLine"); }); modelBuilder.Entity("line_gestao_api.Models.MobileLine", b => { b.Navigation("Muregs"); }); modelBuilder.Entity("line_gestao_api.Models.ParcelamentoLine", b => { b.Navigation("MonthValues"); }); #pragma warning restore 612, 618 } } }