963 lines
33 KiB
C#
963 lines
33 KiB
C#
// <auto-generated />
|
|
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<System.Guid>", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<string>("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<System.Guid>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("RoleId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetRoleClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("integer");
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AspNetUserClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b =>
|
|
{
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ProviderKey")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("ProviderDisplayName")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("LoginProvider", "ProviderKey");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AspNetUserLogins", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b =>
|
|
{
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("RoleId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetUserRoles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<System.Guid>", b =>
|
|
{
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Value")
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
b.ToTable("AspNetUserTokens", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("line_gestao_api.Models.ApplicationUser", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<bool>("EmailConfirmed")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<bool>("LockoutEnabled")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(120)
|
|
.HasColumnType("character varying(120)");
|
|
|
|
b.Property<string>("NormalizedEmail")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("character varying(256)");
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<string>("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.BillingClient", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Aparelho")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Cliente")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("character varying(255)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("FormaPagamento")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<decimal?>("FranquiaLine")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("FranquiaVivo")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<int>("Item")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<decimal?>("Lucro")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<int?>("QtdLinhas")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Tipo")
|
|
.IsRequired()
|
|
.HasMaxLength(2)
|
|
.HasColumnType("character varying(2)");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<decimal?>("ValorContratoLine")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("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.MobileLine", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Cedente")
|
|
.HasMaxLength(150)
|
|
.HasColumnType("character varying(150)");
|
|
|
|
b.Property<string>("Chip")
|
|
.HasMaxLength(40)
|
|
.HasColumnType("character varying(40)");
|
|
|
|
b.Property<string>("Cliente")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("character varying(200)");
|
|
|
|
b.Property<string>("Conta")
|
|
.HasMaxLength(80)
|
|
.HasColumnType("character varying(80)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DataBloqueio")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DataEntregaCliente")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DataEntregaOpera")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<decimal?>("Desconto")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("FranquiaGestao")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("FranquiaLine")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("FranquiaVivo")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("GestaoVozDados")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<int>("Item")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Linha")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("character varying(30)");
|
|
|
|
b.Property<decimal?>("LocacaoAp")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("Lucro")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<string>("Modalidade")
|
|
.HasMaxLength(80)
|
|
.HasColumnType("character varying(80)");
|
|
|
|
b.Property<string>("PlanoContrato")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("character varying(200)");
|
|
|
|
b.Property<decimal?>("Skeelo")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<string>("Skil")
|
|
.HasMaxLength(80)
|
|
.HasColumnType("character varying(80)");
|
|
|
|
b.Property<string>("Solicitante")
|
|
.HasMaxLength(150)
|
|
.HasColumnType("character varying(150)");
|
|
|
|
b.Property<string>("Status")
|
|
.HasMaxLength(80)
|
|
.HasColumnType("character varying(80)");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("Usuario")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("character varying(200)");
|
|
|
|
b.Property<decimal?>("ValorContratoLine")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("ValorContratoVivo")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("ValorPlanoVivo")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<string>("VencConta")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("character varying(50)");
|
|
|
|
b.Property<decimal?>("VivoGestaoDispositivo")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("VivoNewsPlus")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DataDaMureg")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("ICCID")
|
|
.HasMaxLength(40)
|
|
.HasColumnType("character varying(40)");
|
|
|
|
b.Property<int>("Item")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("LinhaAntiga")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("character varying(30)");
|
|
|
|
b.Property<string>("LinhaNova")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("character varying(30)");
|
|
|
|
b.Property<Guid>("MobileLineId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Cliente")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("Data")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("DedupKey")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int?>("DiasParaVencer")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<bool>("Lida")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<DateTime?>("LidaEm")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("Linha")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Mensagem")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime?>("ReferenciaData")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Tipo")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Titulo")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid?>("UserId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Usuario")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid?>("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.Tenant", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Tenants");
|
|
});
|
|
|
|
modelBuilder.Entity("line_gestao_api.Models.ChipVirgemLine", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("Item")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("NumeroDoChip")
|
|
.HasMaxLength(40)
|
|
.HasColumnType("character varying(40)");
|
|
|
|
b.Property<string>("Observacoes")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("character varying(500)");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<int>("Ano")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Chip")
|
|
.HasMaxLength(40)
|
|
.HasColumnType("character varying(40)");
|
|
|
|
b.Property<string>("ConteudoDaNf")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("character varying(255)");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DataDaNf")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DataDoRecebimento")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<bool>("IsResumo")
|
|
.HasColumnType("boolean");
|
|
|
|
b.Property<int>("Item")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("NotaFiscal")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("character varying(50)");
|
|
|
|
b.Property<string>("NumeroDaLinha")
|
|
.HasMaxLength(40)
|
|
.HasColumnType("character varying(40)");
|
|
|
|
b.Property<int?>("Quantidade")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Serial")
|
|
.HasMaxLength(80)
|
|
.HasColumnType("character varying(80)");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<decimal?>("ValorDaNf")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<decimal?>("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.TrocaNumeroLine", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DataTroca")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("ICCID")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("Item")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("LinhaAntiga")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("LinhaNova")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Motivo")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Observacao")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Celular")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Cliente")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Cpf")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DataNascimento")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("Email")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Endereco")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("Item")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Linha")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Rg")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("TelefoneFixo")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Cliente");
|
|
|
|
b.HasIndex("Cpf");
|
|
|
|
b.HasIndex("Email");
|
|
|
|
b.HasIndex("Item");
|
|
|
|
b.HasIndex("Linha");
|
|
|
|
b.HasIndex("TenantId");
|
|
|
|
b.ToTable("UserDatas");
|
|
});
|
|
|
|
modelBuilder.Entity("line_gestao_api.Models.VigenciaLine", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<string>("Cliente")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Conta")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DtEfetivacaoServico")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<DateTime?>("DtTerminoFidelizacao")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("Item")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("Linha")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("PlanoContrato")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<Guid>("TenantId")
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<decimal?>("Total")
|
|
.HasColumnType("numeric");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("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<System.Guid>", b =>
|
|
{
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<System.Guid>", b =>
|
|
{
|
|
b.HasOne("line_gestao_api.Models.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<System.Guid>", b =>
|
|
{
|
|
b.HasOne("line_gestao_api.Models.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<System.Guid>", b =>
|
|
{
|
|
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole<System.Guid>", 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<System.Guid>", 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.MobileLine", b =>
|
|
{
|
|
b.Navigation("Muregs");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|