Files
GestorWebFacturas/Backend/GestorFacturas.API/Migrations/20251210155728_AgregaAutenticacion.Designer.cs

208 lines
7.2 KiB
C#
Raw Normal View History

2025-12-12 15:40:34 -03:00
// <auto-generated />
using System;
using GestorFacturas.API.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace GestorFacturas.API.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20251210155728_AgregaAutenticacion")]
partial class AgregaAutenticacion
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.1")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("GestorFacturas.API.Models.Configuracion", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<bool>("AvisoMail")
.HasColumnType("bit");
b.Property<string>("DBClave")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("DBNombre")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<string>("DBServidor")
.IsRequired()
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<bool>("DBTrusted")
.HasColumnType("bit");
b.Property<string>("DBUsuario")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
b.Property<bool>("EnEjecucion")
.HasColumnType("bit");
b.Property<bool>("Estado")
.HasColumnType("bit");
b.Property<string>("HoraEjecucion")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("nvarchar(10)");
b.Property<string>("Periodicidad")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property<string>("RutaDestino")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("RutaFacturas")
.IsRequired()
.HasMaxLength(500)
.HasColumnType("nvarchar(500)");
b.Property<string>("SMTPClave")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("SMTPDestinatario")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<int>("SMTPPuerto")
.HasColumnType("int");
b.Property<bool>("SMTPSSL")
.HasColumnType("bit");
b.Property<string>("SMTPServidor")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("SMTPUsuario")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<DateTime?>("UltimaEjecucion")
.HasColumnType("datetime2");
b.Property<int>("ValorPeriodicidad")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("Configuraciones", (string)null);
b.HasData(
new
{
Id = 1,
AvisoMail = false,
DBNombre = "",
DBServidor = "TECNICA3",
DBTrusted = true,
EnEjecucion = false,
Estado = true,
HoraEjecucion = "00:00:00",
Periodicidad = "Dias",
RutaDestino = "",
RutaFacturas = "",
SMTPPuerto = 587,
SMTPSSL = true,
ValorPeriodicidad = 1
});
});
modelBuilder.Entity("GestorFacturas.API.Models.Evento", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<bool>("Enviado")
.HasColumnType("bit");
b.Property<DateTime>("Fecha")
.HasColumnType("datetime2");
b.Property<string>("Mensaje")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("Tipo")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.HasKey("Id");
b.HasIndex("Fecha");
b.HasIndex("Tipo");
b.ToTable("Eventos", (string)null);
});
modelBuilder.Entity("Usuario", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Nombre")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("PasswordHash")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("Username")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.HasKey("Id");
b.ToTable("Usuarios");
b.HasData(
new
{
Id = 1,
Nombre = "Administrador",
PasswordHash = "$2a$11$Z5.Cg.y.u.e.t.c.h.a.n.g.e.m.e",
Username = "admin"
});
});
#pragma warning restore 612, 618
}
}
}