// 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("20251217170445_AddMobileLines")] partial class AddMobileLines { /// 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.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.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"); }); #pragma warning restore 612, 618 } } }