//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
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))]
partial class AppDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(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("ActorUserId")
.HasColumnType("uuid");
b.Property("ActorTenantId")
.HasColumnType("uuid");
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("MetadataJson")
.IsRequired()
.HasColumnType("jsonb");
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("TargetTenantId")
.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("ActorUserId");
b.HasIndex("ActorTenantId");
b.HasIndex("EntityName");
b.HasIndex("OccurredAtUtc");
b.HasIndex("Page");
b.HasIndex("TenantId");
b.HasIndex("TargetTenantId");
b.HasIndex("UserId");
b.ToTable("AuditLogs");
});
modelBuilder.Entity("line_gestao_api.Models.Aparelho", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Cor")
.HasMaxLength(80)
.HasColumnType("character varying(80)");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("Fabricante")
.HasMaxLength(120)
.HasColumnType("character varying(120)");
b.Property("Imei")
.HasMaxLength(80)
.HasColumnType("character varying(80)");
b.Property("Nome")
.HasMaxLength(160)
.HasColumnType("character varying(160)");
b.Property("NotaFiscalArquivoPath")
.HasMaxLength(500)
.HasColumnType("character varying(500)");
b.Property("ReciboArquivoPath")
.HasMaxLength(500)
.HasColumnType("character varying(500)");
b.Property("TenantId")
.HasColumnType("uuid");
b.Property("UpdatedAt")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.HasIndex("Imei");
b.HasIndex("TenantId");
b.HasIndex("TenantId", "Fabricante");
b.HasIndex("TenantId", "Nome", "Cor");
b.ToTable("Aparelhos");
});
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.ImportAuditIssue", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AuditRunId")
.HasColumnType("uuid");
b.Property("CanonicalValue")
.IsRequired()
.HasMaxLength(120)
.HasColumnType("character varying(120)");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("Entity")
.IsRequired()
.HasMaxLength(120)
.HasColumnType("character varying(120)");
b.Property("FieldName")
.IsRequired()
.HasMaxLength(120)
.HasColumnType("character varying(120)");
b.Property("Resolution")
.IsRequired()
.HasMaxLength(80)
.HasColumnType("character varying(80)");
b.Property("Severity")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)");
b.Property("SourceValue")
.HasMaxLength(120)
.HasColumnType("character varying(120)");
b.Property("TenantId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("AuditRunId");
b.HasIndex("Entity");
b.HasIndex("TenantId");
b.ToTable("ImportAuditIssues");
});
modelBuilder.Entity("line_gestao_api.Models.ImportAuditRun", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CanonicalTotalLinhas")
.HasColumnType("integer");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("FileName")
.HasMaxLength(260)
.HasColumnType("character varying(260)");
b.Property("ImportedAt")
.HasColumnType("timestamp with time zone");
b.Property("SourceMaxItemGeral")
.HasColumnType("integer");
b.Property("SourceValidCountGeral")
.HasColumnType("integer");
b.Property("Status")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)");
b.Property("TenantId")
.HasColumnType("uuid");
b.Property("UpdatedAt")
.HasColumnType("timestamp with time zone");
b.HasKey("Id");
b.HasIndex("ImportedAt");
b.HasIndex("Status");
b.HasIndex("TenantId");
b.ToTable("ImportAuditRuns");
});
modelBuilder.Entity("line_gestao_api.Models.MveAuditIssue", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AuditRunId")
.HasColumnType("uuid");
b.Property("ActionSuggestion")
.HasMaxLength(160)
.HasColumnType("character varying(160)");
b.Property("Applied")
.HasColumnType("boolean");
b.Property("AppliedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("CreatedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("DifferencesJson")
.IsRequired()
.HasColumnType("jsonb");
b.Property("IssueType")
.IsRequired()
.HasMaxLength(60)
.HasColumnType("character varying(60)");
b.Property("MobileLineId")
.HasColumnType("uuid");
b.Property("Notes")
.HasMaxLength(500)
.HasColumnType("character varying(500)");
b.Property("NumeroLinha")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("character varying(64)");
b.Property("ReportPlan")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("ReportSnapshotJson")
.IsRequired()
.HasColumnType("jsonb");
b.Property("ReportStatus")
.HasMaxLength(120)
.HasColumnType("character varying(120)");
b.Property("Severity")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)");
b.Property("SourceRowNumber")
.HasColumnType("integer");
b.Property("Situation")
.IsRequired()
.HasMaxLength(80)
.HasColumnType("character varying(80)");
b.Property("Syncable")
.HasColumnType("boolean");
b.Property("SystemPlan")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("SystemItem")
.HasColumnType("integer");
b.Property("SystemSnapshotJson")
.IsRequired()
.HasColumnType("jsonb");
b.Property("SystemStatus")
.HasMaxLength(120)
.HasColumnType("character varying(120)");
b.Property("TenantId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("AuditRunId");
b.HasIndex("IssueType");
b.HasIndex("NumeroLinha");
b.HasIndex("Syncable");
b.HasIndex("TenantId");
b.ToTable("MveAuditIssues");
});
modelBuilder.Entity("line_gestao_api.Models.MveAuditRun", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AppliedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("AppliedByUserEmail")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("AppliedByUserId")
.HasColumnType("uuid");
b.Property("AppliedByUserName")
.HasMaxLength(200)
.HasColumnType("character varying(200)");
b.Property("AppliedFieldsCount")
.HasColumnType("integer");
b.Property("AppliedIssuesCount")
.HasColumnType("integer");
b.Property("AppliedLinesCount")
.HasColumnType("integer");
b.Property("FileEncoding")
.HasMaxLength(40)
.HasColumnType("character varying(40)");
b.Property("FileHashSha256")
.HasMaxLength(64)
.HasColumnType("character varying(64)");
b.Property("FileName")
.HasMaxLength(260)
.HasColumnType("character varying(260)");
b.Property("ImportedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("Status")
.IsRequired()
.HasMaxLength(40)
.HasColumnType("character varying(40)");
b.Property("TenantId")
.HasColumnType("uuid");
b.Property("TotalConciliated")
.HasColumnType("integer");
b.Property("TotalDataDivergences")
.HasColumnType("integer");
b.Property("TotalDuplicateReportLines")
.HasColumnType("integer");
b.Property("TotalDuplicateSystemLines")
.HasColumnType("integer");
b.Property("TotalInvalidRows")
.HasColumnType("integer");
b.Property("TotalOnlyInReport")
.HasColumnType("integer");
b.Property("TotalOnlyInSystem")
.HasColumnType("integer");
b.Property("TotalReportLines")
.HasColumnType("integer");
b.Property("TotalStatusDivergences")
.HasColumnType("integer");
b.Property("TotalSyncableIssues")
.HasColumnType("integer");
b.Property("TotalSystemLines")
.HasColumnType("integer");
b.Property("TotalUnknownStatuses")
.HasColumnType("integer");
b.HasKey("Id");
b.HasIndex("ImportedAtUtc");
b.HasIndex("Status");
b.HasIndex("TenantId");
b.ToTable("MveAuditRuns");
});
modelBuilder.Entity("line_gestao_api.Models.MobileLine", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("AparelhoId")
.HasColumnType("uuid");
b.Property("Cedente")
.HasMaxLength(150)
.HasColumnType("character varying(150)");
b.Property("CentroDeCustos")
.HasMaxLength(180)
.HasColumnType("character varying(180)");
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("SetorId")
.HasColumnType("uuid");
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("AparelhoId");
b.HasIndex("Chip");
b.HasIndex("CentroDeCustos");
b.HasIndex("Cliente");
b.HasIndex("SetorId");
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.SolicitacaoLinha", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property("FranquiaLineAtual")
.HasColumnType("numeric");
b.Property