diff --git a/Asegasa.sln b/Asegasa.sln index 323b542..626e5c4 100644 --- a/Asegasa.sln +++ b/Asegasa.sln @@ -1,10 +1,16 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 -VisualStudioVersion = 17.14.36414.22 d17.14 +VisualStudioVersion = 17.14.36414.22 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WSAsegasa", "WSAsegasa\WSAsegasa.csproj", "{C891F2E3-60D2-449F-962A-BF78F58C67D6}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "bdAsegasa", "bdAsegasa\bdAsegasa.csproj", "{E42D668E-CB26-498B-89AF-8A205528C4EF}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "tsVeriFactu", "..\..\Comunes\tsVeriFactu\tsVeriFactu.csproj", "{DDFE8F31-9ED8-5C11-4E72-6CE96526C459}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "bdfactu", "..\Tecnosis\tsFactu\bdFactu\bdfactu.csproj", "{56D9C47A-1D6F-0C5B-2DB0-72EB359C1093}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +21,18 @@ Global {C891F2E3-60D2-449F-962A-BF78F58C67D6}.Debug|Any CPU.Build.0 = Debug|Any CPU {C891F2E3-60D2-449F-962A-BF78F58C67D6}.Release|Any CPU.ActiveCfg = Release|Any CPU {C891F2E3-60D2-449F-962A-BF78F58C67D6}.Release|Any CPU.Build.0 = Release|Any CPU + {E42D668E-CB26-498B-89AF-8A205528C4EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E42D668E-CB26-498B-89AF-8A205528C4EF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E42D668E-CB26-498B-89AF-8A205528C4EF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E42D668E-CB26-498B-89AF-8A205528C4EF}.Release|Any CPU.Build.0 = Release|Any CPU + {DDFE8F31-9ED8-5C11-4E72-6CE96526C459}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DDFE8F31-9ED8-5C11-4E72-6CE96526C459}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DDFE8F31-9ED8-5C11-4E72-6CE96526C459}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DDFE8F31-9ED8-5C11-4E72-6CE96526C459}.Release|Any CPU.Build.0 = Release|Any CPU + {56D9C47A-1D6F-0C5B-2DB0-72EB359C1093}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {56D9C47A-1D6F-0C5B-2DB0-72EB359C1093}.Debug|Any CPU.Build.0 = Debug|Any CPU + {56D9C47A-1D6F-0C5B-2DB0-72EB359C1093}.Release|Any CPU.ActiveCfg = Release|Any CPU + {56D9C47A-1D6F-0C5B-2DB0-72EB359C1093}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/WSAsegasa/Configuracion.cs b/WSAsegasa/Configuracion.cs new file mode 100644 index 0000000..2ed5d3e --- /dev/null +++ b/WSAsegasa/Configuracion.cs @@ -0,0 +1,16 @@ +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WSAsegasa +{ + public class Configuracion + { + public int SegundosMinimosEntreProcesos { get; set; } + public string? HoraProcesosDiarios { get; set; } + public string? NombreConexionBD { get; set; } + } +} diff --git a/WSAsegasa/Logs.cs b/WSAsegasa/Logs.cs new file mode 100644 index 0000000..89d2f39 --- /dev/null +++ b/WSAsegasa/Logs.cs @@ -0,0 +1,102 @@ +using bdAsegasa; +using bdAsegasa.db; +using Microsoft.VisualBasic; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; +using Serilog; +//mmm +namespace WSAsegasa +{ + internal class Logs + { + private static object oBloqueoLog; + //private static EventLog el; + public static void AñadeLog(tsUtilidades.Enumeraciones.TipoLog Tipo, string Mensaje, Exception e = null) + { + // ---------------------------------------------------------------------------------------------------- + // Descripción Sub: Gestión de logs de la aplicación + // Fecha. Creacion: ??? + // Creada por: manmog + // Ultima Modificacion: 24/11/2010 + // + // Modificaciones: + // =============== + if (oBloqueoLog == null) oBloqueoLog = new object(); + lock (oBloqueoLog) + { + try + { + if (e != null) + { + + string sStackTrace = "Tipo excepción: " + e.ToString() + Constants.vbCrLf; + Exception exError = e; + do + { + sStackTrace += exError.StackTrace + Constants.vbCrLf; + exError = exError.InnerException; + } + while (!Information.IsNothing(exError)); + if (sStackTrace != "") + Mensaje += Constants.vbCrLf + "|StackTrace: " + sStackTrace; + } + + bdAsegasa.db.cuentascorreo? cta = null; + + try + { + var bd = tscgestionasegasa.NuevoContexto(Procesos.Conf.NombreConexionBD, true, false, true, "WSAsegasa"); + cta = bd.cuentascorreo.First(x => x.Codigo == "DEFECTO"); + } + catch + { + } + + switch (Tipo) + { + case tsUtilidades.Enumeraciones.TipoLog.Fallo: + Mensaje = "Error WSAsegasa. " + " Enviado desde " + Environment.MachineName + ". Version:" + Assembly.GetEntryAssembly()?.GetName().Version + ". Mensaje: " + Mensaje; + Log.Fatal(Mensaje); + if (cta != null) tsCorreos.Funciones.EnviaCorreo(cta.ServidorSMTP, cta.Remitente, "sevilla@tecnosis.net", "Error en WSAsegasa", Mensaje, null, null, "", "", cta.CuentaCorreo, cta.Password, cta.Puerto.Value, true); + break; + case tsUtilidades.Enumeraciones.TipoLog.Advertencia: + Mensaje = "Advertencia WSAsegasa. " + " Enviado desde " + Environment.MachineName + ". Version:" + Assembly.GetEntryAssembly()?.GetName().Version + ". " + Mensaje; + Log.Warning(Mensaje); + if (cta != null) tsCorreos.Funciones.EnviaCorreo(cta.ServidorSMTP, cta.Remitente, "sevilla@tecnosis.net", "Advertencia en WSAsegasa", Mensaje, null, null, "", "", cta.CuentaCorreo, cta.Password, cta.Puerto.Value, true); + break; + case tsUtilidades.Enumeraciones.TipoLog.InicioServicio: + Mensaje = "Inicio WSAsegasa. " + " Enviado desde " + Environment.MachineName + ". Version:" + Assembly.GetEntryAssembly()?.GetName().Version + ". Mensaje: " + Mensaje; + Log.Information(Mensaje); + if (cta != null) tsCorreos.Funciones.EnviaCorreo(cta.ServidorSMTP, cta.Remitente, "sevilla@tecnosis.net", "Inicio WSAsegasa", Mensaje, null, null, "", "", cta.CuentaCorreo, cta.Password, cta.Puerto.Value, true); + break; + case tsUtilidades.Enumeraciones.TipoLog.FinServicio: + Mensaje = "Finalización WSAsegasa. " + " Enviado desde " + Environment.MachineName + ". Version:" + Assembly.GetEntryAssembly()?.GetName().Version + ". Mensaje: " + Mensaje; + Log.Information(Mensaje); + if (cta != null) tsCorreos.Funciones.EnviaCorreo(cta.ServidorSMTP, cta.Remitente, "sevilla@tecnosis.net", "Finalización WSAsegasa", Mensaje, null, null, "", "", cta.CuentaCorreo, cta.Password, cta.Puerto.Value, true); + break; + + default: + Mensaje = Tipo.ToString() + " WSAsegasa. " + " Enviado desde " + Environment.MachineName + ". Version:" + Assembly.GetEntryAssembly()?.GetName().Version + ". " + Mensaje; + Log.Information(Mensaje); + break; + } + + + } + catch (Exception ex) + { + if (e != null) + Mensaje += " --- " + e.StackTrace; + + Log.Fatal(Mensaje + " ---" + ex.Message + " --- " + ex.StackTrace); + } + } + } + } +} + diff --git a/WSAsegasa/Procesos.cs b/WSAsegasa/Procesos.cs new file mode 100644 index 0000000..8b51b12 --- /dev/null +++ b/WSAsegasa/Procesos.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using WSAsegasa; + + +namespace WSAsegasa +{ + public class Procesos + { + public static Configuracion Conf; + + public static DateTime? HoraUtcUltimaEjecucionProcesos = null; + private static bool Procesando; + + public static void Procesar() + { + if (!Procesando && (HoraUtcUltimaEjecucionProcesos.HasValue == false || DateTime.UtcNow.Subtract(HoraUtcUltimaEjecucionProcesos.Value).TotalSeconds > Conf.SegundosMinimosEntreProcesos)) ; + { + Procesando = true; + HoraUtcUltimaEjecucionProcesos = DateTime.UtcNow; + try + { + // ProcesosCorreos.EnviaCorreos(); + // Comprobaciones.CompruebaReplica(); + // Comprobaciones.ChequeaColaCorreo(); + + } + catch (Exception ex) + { + + Debug.WriteLine(@"Procesar: EXCEPCIÓN: " + ex.Message + " " + ex.StackTrace); + } + finally + { + Procesando = false; + } + + } + + } + } +} diff --git a/WSAsegasa/ProcesosVeriFactuAsegasa.cs b/WSAsegasa/ProcesosVeriFactuAsegasa.cs new file mode 100644 index 0000000..d7542a6 --- /dev/null +++ b/WSAsegasa/ProcesosVeriFactuAsegasa.cs @@ -0,0 +1,515 @@ +using bdAsegasa; +using bdAsegasa.db; +using Microsoft.AspNetCore.Http.Features; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Update.Internal; +using System; +using System.Collections.Generic; +using System.Diagnostics.Eventing.Reader; +using System.Drawing; +using System.Drawing.Drawing2D; +using System.Globalization; +using System.Linq; +using System.Linq.Expressions; +using System.Reflection; +using System.Security.Cryptography.X509Certificates; +using System.ServiceModel; +using System.Text; +using System.Threading.Tasks; +using System.Web.Services.Description; +using System.Xml; +using tsUtilidades; +using tsUtilidades.Enumeraciones; +using tsUtilidades.Extensiones; +using tsVeriFactu; +using tsVeriFactu.tsClases; +using wsVerifactu; +using static bdAsegasa.db.registrosverifactu; +using static Org.BouncyCastle.Math.EC.ECCurve; +using static Quartz.Logging.OperationName; +using static tsVeriFactu.Enums; +using static tsVeriFactu.tsDetalle; + +namespace WSAsegasa +{ + public class ProcesosVeriFactuAsegasa : ItsVeriFactu + + { + private tscgestionasegasa? bd; + private List? lrp; + private DatosConfig? Configuracion; + private enumeraciones? confVerifactu = null; + private enumeraciones? confSI = null; + + + public async Task Iniciar(CancellationToken cancellationToken) + { + + try + { + bd = tscgestionasegasa.NuevoContexto(Procesos.Conf.NombreConexionBD, true, false, true, "ProcesosVeriFactu"); + confVerifactu = bd.enumeraciones.First(x => x.Codigo == "VF.CONF"); + var Hoy = DateTime.Today; + confSI = bd.enumeraciones.Where(x => x.Codigo.StartsWith("VF.SI-") && x.Fecha1.HasValue && x.Fecha1 <= Hoy).OrderByDescending(x => x.Fecha1).FirstOrDefault(); + if (confSI != null) + { + if (confVerifactu.Fecha2.HasValue == false) + { + if (confVerifactu.Fecha3.HasValue) + { + TimeSpan espera = confVerifactu.Fecha3.Value - DateTime.Now; + if (espera.TotalMilliseconds > 0) await System.Threading.Tasks.Task.Delay(espera, cancellationToken); + } + confVerifactu.ValorAlfabeticoLargo = ""; + var pc = await tsVeriFactu.Procesos.EnviaFacturasAEAT(this, cancellationToken); + } + } + } + catch (Exception ex) + { + Logs.AñadeLog(tsUtilidades.Enumeraciones.TipoLog.Fallo, ex.Message, ex); + } + } + public DatosConfig ObtieneConfiguracion() + { + var bd = tscgestionasegasa.NuevoContexto(Procesos.Conf.NombreConexionBD, true, false, true, "ProcesosVeriFactu"); + var bdts = bdFactu.tscFactu.NuevoContexto("Producción", true, false, true, "ProcesosVeriFactu"); + //var emp = bd.enumeraciones.First(x => x.Codigo == "CONF.EMP"); + var rso = bd.enumeraciones.First(x => x.Codigo == "DATEMP.RAZONSOCIAL").ValorAlfabeticoLargo; + var cif = bd.enumeraciones.First(x => x.Codigo == "DATEMP.CIF").ValorAlfabeticoLargo; + + var c = bdts.certificados.First(x => x.Codigo == "PFX-A29221801" && x.FechaValidez <= DateTime.Now && x.FechaCaducidad >= DateTime.Now); + var p = tsUtilidades.crypt.SHA256(System.Text.Encoding.UTF8.GetBytes(c.FechaCaducidad.Value.ToString("yyyyMMddhhmmss") + c.CERT_ID + "-M3Soft.")); + + Assembly ensamblado = Assembly.GetAssembly(typeof(ProcesosVeriFactuAsegasa)); + var Version = ensamblado?.GetName().Version?.Major.ToString().PadLeft(3, '0') + "." + ensamblado?.GetName().Version?.Minor.ToString().PadLeft(3, '0') + "." + ensamblado?.GetName().Version?.Build.ToString().PadLeft(3, '0'); + Configuracion = new DatosConfig( + NIFEmpresa: cif, + RazonSocialEmpresa: rso, + EsProduccion: confSI.ValorNumerico4.Value > 0, + Certificado: new X509Certificate2(c.ContenedorClaves, p), + TipoCertificadoSello: false, + datosSistemInfor: new tsDatosSistemaInformatico + { + NombreRazon = confSI.ValorAlfabetico1, + NIFEmpresa = confSI.ValorAlfabetico2, + NombreSistemaInformatico = confSI.ValorAlfabetico3, + IdSistemaInformatico = confSI.ValorNumerico1.ToString(), + Version = Version, + NumeroInstalacion = confSI.ValorNumerico2.ToString().PadLeft(12, '0'), + } + ); + return Configuracion; + } + + + + + + + public List ObtenerOperacionesPendientes() + { + DateTime Ahora = DateTime.Now; + int OperAlta = (int)bdAsegasa.db.registrosverifactu.OperacionEnum.ALTA; + //DateTime fl = DateTime.Now.AddMinutes(-120); + DateOnly fl = DateOnly.FromDateTime(DateTime.Now); + DateOnly fc = DateOnly.FromDateTime(confSI.Fecha1.Value); + int tl = (int)AplicacionEnum.LIQUIDACION_AGENTE; + var lfp = bd.liquidacionesagentes + .Where(l => + l.idSerieFactura.HasValue && + l.FechaFactura.HasValue && + l.FechaFactura.Value >= fc && + l.FechaFactura.Value <= fl && + l.idSerieFacturaNavigation.TipoVerifactu.HasValue && + !bd.registrosverifactu.Any(r => r.idAplicacion == l.idLiquidacionAgente && r.TipoFactura==tl) + ).OrderBy(x => x.FechaFactura).ThenBy(x => x.NumeroFactura).ToList(); + + //List lfp = bd.liquidacionesagentes.Where(x => x.idSerieFactura.HasValue && x.FechaFactura.HasValue && x.FechaFactura.Value >= fc && x.FechaEmision < fl && x.idSerieFacturaNavigation.TipoVerifactu.HasValue && !x.registrosverifactu.Any(y => y.Operacion == OperAlta)).OrderBy(x => x.FechaFactura).ThenBy(x => x.NumeroFactura).ToList(); + foreach (var f in lfp) + { + registrosverifactu rvf = new registrosverifactu(); + bd.registrosverifactu.Add(rvf); + rvf.idAplicacion = f.idLiquidacionAgente; + rvf.Aplicacion = (int)registrosverifactu.AplicacionEnum.LIQUIDACION_AGENTE; + rvf.TipoFactura = f.idSerieFacturaNavigation.TipoVerifactu.Value; + rvf.Estado = (int)bdAsegasa.db.registrosverifactu.EstadoEnum.PENDIENTE_RESPUESTA; + rvf.FechaGeneracion = DateTime.Now; + rvf.Operacion = OperAlta; + } + bd.SaveChanges(); + + int EstPendiente = (int)bdAsegasa.db.registrosverifactu.EstadoEnum.PENDIENTE_RESPUESTA; + lrp = bd.registrosverifactu.Where(x => x.Estado == EstPendiente).OrderBy(x => x.idRegistro).ToList(); + + + return LiquidacionesAgentesAtsFACTURAS(); + } + + private List LiquidacionesAgentesAtsFACTURAS() + { + List lf = new List(); + try + { + var rso = bd.enumeraciones.First(x => x.Codigo == "DATEMP.RAZONSOCIAL").ValorAlfabeticoLargo; + var cif = bd.enumeraciones.First(x => x.Codigo == "DATEMP.CIF").ValorAlfabeticoLargo; + + foreach (registrosverifactu r in lrp) + { + try + { + if (r.Operacion == (int)registrosverifactu.OperacionEnum.ANULACIÓN) + { + // Anulación de factura + liquidacionesagentes fCancelar = bd.liquidacionesagentes.First(x=> x.idLiquidacionAgente==r.idAplicacion); + tsRegistroFacturacionAnulacion nf = new tsRegistroFacturacionAnulacion( + "01", + fCancelar.idAgenteNavigation.CIF, + fCancelar.NumeroFacturaVF(confSI.ValorAlfabetico4), + fCancelar.FechaFactura.Value, + r.idRegistro.ToString() + ); + lf.Add(nf); + } + else + { + liquidacionesagentes fr = bd.liquidacionesagentes.First(x => x.idLiquidacionAgente == r.idAplicacion); + tsRegistroFacturacionAlta nf = new tsRegistroFacturacionAlta( + "01", + fr.idAgenteNavigation.CIF,//emp.ValorAlfabetico1, + fr.FechaFactura.Value.Year==2025? "2025": fr.idSerieFacturaNavigation.Serie, + fr.NumeroFacturaVF(confSI.ValorAlfabetico4), + fr.FechaFactura.Value, + fr.idAgenteNavigation.Nombre, // emp.ValorAlfabeticoLargo, + TercerosODestinatarioType.D, + (ClaveTipoFacturaType)fr.idSerieFacturaNavigation.TipoVerifactu, + "COMISIONES SEGUROS", + rso, //fr.idAgenteNavigation.Nombre , + cif, //fr.idAgenteNavigation.CIF, + fr.IVA, + fr.TotalFacturaSinIRPF, + ObtieneImpuestos(fr).ToArray(), + r.idRegistro.ToString(), + (TipoRegistroAltaEnum)r.Operacion + ); + if (nf.TipoFactura >= ClaveTipoFacturaType.R1 ) + { + nf.TipoRectificativa = TipoRectificativaEnum.POR_DIFERENCIAS; + nf.FacturasRectificadas = new List(); + foreach (var frect in fr.InverseidLiquidacionRectificativaNavigation) + { + nf.FacturasRectificadas.Add(new tsFacturaRectificada + { + NumeroFacturaRectificada = frect.NumeroFacturaVF(confSI.ValorAlfabetico4), + FechaFacturaRectificada = frect.FechaFactura.Value, + BaseImponibleRectificada = frect.BaseImponible, + CuotaRectificada = frect.IVA, + CuotaRecargoRectificada = null + }); + } + } + + lf.Add(nf); + } + } + catch (Exception ex) + { + + throw new Exception(ex.Message, ex); + } + + } + return lf; + } + catch (Exception ex) + { + throw new Exception(ex.Message, ex); + } + } + + public static List ObtieneImpuestos(liquidacionesagentes factura) + // IdOperacionesTrascendenciaTributariaType: + // Representa el tipo de operación con trascendencia tributaria según el reglamento VERI*FACTU. + // Estos valores permiten clasificar las facturas según su naturaleza fiscal. + + // 01 - Operación sujeta y no exenta de IVA + // 02 - Operación sujeta y exenta de IVA + // 03 - Operación no sujeta a IVA + // 04 - Operación intracomunitaria + // 05 - Exportación + // 06 - Régimen especial (agencias de viajes, bienes usados, etc.) + // 07 - Operación con inversión del sujeto pasivo + // 08 - Operación en régimen simplificado + // 09 - Operación en régimen de recargo de equivalencia + // 10 - Otras operaciones con relevancia tributaria + + + // S1, + // Operación sujeta a IVA (tipo general, reducido o superreducido). + // Ejemplo: Ventas estándar de bienes y servicios (21%, 10%, 4%). + + // S2, + // Operación sujeta a IVA con régimen especial (Recargo de Equivalencia, Agricultura, etc.). + //Ejemplo: Ventas en Recargo de Equivalencia para comerciantes minoristas. + + // N1, + // Operación exenta de IVA (pero declarable). + // Ejemplo: Servicios médicos, educación, servicios financieros exentos. + + // N2 + // Operación no sujeta a IVA (fuera del ámbito del impuesto). + // Ejemplo: Donaciones, ventas entre particulares no profesionales. + + // CAUSA DE EXENCIÓN (E1 a E8 y NA) + /// + /// No asignada causa exención. + /// + ///NA, + + /// + /// Exenta por el artículo 20 (Exenciones en operaciones interiores). + /// + ///E1, + + /// + /// Exenta por el artículo 21 (Exportaciones). + /// + ///E2, + + /// + /// Exenta por el artículo 22 (Operaciones asimiladas a las + /// exportaciones: Navegación marítima internacional, aeronaves...). + /// + ///E3, + + /// + /// Exenta por los artículos 23 y 24 (Exenciones relativas a + /// regímenes aduaneros y fiscales: Depositos aduaneros...). + /// + ///E4, + + /// + /// Exenta por el artículo 25 (Operaciones UE). + /// + ///E5, + + /// + /// Exenta por otros. + /// + ///E6, + + /// + /// Reservado 1 Impuesto = “03” (IGIC) + /// + ///E7, + + /// + /// Reservado Impuesto = “03” (IGIC) + /// + ///E8 + + + + + + + + + { + List listaImpuestos = new List(); + tsDetalle nd = new tsDetalle(); + nd.ClaveRegimen = (IdOperacionesTrascendenciaTributariaType)factura.idSerieFacturaNavigation.TranscendenciaTributaria.Value; + nd.CalificacionOperacionOExencion = (CalificacionOperacionOExencionEnum)factura.idSerieFacturaNavigation.CalificacionOperacionesOExencion.Value; + nd.BaseImponibleOimporteNoSujeto = factura.BaseImponible; + // nd.ClaveRegimenSpecified = true; + if (factura.PorcentajeIVA.HasValue && factura.IVA > 0) + { + nd.TipoImpositivo = (double)factura.PorcentajeIVA; + nd.CuotaRepercutida = factura.IVA; + } + listaImpuestos.Add(nd); + return listaImpuestos; + } + + public tsEncadenamiento? ObtenerUltimoEncadenamiento(string idEmisorFactura) + { + int pr = (int)bdAsegasa.db.registrosverifactu.EstadoEnum.PENDIENTE_RESPUESTA; + // int ae = (int)bdAsegasa.db.registrosverifactu.EstadoEnum.ACEPTADO_CON_ERRORES; + // int OperAlta = (int)bdAsegasa.db.registrosverifactu.OperacionEnum.ALTA; + + var ultimoEncadenamiento = ( + from rv in bd.registrosverifactu + join la in bd.liquidacionesagentes + on rv.idAplicacion equals la.idLiquidacionAgente + where rv.Estado > pr && !string.IsNullOrEmpty(rv.Huella) && la.idAgenteNavigation.CIF==idEmisorFactura + orderby rv.idRegistro descending + select new { Registro = rv, Liquidacion = la } + ).FirstOrDefault(); + + + //var ultimoEncadenamiento = bd.registrosverifactu + // .Where(x => x.Estado > pr && x.Huella != null && x.Huella != "") + // .OrderByDescending(x => x.idRegistro) + // .FirstOrDefault(); + if (ultimoEncadenamiento != null) + { + liquidacionesagentes liq = bd.liquidacionesagentes.First(x => x.idLiquidacionAgente == ultimoEncadenamiento.Registro.idAplicacion); + return new tsEncadenamiento + { + ReferenciaExterna = ultimoEncadenamiento.Registro.idRegistro.ToString(), + FechaExpedicionFactura = liq.FechaFactura.Value, + NumSerieFactura = liq.NumeroFacturaVF(confSI.ValorAlfabetico4), + Huella = ultimoEncadenamiento.Registro.Huella, + IDEmisorFactura = idEmisorFactura + }; + } + else + { + return null; + } + } + + private peticionesverifactu? pvf; + public void GuardarPeticionAEAT(string Peticion) + { + pvf = new peticionesverifactu(); + pvf.Peticion = System.Text.UTF8Encoding.UTF8.GetBytes(Peticion); + pvf.FechaHoraPeticion = DateTime.Now; + bd.Add(pvf); + bd.SaveChanges(); + + } + + public void GuardarRespuestaAEAT(RespuestaRegFactuSistemaFacturacionType Respuesta, List listadoRegistros) + { + try + { + pvf.Respuesta = System.Text.UTF8Encoding.UTF8.GetBytes(tsUtilidades.Utilidades.serializar(Respuesta)); + pvf.FechaHoraRespuesta = DateTime.Now; + pvf.CSV = Respuesta.CSV; + var ProximoEnvio = DateTime.Now.AddSeconds(int.Parse(Respuesta.TiempoEsperaEnvio)); + confVerifactu.Fecha3 = ProximoEnvio; + bd.SaveChanges(); + foreach (var linea in Respuesta.RespuestaLinea) + { + // string nf = linea.IDFactura.NumSerieFactura; + int refex = int.Parse(linea.RefExterna); + var rvf = lrp.First(x => x.idRegistro == refex); + var tsRf = listadoRegistros.First(x => x.ReferenciaExterna == rvf.idRegistro.ToString()); + rvf.Huella = tsRf.Huella; + rvf.FechaEncadenado = tsRf.FechaHoraHusoGenRegistro; + int? idRa = tsRf.EncadenamientoAnterior == null ? null : int.Parse(tsRf.EncadenamientoAnterior.ReferenciaExterna); + rvf.idRegistroAnterior = idRa; + rvf.idRespuestaVerifactuNavigation = pvf; + switch (linea.EstadoRegistro) + { + case EstadoRegistroType.Correcto: + rvf.Estado = (int)registrosverifactu.EstadoEnum.CORRECTO; + break; + case EstadoRegistroType.AceptadoConErrores: + rvf.Estado = (int)registrosverifactu.EstadoEnum.ACEPTADO_CON_ERRORES; + rvf.ErrorVerifactu = linea.DescripcionErrorRegistro.Acortar(500); + break; + case EstadoRegistroType.Incorrecto: + rvf.Estado = (int)registrosverifactu.EstadoEnum.INCORRECTO; + rvf.ErrorVerifactu = linea.DescripcionErrorRegistro.Acortar(500); + break; + } + } + bd.SaveChanges(); + } + catch (Exception ex) + { + Logs.AñadeLog(tsUtilidades.Enumeraciones.TipoLog.Fallo, ex.Message, ex); + } + } + + + public (bool,string, DateOnly?)? ObtenerUltimaFacturaEnviada(string Serie, DateOnly Fecha) + { + //int iAlta = (int)registrosverifactu.OperacionEnum.ALTA; + //int iPendiente = (int)registrosverifactu.EstadoEnum.PENDIENTE_RESPUESTA; + //liquidacionesagentes? ultimaFactura; + //if (Fecha.Year != 2025) + //{ + // ultimaFactura = ( + // from l in bd.liquidacionesagentes + // join r in bd.registrosverifactu + // on l.idLiquidacionAgente equals r.idAplicacion + // where l.idSerieFacturaNavigation.Serie == Serie + // && l.FechaFactura.HasValue + // && l.FechaFactura.Value.Year == Fecha.Year + // && r.Operacion == iAlta + // && r.Estado > iPendiente + // orderby l.NumeroFactura descending + // select l).FirstOrDefault(); + // if (ultimaFactura != null) + // { + // return (true,ultimaFactura.NumeroFactura, ultimaFactura.FechaFactura.Value); + // } + // else + // { + // return null; + // } + //} + //else + //{ + return (false,"", null); // Se devuelve vacío para que no se compruebe la numeración + //} + + + } + + public void Excepcion(Exception ex, string RespuestaAEAT) + { + try + { + // Si la excepción es de tipo FACTURA_ERRONEA, se detiene el proceso de envío + if (pvf != null && RespuestaAEAT != null) + { + pvf.Respuesta = System.Text.UTF8Encoding.UTF8.GetBytes(RespuestaAEAT); + pvf.FechaHoraRespuesta = DateTime.Now; + pvf.Estado = (int)peticionesverifactu.EstadoEnum.ENVIO_RECHAZADO_O_CON_ERRORES; + } + if (!tsExcepcion.Es(ex, "RECHAZO_VERIFACTU.ERROR_503") && (!tsExcepcion.Es(ex, "RECHAZO_VERIFACTU.ERROR_EN_SERVICIO_AEAT")) || (confVerifactu.ValorNumerico4.HasValue && confVerifactu.ValorNumerico4.Value > 4)) + { + string sMensaje = @"Error en envío de facturas por VERIFACTU. Los procesos de envío se detendrán. Una vez corregido los problemas se deberá reanudar manualmente los envíos."; + if (RespuestaAEAT != null) sMensaje += " Respuesta AEAT: " + RespuestaAEAT; + Logs.AñadeLog(tsUtilidades.Enumeraciones.TipoLog.Fallo, sMensaje, ex); + confVerifactu.Fecha2 = DateTime.Now; + confVerifactu.ValorAlfabeticoLargo = ex.Message.Acortar(255); + } + else + { + string sMensaje = @"Servicio Verifactu no disponible, se reintentará en 1 Hora."; + if (RespuestaAEAT != null) sMensaje += " Respuesta AEAT: " + RespuestaAEAT; + Logs.AñadeLog(tsUtilidades.Enumeraciones.TipoLog.Advertencia, sMensaje, ex); + confVerifactu.Fecha3 = DateTime.Now.AddHours(1); + confVerifactu.ValorAlfabeticoLargo = ex.Message.Acortar(255); + confVerifactu.ValorNumerico4 = confVerifactu.ValorNumerico4.HasValue ? confVerifactu.ValorNumerico4.Value + 1 : 1; + } + bd.SaveChanges(); + } + catch (Exception ex2) + { + Logs.AñadeLog(tsUtilidades.Enumeraciones.TipoLog.Fallo, ex2.Message + Environment.NewLine + ex.Message, ex2); + } + + } + + public void OperacionIncorrecta(tsRegistroFacturacion op, Exception ex) + { + + int idAplicacion = int.Parse(op.ReferenciaExterna); + var rvf = lrp.First(x => x.idAplicacion == idAplicacion); + rvf.Estado = (int)registrosverifactu.EstadoEnum.INCORRECTO; + rvf.ErrorVerifactu = ex.Message.Acortar(500); + bd.SaveChanges(); + } + + public void Log(string Mensaje, TipoLog Tipo) + { + Logs.AñadeLog(Tipo, Mensaje); + } + } +} diff --git a/WSAsegasa/Program.cs b/WSAsegasa/Program.cs index 5a61b53..c746507 100644 --- a/WSAsegasa/Program.cs +++ b/WSAsegasa/Program.cs @@ -1,7 +1,55 @@ +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging.Configuration; +using Microsoft.Extensions.Logging.EventLog; +using Serilog; +using System.IO; +using System.Reflection; using WSAsegasa; -var builder = Host.CreateApplicationBuilder(args); -builder.Services.AddHostedService(); -var host = builder.Build(); -host.Run(); +public class Program +{ + public static void Main(string[] args) + { + Serilog.Debugging.SelfLog.Enable(msg => Console.Error.WriteLine(msg)); + bdAsegasa.db.Utilidades.VersionPrograma = tsUtilidades.Utilidades.ExtraeValorCadena(Assembly.GetExecutingAssembly().FullName, "Version"); + // Configura Serilog antes de construir el host + string path = ""; + if (OperatingSystem.IsWindows()) + { + path = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\WSAsegasa\WSAsegasa.log"; + } + else + { + + path = @"/var/log/WSAsegasa/WSAsegasa.log"; + } + Log.Logger = new LoggerConfiguration() + .MinimumLevel.Information() + .WriteTo.File(path, rollingInterval: RollingInterval.Day) + .CreateLogger(); + var host = CreateHostBuilder(args).Build(); + host.Run(); + } + + public static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .ConfigureServices((hostContext, services) => + { + IConfiguration configuration = hostContext.Configuration; + Configuracion options = configuration.GetSection("Configuracion").Get(); + + services.AddSingleton(options); + + // Solo registrar WindowsService si estamos en Windows + if (OperatingSystem.IsWindows()) + { + services.AddWindowsService(config => + { + config.ServiceName = "WSAsegasa"; + }); + } + + services.AddHostedService(); + }); +} diff --git a/WSAsegasa/WSAsegasa.csproj b/WSAsegasa/WSAsegasa.csproj index eb9b561..d9a6da2 100644 --- a/WSAsegasa/WSAsegasa.csproj +++ b/WSAsegasa/WSAsegasa.csproj @@ -5,9 +5,24 @@ enable enable dotnet-WSAsegasa-3170e77c-9190-48a1-9c66-26323b65ac5d + win-x64;linux-x64 + + + + + + + + + + + + + + diff --git a/WSAsegasa/Worker.cs b/WSAsegasa/Worker.cs index 411ccb5..94f717d 100644 --- a/WSAsegasa/Worker.cs +++ b/WSAsegasa/Worker.cs @@ -1,23 +1,184 @@ +using bdAsegasa; +using bdAsegasa.db; +using Microsoft.Extensions.Logging; +using Microsoft.VisualBasic; +using Quartz; +using Quartz.Impl; +using System.ComponentModel.DataAnnotations.Schema; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Drawing.Text; +using System.Reflection; +using System.Threading.Tasks; +using System.Web.Services.Description; +using tsUtilidades.SEPA_3414; +using WSAsegasa; + namespace WSAsegasa { + public class Worker : BackgroundService { private readonly ILogger _logger; - public Worker(ILogger logger) + public Worker(ILogger logger, Configuracion Conf) { _logger = logger; + Procesos.Conf = Conf; } - protected override async Task ExecuteAsync(CancellationToken stoppingToken) + + + + + protected override async System.Threading.Tasks.Task ExecuteAsync(CancellationToken stoppingToken) { - while (!stoppingToken.IsCancellationRequested) + string Mensaje = "WSAsegasa. Versin: " + tsUtilidades.Utilidades.ExtraeValorCadena(Assembly.GetExecutingAssembly().FullName, "Version"); + try { - if (_logger.IsEnabled(LogLevel.Information)) + + if (Procesos.Conf.HoraProcesosDiarios != null) { - _logger.LogInformation("Worker running at: {time}", DateTimeOffset.Now); + Mensaje += " Hora Procesos Programados: " + Procesos.Conf.HoraProcesosDiarios; + CreaTareaProcesosDiarios(); } - await Task.Delay(1000, stoppingToken); + CreaTareaEnvioFacturas(); + + Logs.AadeLog(tsUtilidades.Enumeraciones.TipoLog.InicioServicio, "Inicio " + Mensaje); + + while (!stoppingToken.IsCancellationRequested) + { + if (_logger.IsEnabled(LogLevel.Information)) + { + _logger.LogInformation("Servicio en ejecucin: {time}", DateTimeOffset.Now); + //Creo q aqui se deberia llamar a los servicios + } + Procesos.Procesar(); + await System.Threading.Tasks.Task.Delay(1000*60*5, stoppingToken); + } + } + catch (OperationCanceledException) + { + // Logs.AadeLog(tsUtilidades.Enumeraciones.TipoLog.FinServicio, "Detencin " + Mensaje); + // When the stopping token is canceled, for example, a call made from services.msc, + // we shouldn't exit with a non-zero exit code. In other words, this is expected... + } + catch (Exception ex) + { + _logger.LogError(ex, "{Message}", ex.Message); + Environment.Exit(1); + } + + } + public override async Task StopAsync(CancellationToken cancellationToken) + { + string Mensaje = "WSAsegasa. Versin: " + tsUtilidades.Utilidades.ExtraeValorCadena(Assembly.GetExecutingAssembly().FullName, "Version"); + Logs.AadeLog(tsUtilidades.Enumeraciones.TipoLog.FinServicio, "Finalizando " + Mensaje); + + await base.StopAsync(cancellationToken); + Logs.AadeLog(tsUtilidades.Enumeraciones.TipoLog.FinServicio, "Servicio Finalizado " + Mensaje); + } + + + + private void CreaTareaProcesosDiarios() + { + ISchedulerFactory schedulerFactory = new StdSchedulerFactory(); + IScheduler scheduler = schedulerFactory.GetScheduler().Result; + scheduler.Start().Wait(); + // Crear un trabajo + IJobDetail job = JobBuilder.Create() + .WithIdentity("TareasProgramadas", "Grupo1") + .Build(); + // Crear un trigger que se ejecute diariamente a una hora especfica + + + int Hora = int.Parse(Procesos.Conf.HoraProcesosDiarios.Split(":")[0]); + int Minutos = int.Parse(Procesos.Conf.HoraProcesosDiarios.Split(":")[1]); + ITrigger trigger = TriggerBuilder.Create() + .WithIdentity("TareasProgramadas", "Grupo1") + .StartAt(DateBuilder.TodayAt(Hora, Minutos, 0)) + .WithSimpleSchedule(x => x + .WithIntervalInHours(24) + .RepeatForever()) + .Build(); + + // Programar el trabajo con el trigger + scheduler.ScheduleJob(job, trigger).Wait(); + } + + private void CreaTareaEnvioFacturas() + { + ISchedulerFactory schedulerFactory = new StdSchedulerFactory(); + IScheduler scheduler = schedulerFactory.GetScheduler().Result; + scheduler.Start().Wait(); + // Crear un trabajo + IJobDetail job = JobBuilder.Create() + .WithIdentity("EnvioFacturas", "Grupo1") + .Build(); + // Crear un trigger que se ejecute diariamente a una hora especfica + + ITrigger trigger = TriggerBuilder.Create() + .WithIdentity("EnvioFacturas", "Grupo1") + .StartAt(DateBuilder.TodayAt(DateTime.Now.Hour, DateTime.Now.Minute, 0)) + .WithSimpleSchedule(x => x + .WithIntervalInMinutes(15) + .RepeatForever()) + .Build(); + + // Programar el trabajo con el trigger + scheduler.ScheduleJob(job, trigger).Wait(); + } + + + } + + + public class TareasProgramadas : IJob + { + public Task Execute(IJobExecutionContext context) + { + //var ch = bdTecnosis.db.chequeos; + // var bd = bdTecnosis.tscTecnosis.NuevoContexto(); + //var c = bd.chequeos.FirstOrDefault(x => x.idChequeo == ch.idChequeo); + //Comprobaciones.ChequeaColaCorreo(bd,c); + //Comprobaciones.CompruebaReplica(); + //Aqui van los procesos y comprobaciones + return Task.CompletedTask; + } + } + + + public class EnvioFacturas : IJob + { + private static readonly SemaphoreSlim _semaforo = new SemaphoreSlim(1, 1); + + public async Task Execute(IJobExecutionContext context) + { + var cancellationToken = context.CancellationToken; + + if (await _semaforo.WaitAsync(0, cancellationToken)) // no espera si est ocupado + { + try + { + var ft = new ProcesosVeriFactuAsegasa(); + await ft.Iniciar(cancellationToken); + } + catch (Exception ex) + { + Logs.AadeLog(tsUtilidades.Enumeraciones.TipoLog.Fallo, ex.Message, ex); + } + finally + { + _semaforo.Release(); + } + } + else + { + var bd = tscgestionasegasa.NuevoContexto(Procesos.Conf.NombreConexionBD, true, false, true, "ProcesosVeriFactuTecnosis"); + var cvf = bd.enumeraciones.First(x => x.Codigo == "VF.CONF"); + if (DateTime.Now.Hour < cvf.ValorNumerico2.Value) Logs.AadeLog(tsUtilidades.Enumeraciones.TipoLog.Advertencia, "Bloqueo en EnvioFacturas"); + } } } diff --git a/WSAsegasa/appsettings.json b/WSAsegasa/appsettings.json index b2dcdb6..67c764c 100644 --- a/WSAsegasa/appsettings.json +++ b/WSAsegasa/appsettings.json @@ -1,8 +1,8 @@ { - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.Hosting.Lifetime": "Information" - } + + "Configuracion": { + "SegundosMinimosEntreProcesos": "60", + "HoraProcesosDiarios": "06:30", + "NombreConexionBD": "Producción Remoto" } } diff --git a/bdAsegasa/CodeTemplates/EFCore/DbContext.t4 b/bdAsegasa/CodeTemplates/EFCore/DbContext.t4 new file mode 100644 index 0000000..a0a6c10 --- /dev/null +++ b/bdAsegasa/CodeTemplates/EFCore/DbContext.t4 @@ -0,0 +1,353 @@ +<#@ template hostSpecific="true" #> +<#@ assembly name="Microsoft.EntityFrameworkCore" #> +<#@ assembly name="Microsoft.EntityFrameworkCore.Design" #> +<#@ assembly name="Microsoft.EntityFrameworkCore.Relational" #> +<#@ assembly name="Microsoft.Extensions.DependencyInjection.Abstractions" #> +<#@ parameter name="Model" type="Microsoft.EntityFrameworkCore.Metadata.IModel" #> +<#@ parameter name="Options" type="Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions" #> +<#@ parameter name="NamespaceHint" type="System.String" #> +<#@ import namespace="System.Collections.Generic" #> +<#@ import namespace="System.Linq" #> +<#@ import namespace="System.Text" #> +<#@ import namespace="Microsoft.EntityFrameworkCore" #> +<#@ import namespace="Microsoft.EntityFrameworkCore.Design" #> +<#@ import namespace="Microsoft.EntityFrameworkCore.Infrastructure" #> +<#@ import namespace="Microsoft.EntityFrameworkCore.Scaffolding" #> +<#@ import namespace="Microsoft.Extensions.DependencyInjection" #> +<# + // Template version: 800 - please do NOT remove this line + if (!ProductInfo.GetVersion().StartsWith("8.0")) + { + Warning("Your templates were created using an older version of Entity Framework. Additional features and bug fixes may be available. See https://aka.ms/efcore-docs-updating-templates for more information."); + } + + var services = (IServiceProvider)Host; + var providerCode = services.GetRequiredService(); + var annotationCodeGenerator = services.GetRequiredService(); + var code = services.GetRequiredService(); + + var usings = new List + { + "System", + "System.Collections.Generic", + "Microsoft.EntityFrameworkCore" + }; + + if (NamespaceHint != Options.ModelNamespace + && !string.IsNullOrEmpty(Options.ModelNamespace)) + { + usings.Add(Options.ModelNamespace); + } + + if (!string.IsNullOrEmpty(NamespaceHint)) + { +#> +namespace <#= NamespaceHint #>; + +<# + } +#> +public partial class <#= Options.ContextName #> : DbContext +{ +<# + if (!Options.SuppressOnConfiguring) + { +#> + public <#= Options.ContextName #>() + { + } + +<# + } +#> + public <#= Options.ContextName #>(DbContextOptions<<#= Options.ContextName #>> options) + : base(options) + { + } + +<# + foreach (var entityType in Model.GetEntityTypes().Where(e => !e.IsSimpleManyToManyJoinEntityType())) + { +#> + public virtual DbSet<<#= entityType.Name #>> <#= entityType.GetDbSetName() #> { get; set; } + +<# + } + + if (!Options.SuppressOnConfiguring) + { +#> + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) +<# + if (!Options.SuppressConnectionStringWarning) + { +#> +#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263. +<# + } +#> + => optionsBuilder<#= code.Fragment(providerCode.GenerateUseProvider(Options.ConnectionString), indent: 3) #>; + +<# + } + +#> + protected override void OnModelCreating(ModelBuilder modelBuilder) + { +<# + var anyConfiguration = false; + + var modelFluentApiCalls = Model.GetFluentApiCalls(annotationCodeGenerator); + if (modelFluentApiCalls != null) + { + usings.AddRange(modelFluentApiCalls.GetRequiredUsings()); +#> + modelBuilder<#= code.Fragment(modelFluentApiCalls, indent: 3) #>; +<# + anyConfiguration = true; + } + + StringBuilder mainEnvironment; + foreach (var entityType in Model.GetEntityTypes().Where(e => !e.IsSimpleManyToManyJoinEntityType())) + { + // Save all previously generated code, and start generating into a new temporary environment + mainEnvironment = GenerationEnvironment; + GenerationEnvironment = new StringBuilder(); + + if (anyConfiguration) + { + WriteLine(""); + } + + var anyEntityTypeConfiguration = false; +#> + modelBuilder.Entity<<#= entityType.Name #>>(entity => + { +<# + var key = entityType.FindPrimaryKey(); + if (key != null) + { + var keyFluentApiCalls = key.GetFluentApiCalls(annotationCodeGenerator); + if (keyFluentApiCalls != null + || (!key.IsHandledByConvention() && !Options.UseDataAnnotations)) + { + if (keyFluentApiCalls != null) + { + usings.AddRange(keyFluentApiCalls.GetRequiredUsings()); + } +#> + entity.HasKey(<#= code.Lambda(key.Properties, "e") #>)<#= code.Fragment(keyFluentApiCalls, indent: 4) #>; +<# + anyEntityTypeConfiguration = true; + } + } + + var entityTypeFluentApiCalls = entityType.GetFluentApiCalls(annotationCodeGenerator) + ?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations)); + if (entityTypeFluentApiCalls != null) + { + usings.AddRange(entityTypeFluentApiCalls.GetRequiredUsings()); + + if (anyEntityTypeConfiguration) + { + WriteLine(""); + } +#> + entity<#= code.Fragment(entityTypeFluentApiCalls, indent: 4) #>; +<# + anyEntityTypeConfiguration = true; + } + + foreach (var index in entityType.GetIndexes() + .Where(i => !(Options.UseDataAnnotations && i.IsHandledByDataAnnotations(annotationCodeGenerator)))) + { + if (anyEntityTypeConfiguration) + { + WriteLine(""); + } + + var indexFluentApiCalls = index.GetFluentApiCalls(annotationCodeGenerator); + if (indexFluentApiCalls != null) + { + usings.AddRange(indexFluentApiCalls.GetRequiredUsings()); + } +#> + entity.HasIndex(<#= code.Lambda(index.Properties, "e") #>, <#= code.Literal(index.GetDatabaseName()) #>)<#= code.Fragment(indexFluentApiCalls, indent: 4) #>; +<# + anyEntityTypeConfiguration = true; + } + + var firstProperty = true; + foreach (var property in entityType.GetProperties()) + { + var propertyFluentApiCalls = property.GetFluentApiCalls(annotationCodeGenerator) + ?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations) + && !(c.Method == "IsRequired" && Options.UseNullableReferenceTypes && !property.ClrType.IsValueType)); + if (propertyFluentApiCalls == null) + { + continue; + } + + usings.AddRange(propertyFluentApiCalls.GetRequiredUsings()); + + if (anyEntityTypeConfiguration && firstProperty) + { + WriteLine(""); + } +#> + entity.Property(e => e.<#= property.Name #>)<#= code.Fragment(propertyFluentApiCalls, indent: 4) #>; +<# + anyEntityTypeConfiguration = true; + firstProperty = false; + } + + foreach (var foreignKey in entityType.GetForeignKeys()) + { + var foreignKeyFluentApiCalls = foreignKey.GetFluentApiCalls(annotationCodeGenerator) + ?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations)); + if (foreignKeyFluentApiCalls == null) + { + continue; + } + + usings.AddRange(foreignKeyFluentApiCalls.GetRequiredUsings()); + + if (anyEntityTypeConfiguration) + { + WriteLine(""); + } +#> + entity.HasOne(d => d.<#= foreignKey.DependentToPrincipal.Name #>).<#= foreignKey.IsUnique ? "WithOne" : "WithMany" #>(<#= foreignKey.PrincipalToDependent != null ? $"p => p.{foreignKey.PrincipalToDependent.Name}" : "" #>)<#= code.Fragment(foreignKeyFluentApiCalls, indent: 4) #>; +<# + anyEntityTypeConfiguration = true; + } + + foreach (var skipNavigation in entityType.GetSkipNavigations().Where(n => n.IsLeftNavigation())) + { + if (anyEntityTypeConfiguration) + { + WriteLine(""); + } + + var left = skipNavigation.ForeignKey; + var leftFluentApiCalls = left.GetFluentApiCalls(annotationCodeGenerator, useStrings: true); + var right = skipNavigation.Inverse.ForeignKey; + var rightFluentApiCalls = right.GetFluentApiCalls(annotationCodeGenerator, useStrings: true); + var joinEntityType = skipNavigation.JoinEntityType; + + if (leftFluentApiCalls != null) + { + usings.AddRange(leftFluentApiCalls.GetRequiredUsings()); + } + + if (rightFluentApiCalls != null) + { + usings.AddRange(rightFluentApiCalls.GetRequiredUsings()); + } +#> + entity.HasMany(d => d.<#= skipNavigation.Name #>).WithMany(p => p.<#= skipNavigation.Inverse.Name #>) + .UsingEntity>( + <#= code.Literal(joinEntityType.Name) #>, + r => r.HasOne<<#= right.PrincipalEntityType.Name #>>().WithMany()<#= code.Fragment(rightFluentApiCalls, indent: 6) #>, + l => l.HasOne<<#= left.PrincipalEntityType.Name #>>().WithMany()<#= code.Fragment(leftFluentApiCalls, indent: 6) #>, + j => + { +<# + var joinKey = joinEntityType.FindPrimaryKey(); + var joinKeyFluentApiCalls = joinKey.GetFluentApiCalls(annotationCodeGenerator); + + if (joinKeyFluentApiCalls != null) + { + usings.AddRange(joinKeyFluentApiCalls.GetRequiredUsings()); + } +#> + j.HasKey(<#= code.Arguments(joinKey.Properties.Select(e => e.Name)) #>)<#= code.Fragment(joinKeyFluentApiCalls, indent: 7) #>; +<# + var joinEntityTypeFluentApiCalls = joinEntityType.GetFluentApiCalls(annotationCodeGenerator); + if (joinEntityTypeFluentApiCalls != null) + { + usings.AddRange(joinEntityTypeFluentApiCalls.GetRequiredUsings()); +#> + j<#= code.Fragment(joinEntityTypeFluentApiCalls, indent: 7) #>; +<# + } + + foreach (var index in joinEntityType.GetIndexes()) + { + var indexFluentApiCalls = index.GetFluentApiCalls(annotationCodeGenerator); + if (indexFluentApiCalls != null) + { + usings.AddRange(indexFluentApiCalls.GetRequiredUsings()); + } +#> + j.HasIndex(<#= code.Literal(index.Properties.Select(e => e.Name).ToArray()) #>, <#= code.Literal(index.GetDatabaseName()) #>)<#= code.Fragment(indexFluentApiCalls, indent: 7) #>; +<# + } + + foreach (var property in joinEntityType.GetProperties()) + { + var propertyFluentApiCalls = property.GetFluentApiCalls(annotationCodeGenerator); + if (propertyFluentApiCalls == null) + { + continue; + } + + usings.AddRange(propertyFluentApiCalls.GetRequiredUsings()); +#> + j.IndexerProperty<<#= code.Reference(property.ClrType) #>>(<#= code.Literal(property.Name) #>)<#= code.Fragment(propertyFluentApiCalls, indent: 7) #>; +<# + } +#> + }); +<# + anyEntityTypeConfiguration = true; + } +#> + }); +<# + // If any signicant code was generated, append it to the main environment + if (anyEntityTypeConfiguration) + { + mainEnvironment.Append(GenerationEnvironment); + anyConfiguration = true; + } + + // Resume generating code into the main environment + GenerationEnvironment = mainEnvironment; + } + + foreach (var sequence in Model.GetSequences()) + { + var needsType = sequence.Type != typeof(long); + var needsSchema = !string.IsNullOrEmpty(sequence.Schema) && sequence.Schema != sequence.Model.GetDefaultSchema(); + var sequenceFluentApiCalls = sequence.GetFluentApiCalls(annotationCodeGenerator); +#> + modelBuilder.HasSequence<#= needsType ? $"<{code.Reference(sequence.Type)}>" : "" #>(<#= code.Literal(sequence.Name) #><#= needsSchema ? $", {code.Literal(sequence.Schema)}" : "" #>)<#= code.Fragment(sequenceFluentApiCalls, indent: 3) #>; +<# + } + + if (anyConfiguration) + { + WriteLine(""); + } +#> + OnModelCreatingPartial(modelBuilder); + } + + partial void OnModelCreatingPartial(ModelBuilder modelBuilder); +} +<# + mainEnvironment = GenerationEnvironment; + GenerationEnvironment = new StringBuilder(); + + foreach (var ns in usings.Distinct().OrderBy(x => x, new NamespaceComparer())) + { +#> +using <#= ns #>; +<# + } + + WriteLine(""); + + GenerationEnvironment.Append(mainEnvironment); +#> diff --git a/bdAsegasa/CodeTemplates/EFCore/EntityType.t4 b/bdAsegasa/CodeTemplates/EFCore/EntityType.t4 new file mode 100644 index 0000000..5985ee7 --- /dev/null +++ b/bdAsegasa/CodeTemplates/EFCore/EntityType.t4 @@ -0,0 +1,176 @@ +<#@ template hostSpecific="true" #> +<#@ assembly name="Microsoft.EntityFrameworkCore" #> +<#@ assembly name="Microsoft.EntityFrameworkCore.Design" #> +<#@ assembly name="Microsoft.EntityFrameworkCore.Relational" #> +<#@ assembly name="Microsoft.Extensions.DependencyInjection.Abstractions" #> +<#@ parameter name="EntityType" type="Microsoft.EntityFrameworkCore.Metadata.IEntityType" #> +<#@ parameter name="Options" type="Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions" #> +<#@ parameter name="NamespaceHint" type="System.String" #> +<#@ import namespace="System.Collections.Generic" #> +<#@ import namespace="System.ComponentModel.DataAnnotations" #> +<#@ import namespace="System.Linq" #> +<#@ import namespace="System.Text" #> +<#@ import namespace="Microsoft.EntityFrameworkCore" #> +<#@ import namespace="Microsoft.EntityFrameworkCore.Design" #> +<#@ import namespace="Microsoft.Extensions.DependencyInjection" #> +<# + // Template version: 800 - please do NOT remove this line + if (EntityType.IsSimpleManyToManyJoinEntityType()) + { + // Don't scaffold these + return ""; + } + + var services = (IServiceProvider)Host; + var annotationCodeGenerator = services.GetRequiredService(); + var code = services.GetRequiredService(); + + var usings = new List + { + "System", + "System.Collections.Generic", + "PropertyChanged" + }; + + if (Options.UseDataAnnotations) + { + usings.Add("System.ComponentModel.DataAnnotations"); + usings.Add("System.ComponentModel.DataAnnotations.Schema"); + usings.Add("Microsoft.EntityFrameworkCore"); + } + + if (!string.IsNullOrEmpty(NamespaceHint)) + { +#> +namespace <#= NamespaceHint #>; + +<# + } + + if (!string.IsNullOrEmpty(EntityType.GetComment())) + { +#> +/// +/// <#= code.XmlComment(EntityType.GetComment()) #> +/// +<# + } + + if (Options.UseDataAnnotations) + { + foreach (var dataAnnotation in EntityType.GetDataAnnotations(annotationCodeGenerator)) + { +#> +<#= code.Fragment(dataAnnotation) #> +<# + } + } +#> +[AddINotifyPropertyChangedInterface] +public partial class <#= EntityType.Name #> +{ +<# + var firstProperty = true; + foreach (var property in EntityType.GetProperties().OrderBy(p => p.GetColumnOrder() ?? -1)) + { + if (!firstProperty) + { + WriteLine(""); + } + + if (!string.IsNullOrEmpty(property.GetComment())) + { +#> + /// + /// <#= code.XmlComment(property.GetComment(), indent: 1) #> + /// +<# + } + + if (Options.UseDataAnnotations) + { + var dataAnnotations = property.GetDataAnnotations(annotationCodeGenerator) + .Where(a => !(a.Type == typeof(RequiredAttribute) && Options.UseNullableReferenceTypes && !property.ClrType.IsValueType)); + foreach (var dataAnnotation in dataAnnotations) + { +#> + <#= code.Fragment(dataAnnotation) #> +<# + } + } + + usings.AddRange(code.GetRequiredUsings(property.ClrType)); + + var needsNullable = Options.UseNullableReferenceTypes && property.IsNullable && !property.ClrType.IsValueType; + var needsInitializer = Options.UseNullableReferenceTypes && !property.IsNullable && !property.ClrType.IsValueType; +#> + public <#= code.Reference(property.ClrType) #><#= needsNullable ? "?" : "" #> <#= property.Name #> { get; set; }<#= needsInitializer ? " = null!;" : "" #> +<# + firstProperty = false; + } + + foreach (var navigation in EntityType.GetNavigations()) + { + WriteLine(""); + + if (Options.UseDataAnnotations) + { + foreach (var dataAnnotation in navigation.GetDataAnnotations(annotationCodeGenerator)) + { +#> + <#= code.Fragment(dataAnnotation) #> +<# + } + } + + var targetType = navigation.TargetEntityType.Name; + if (navigation.IsCollection) + { +#> + public virtual ICollection<<#= targetType #>> <#= navigation.Name #> { get; set; } = new List<<#= targetType #>>(); +<# + } + else + { + var needsNullable = Options.UseNullableReferenceTypes && !(navigation.ForeignKey.IsRequired && navigation.IsOnDependent); + var needsInitializer = Options.UseNullableReferenceTypes && navigation.ForeignKey.IsRequired && navigation.IsOnDependent; +#> + public virtual <#= targetType #><#= needsNullable ? "?" : "" #> <#= navigation.Name #> { get; set; }<#= needsInitializer ? " = null!;" : "" #> +<# + } + } + + foreach (var skipNavigation in EntityType.GetSkipNavigations()) + { + WriteLine(""); + + if (Options.UseDataAnnotations) + { + foreach (var dataAnnotation in skipNavigation.GetDataAnnotations(annotationCodeGenerator)) + { +#> + <#= code.Fragment(dataAnnotation) #> +<# + } + } +#> + public virtual ICollection<<#= skipNavigation.TargetEntityType.Name #>> <#= skipNavigation.Name #> { get; set; } = new List<<#= skipNavigation.TargetEntityType.Name #>>(); +<# + } +#> +} +<# + var previousOutput = GenerationEnvironment; + GenerationEnvironment = new StringBuilder(); + + foreach (var ns in usings.Distinct().OrderBy(x => x, new NamespaceComparer())) + { +#> +using <#= ns #>; +<# + } + + WriteLine(""); + + GenerationEnvironment.Append(previousOutput); +#> diff --git a/bdAsegasa/Extensiones/liquidacionesagentes.cs b/bdAsegasa/Extensiones/liquidacionesagentes.cs new file mode 100644 index 0000000..7bde9f3 --- /dev/null +++ b/bdAsegasa/Extensiones/liquidacionesagentes.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + + +namespace bdAsegasa.db +{ + public partial class liquidacionesagentes + { + public double TotalFacturaSinIRPF + { + get + { + return Math.Round(BaseImponible + IVA, 2, MidpointRounding.AwayFromZero); + } + } + public string NumeroFacturaVF(string? PrefijoPruebas) + { + if (PrefijoPruebas != null) + { + + return PrefijoPruebas + NumeroFactura; + } + else + { + return NumeroFactura; + } + } + } +} diff --git a/bdAsegasa/Extensiones/peticionesverifactu.cs b/bdAsegasa/Extensiones/peticionesverifactu.cs new file mode 100644 index 0000000..7b3bece --- /dev/null +++ b/bdAsegasa/Extensiones/peticionesverifactu.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace bdAsegasa.db +{ + public partial class peticionesverifactu + { + + public enum EstadoEnum + { + PENDIENTE_RESPUESTA = 0, + CORRECTO = 1, + PARCIALMENTE_CORRECTO = 2, + INCORRECTO = 10, + ENVIO_RECHAZADO_O_CON_ERRORES = 11, + } + } +} diff --git a/bdAsegasa/Extensiones/registrosverifactu.cs b/bdAsegasa/Extensiones/registrosverifactu.cs new file mode 100644 index 0000000..1f14fd4 --- /dev/null +++ b/bdAsegasa/Extensiones/registrosverifactu.cs @@ -0,0 +1,71 @@ + using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using static bdAsegasa.db.registrosverifactu; + +namespace bdAsegasa.db +{ + public partial class registrosverifactu + { + public string CSV + { + get + { + if (this.idRespuestaVerifactuNavigation == null) + { + return string.Empty; + } + else + { + return this.idRespuestaVerifactuNavigation.CSV; + } + } + } + public string DescripcionEstado + { + get + { + return ((EstadoEnum)this.Estado).ToString().Replace("_"," "); + } + } + + public string DescripcionOperacion + { + get + { + return ((OperacionEnum)this.Operacion).ToString().Replace("_", " "); + } + } + + + + + + public enum OperacionEnum + { + ALTA = 0, + SUBSANACION = 1, + ALTA_POR_RECHAZO = 2, + REENVÍO = 3, + ANULACIÓN = 9, + CONSULTA_DATOS = 5, + OBTENCIÓN_QR = 100 + } + + public enum EstadoEnum + { + PENDIENTE_RESPUESTA = 0, + CORRECTO = 1, + ACEPTADO_CON_ERRORES = 2, + INCORRECTO = 3, + COMPLETADO = 10 + } + public enum AplicacionEnum + { + LIQUIDACION_AGENTE = 0, + + } + } +} diff --git a/bdAsegasa/FodyWeavers.xml b/bdAsegasa/FodyWeavers.xml new file mode 100644 index 0000000..d5abfed --- /dev/null +++ b/bdAsegasa/FodyWeavers.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/bdAsegasa/Utilidades.cs b/bdAsegasa/Utilidades.cs new file mode 100644 index 0000000..9b8405a --- /dev/null +++ b/bdAsegasa/Utilidades.cs @@ -0,0 +1,143 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using bdAsegasa.dbcontext; +using Microsoft.VisualBasic; + +namespace bdAsegasa.db +{ + public class Utilidades + { + public static string Usuario; + + public static int idUsuario; + public static usuarios UsuarioActual; + public static string VersionPrograma { get; set; } + + public static EventLog el; + public static string DirectorioLogs; + private static object oBloqueoLog = new object(); + public static void AñadeLog(tsUtilidades.Enumeraciones.TipoLog Tipo, string Asunto, string Mensaje, Exception e = null) + { + // ---------------------------------------------------------------------------------------------------- + // Descripción Sub: Gestión de logs de la aplicación + // Fecha. Creacion: ??? + // Creada por: manmog + // Ultima Modificacion: 24/11/2010 + // + // Modificaciones: + // =============== + + lock (oBloqueoLog) + { + + + string sFicheroLog = DirectorioLogs + "Log-" + DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + ".txt"; + try + { + // if (!(e == null)) + if (e != null) //davrod + { + if (el is not null) + el.WriteEntry(e.Message + Constants.vbCrLf + e.StackTrace, EventLogEntryType.Error); + string sStackTrace = "Tipo excepción: " + e.ToString() + Constants.vbCrLf; + var exError = e; + do + { + sStackTrace += exError.StackTrace + Constants.vbCrLf; + exError = exError.InnerException; + } + while (exError != null); + if (!string.IsNullOrEmpty(sStackTrace)) + Mensaje += Constants.vbCrLf + "StackTrace: " + sStackTrace; + Anadelogtxt(Mensaje + " --- " + e.StackTrace, sFicheroLog); + } + + switch (Tipo) + { + case tsUtilidades.Enumeraciones.TipoLog.Fallo: + case tsUtilidades.Enumeraciones.TipoLog.Advertencia: + { + if (Tipo == tsUtilidades.Enumeraciones.TipoLog.Fallo) + { + sFicheroLog = DirectorioLogs + "Errores-" + DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString().PadLeft(2, '0') + ".txt"; + Asunto = "Error Servicio Tecnosis. " + ". Version:" + VersionPrograma + ". " + Asunto; + Mensaje = "Error Servicio Tecnosis. " + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + " Enviado desde " + Environment.MachineName + ". Version:" + VersionPrograma + ". Mensaje: " + Mensaje; + } + else + { + Asunto = "Advertencia Servicio Tecnosis. " + ". Version:" + VersionPrograma + ". " + Asunto; + Mensaje = "Advertencia Servicio Tecnosis. " + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + " Enviado desde " + Environment.MachineName + ". Version:" + VersionPrograma + ". " + Mensaje; + } + string sDireccionesEnvio = "sevilla@tecnosis.net"; + string sServidorSMTP = "mail.tecnosis.net"; + string sRemitente = "logs@tecnosis.es"; + tsUtilidades.Correo.Funciones.EnviaCorreo(sServidorSMTP, sRemitente, sDireccionesEnvio, Asunto, Mensaje, null, "", "", sRemitente, "jtvdzklmujkechje", 587, true); //Cambiar contraseña de logs -> LoGs20i9. + break; + } + } + // Anadelogtxt(Mensaje + " --- " + e.StackTrace, sFicheroLog); + } + catch (Exception ex) + { + sFicheroLog = DirectorioLogs + @"Errores\Errores-" + DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString().PadLeft(2, '0') + ".txt"; + if (e is not null) + Mensaje += " --- " + e.StackTrace; + Anadelogtxt(Mensaje + " ---" + ex.Message + " --- " + ex.StackTrace, sFicheroLog); + } + } + } + public static void Anadelogtxt(string Mensaje, string FicheroLog) + { + System.IO.StreamWriter sw = null; + try + { + Mensaje = Mensaje.Replace(Constants.vbCrLf, "---"); + if (!System.IO.Directory.Exists(System.IO.Path.GetDirectoryName(FicheroLog))) + tsUtilidades.Utilidades.CreaEstructuraDirectorio(System.IO.Path.GetDirectoryName(FicheroLog)); + if (System.IO.File.Exists(FicheroLog)) + { + sw = System.IO.File.AppendText(FicheroLog); + } + else + { + sw = System.IO.File.CreateText(FicheroLog); + } + Mensaje = DateTime.Now.ToString() + "|" + "Ws: " + Process.GetCurrentProcess().WorkingSet64.ToString().PadLeft(20) + " PMS: " + Process.GetCurrentProcess().PrivateMemorySize64.ToString().PadLeft(20) + "|" + Mensaje; + + sw.WriteLine(Mensaje); + } + + catch (Exception ex) + { + try + { + + string sDireccionesEnvio = "sevilla@tecnosis.net"; + string sServidorSMTP = "mail.tecnosis.net"; + string sRemitente = "logs@tecnosis.es"; + // tsUtilidades.Correo.Funciones.EnviaCorreo(sServidorSMTP, sRemitente, sDireccionesEnvio, Asunto, Mensaje,,,,, "se9608dc.g") + tsUtilidades.Correo.Funciones.EnviaCorreo(sServidorSMTP, sRemitente, sDireccionesEnvio, "Error Anadelogtxt. " + Mensaje, Environment.MachineName + ".- " + ex.Message + Constants.vbCrLf + ex.StackTrace + Constants.vbCrLf + ex.Source, null, "", "", sRemitente, "jtvdzklmujkechje", 587, true); //Cambiar contraseña de logs -> LoGs20i9. + } + catch (Exception ex2) + { + } + } + finally + { + try + { + sw.Close(); + } + catch + { + } + } + } + + + } +} diff --git a/bdAsegasa/bdAsegasa.csproj b/bdAsegasa/bdAsegasa.csproj new file mode 100644 index 0000000..be897fd --- /dev/null +++ b/bdAsegasa/bdAsegasa.csproj @@ -0,0 +1,22 @@ + + + + net8.0 + enable + enable + + + + + + + + + + + + + + + + diff --git a/bdAsegasa/db/accionessiniestros_eiac.cs b/bdAsegasa/db/accionessiniestros_eiac.cs new file mode 100644 index 0000000..9ec6d85 --- /dev/null +++ b/bdAsegasa/db/accionessiniestros_eiac.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class accionessiniestros_eiac +{ + public int idAccion { get; set; } + + public int? idSiniestroEIAC { get; set; } + + public int? NumeroOrden { get; set; } + + public int? AccionSiniestro { get; set; } + + public DateTime? FechaAccion { get; set; } + + public string? DescripcionAccion { get; set; } + + public int? SituacionAccion { get; set; } + + public virtual siniestros_eiac? idSiniestroEIACNavigation { get; set; } +} diff --git a/bdAsegasa/db/actassiniestrosagrario.cs b/bdAsegasa/db/actassiniestrosagrario.cs new file mode 100644 index 0000000..ea2c9c4 --- /dev/null +++ b/bdAsegasa/db/actassiniestrosagrario.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class actassiniestrosagrario +{ + public int idActa { get; set; } + + public string? NumeroActa { get; set; } + + public DateOnly? FechaActa { get; set; } + + public int? idPolizaAgrario { get; set; } + + public DateOnly? FechaFirmaFiniquito { get; set; } + + public string? NumeroSiniestro { get; set; } + + public string? NumeroSiniestroAgroseguro { get; set; } + + public DateOnly? FechaOcurrencia { get; set; } + + public int? idCausaSiniestro { get; set; } + + public double? Importe { get; set; } + + public DateOnly? FechaPago { get; set; } + + public virtual enumeraciones? idCausaSiniestroNavigation { get; set; } + + public virtual polizasagrario? idPolizaAgrarioNavigation { get; set; } +} diff --git a/bdAsegasa/db/actualizacioneshp.cs b/bdAsegasa/db/actualizacioneshp.cs new file mode 100644 index 0000000..afea3b6 --- /dev/null +++ b/bdAsegasa/db/actualizacioneshp.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class actualizacioneshp +{ + public int idActualizacionHP { get; set; } + + public string? Aplicacion { get; set; } + + public string? ExpresionBusqueda { get; set; } + + public string? idAplicacion { get; set; } + + public DateTime? FechaUltimaActualizacion { get; set; } + + public string? sha1 { get; set; } + + public bool ContieneErrores { get; set; } + + public DateTime? FechaUltimaComprobacion { get; set; } +} diff --git a/bdAsegasa/db/actualizacionessiniestros_eiac.cs b/bdAsegasa/db/actualizacionessiniestros_eiac.cs new file mode 100644 index 0000000..d38bd46 --- /dev/null +++ b/bdAsegasa/db/actualizacionessiniestros_eiac.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class actualizacionessiniestros_eiac +{ + public int idActualizacion { get; set; } + + public int idSiniestroEIAC { get; set; } + + public int? idFicheroCompania { get; set; } + + public DateTime Fecha { get; set; } + + public DateTime? FechaVisto { get; set; } + + public int? idUsuarioVisto { get; set; } + + public virtual ficheroscompanias? idFicheroCompaniaNavigation { get; set; } + + public virtual siniestros_eiac idSiniestroEIACNavigation { get; set; } = null!; + + public virtual usuarios? idUsuarioVistoNavigation { get; set; } +} diff --git a/bdAsegasa/db/agentes.cs b/bdAsegasa/db/agentes.cs new file mode 100644 index 0000000..6e3403a --- /dev/null +++ b/bdAsegasa/db/agentes.cs @@ -0,0 +1,125 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class agentes +{ + public int idAgente { get; set; } + + public string? Codigo { get; set; } + + public string? Nombre { get; set; } + + /// + /// tabla direcciones + /// + public int? idDireccion { get; set; } + + public string? CIF { get; set; } + + public DateOnly? FechaAlta { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public string? Telefono1 { get; set; } + + public string? Telefono2 { get; set; } + + public string? Fax { get; set; } + + public string? Clave { get; set; } + + public double? IRPF { get; set; } + + public double? LimiteCondicionesGenerales { get; set; } + + public double? ComisionMenorIgualLimiteEmision { get; set; } + + public double? ComisionMayorLimiteEmision { get; set; } + + public double? ComisionMenorIgualLimiteCartera { get; set; } + + public double? ComisionMayorLimiteCartera { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idInspector { get; set; } + + public string? CuentaContableC { get; set; } + + public string? CuentaContableR { get; set; } + + public string? IBAN { get; set; } + + /// + /// enumeraciones Formas de pago + /// + public int? idFormaPago { get; set; } + + public double? Rapell { get; set; } + + /// + /// enumeraciones rutas + /// + public int? idRuta { get; set; } + + public string? Observaciones { get; set; } + + public string? Email { get; set; } + + public string? NumeroColegiado { get; set; } + + public uint? idSuborganizacion { get; set; } + + public string? codigoUsuarioAvant2 { get; set; } + + public string? contrasenaAvant2 { get; set; } + + public string? MapeoCaser { get; set; } + + public string? MapeoAllianz { get; set; } + + public string? MapeoPelayo { get; set; } + + public bool SinAcreditacion { get; set; } + + public string? hashContrasena { get; set; } + + public virtual ICollection avant2__sso { get; set; } = new List(); + + public virtual ICollection comisionesagentes { get; set; } = new List(); + + public virtual ICollection expedientesagentes { get; set; } = new List(); + + public virtual ICollection historicocomisiones { get; set; } = new List(); + + public virtual direcciones? idDireccionNavigation { get; set; } + + public virtual enumeraciones? idFormaPagoNavigation { get; set; } + + public virtual usuarios? idInspectorNavigation { get; set; } + + public virtual enumeraciones? idRutaNavigation { get; set; } + + public virtual avant2__suborganizaciones? idSuborganizacionNavigation { get; set; } + + public virtual ICollection incentivos { get; set; } = new List(); + + public virtual ICollection liquidacionesagentes { get; set; } = new List(); + + public virtual ICollection personasdecontactoagentes { get; set; } = new List(); + + public virtual ICollection polizasagrario { get; set; } = new List(); + + public virtual ICollection polizassg { get; set; } = new List(); + + public virtual ICollection recibos { get; set; } = new List(); + + public virtual ICollection regularizacionespagosagentes { get; set; } = new List(); + + public virtual ICollection subagentes { get; set; } = new List(); +} diff --git a/bdAsegasa/db/agentes_subagentes.cs b/bdAsegasa/db/agentes_subagentes.cs new file mode 100644 index 0000000..0b2bd11 --- /dev/null +++ b/bdAsegasa/db/agentes_subagentes.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class agentes_subagentes +{ + public string? id { get; set; } + + public string? agente { get; set; } + + public string? subagente { get; set; } + + public string? clave { get; set; } + + public string? nombre { get; set; } + + public string? Email { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public uint? idSuborganizacion { get; set; } + + public string? codigoUsuarioAvant2 { get; set; } + + public string? contrasenaAvant2 { get; set; } +} diff --git a/bdAsegasa/db/amortizacionrecibos.cs b/bdAsegasa/db/amortizacionrecibos.cs new file mode 100644 index 0000000..07ad54d --- /dev/null +++ b/bdAsegasa/db/amortizacionrecibos.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class amortizacionrecibos +{ + public int idAmortizacion { get; set; } + + public int? idRecibo { get; set; } + + public DateOnly FechaInicioAmortizacion { get; set; } + + public DateOnly FechaFinAmortizacion { get; set; } + + public double? PorcentajeAnual { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idMotivoBaja { get; set; } + + public int idEmpresa { get; set; } + + public string? NumeroCuenta { get; set; } + + public string? Observaciones { get; set; } + + public DateOnly FechaAlta { get; set; } + + public virtual ICollection detallesamortizacionrecibos { get; set; } = new List(); + + public virtual enumeraciones idEmpresaNavigation { get; set; } = null!; + + public virtual enumeraciones? idMotivoBajaNavigation { get; set; } + + public virtual recibos? idReciboNavigation { get; set; } +} diff --git a/bdAsegasa/db/aplicacionesasientos.cs b/bdAsegasa/db/aplicacionesasientos.cs new file mode 100644 index 0000000..7b730a6 --- /dev/null +++ b/bdAsegasa/db/aplicacionesasientos.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class aplicacionesasientos +{ + public int idAplicacionAsiento { get; set; } + + public int? Tipo { get; set; } + + public int? idAplicacion { get; set; } + + public int? idAsiento { get; set; } + + public virtual asientos? idAsientoNavigation { get; set; } +} diff --git a/bdAsegasa/db/apuntes.cs b/bdAsegasa/db/apuntes.cs new file mode 100644 index 0000000..540d2a1 --- /dev/null +++ b/bdAsegasa/db/apuntes.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class apuntes +{ + public int idApunte { get; set; } + + /// + /// tabla cuentas + /// + public int idCuenta { get; set; } + + public string? Concepto { get; set; } + + public string? NumeroDocumento { get; set; } + + public double Debe { get; set; } + + public double Haber { get; set; } + + public int idAsiento { get; set; } + + public int? idConcepto { get; set; } + + public DateTime? FechaPunteo { get; set; } + + public int? TipoDocumento { get; set; } + + public int? idConciliacion { get; set; } + + public virtual asientos idAsientoNavigation { get; set; } = null!; + + public virtual conceptosapuntes? idConceptoNavigation { get; set; } + + public virtual conciliacionesbancarias? idConciliacionNavigation { get; set; } + + public virtual cuentas idCuentaNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/apuntesmodelo.cs b/bdAsegasa/db/apuntesmodelo.cs new file mode 100644 index 0000000..cf5e55b --- /dev/null +++ b/bdAsegasa/db/apuntesmodelo.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class apuntesmodelo +{ + public int idApunteModelo { get; set; } + + public string NumeroCuenta { get; set; } = null!; + + public string? Concepto { get; set; } + + public double Debe { get; set; } + + public double Haber { get; set; } + + public int idAsientoModelo { get; set; } + + public int? idConcepto { get; set; } + + public string? NumeroDocumento { get; set; } + + public int? TipoDocumento { get; set; } + + public int Orden { get; set; } + + public virtual asientosmodelos idAsientoModeloNavigation { get; set; } = null!; + + public virtual conceptosapuntes? idConceptoNavigation { get; set; } +} diff --git a/bdAsegasa/db/asientos.cs b/bdAsegasa/db/asientos.cs new file mode 100644 index 0000000..3bada9d --- /dev/null +++ b/bdAsegasa/db/asientos.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class asientos +{ + public int idAsiento { get; set; } + + public DateOnly Fecha { get; set; } + + public int idEjercicio { get; set; } + + public double Importe { get; set; } + + public int? NumeroAsiento { get; set; } + + public int Tipo { get; set; } + + public DateTime FechaIntroduccion { get; set; } + + public int? idUsuario { get; set; } + + public int? idAsientoModelo { get; set; } + + public DateTime? FechaPunteo { get; set; } + + public virtual ICollection aplicacionesasientos { get; set; } = new List(); + + public virtual ICollection apuntes { get; set; } = new List(); + + public virtual asientosmodelos? idAsientoModeloNavigation { get; set; } + + public virtual ejercicioscontables idEjercicioNavigation { get; set; } = null!; + + public virtual usuarios? idUsuarioNavigation { get; set; } + + public virtual ICollection liquidacionesagentes { get; set; } = new List(); + + public virtual ICollection liquidacionescompanias { get; set; } = new List(); + + public virtual ICollection pagosliquidacionescias { get; set; } = new List(); + + public virtual ICollection recibosidAsientoDevueltoBancoNavigation { get; set; } = new List(); + + public virtual ICollection recibosidAsientoFacturacionNavigation { get; set; } = new List(); + + public virtual ICollection remesas { get; set; } = new List(); +} diff --git a/bdAsegasa/db/asientosmodelos.cs b/bdAsegasa/db/asientosmodelos.cs new file mode 100644 index 0000000..1d325e1 --- /dev/null +++ b/bdAsegasa/db/asientosmodelos.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class asientosmodelos +{ + public int idAsientoModelo { get; set; } + + public string Codigo { get; set; } = null!; + + public DateTime FechaIntroduccion { get; set; } + + public int? idUsuario { get; set; } + + public string Descripcion { get; set; } = null!; + + public virtual ICollection apuntesmodelo { get; set; } = new List(); + + public virtual ICollection asientos { get; set; } = new List(); + + public virtual usuarios? idUsuarioNavigation { get; set; } +} diff --git a/bdAsegasa/db/autorizacionesgrupos.cs b/bdAsegasa/db/autorizacionesgrupos.cs new file mode 100644 index 0000000..b387aa8 --- /dev/null +++ b/bdAsegasa/db/autorizacionesgrupos.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class autorizacionesgrupos +{ + public int idAutorizaciongrupo { get; set; } + + public int? idGrupo { get; set; } + + public int? idPermiso { get; set; } + + public bool PermitirConsultas { get; set; } + + public bool PermitirNuevos { get; set; } + + public bool PermitirModificaciones { get; set; } + + public bool PermitirEliminaciones { get; set; } + + public bool PermitirImpresiones { get; set; } + + public bool PermitirExportar { get; set; } + + public bool OtrosPermisos { get; set; } + + public virtual gruposusuarios? idGrupoNavigation { get; set; } + + public virtual permisos? idPermisoNavigation { get; set; } +} diff --git a/bdAsegasa/db/autorizacionesusuarios.cs b/bdAsegasa/db/autorizacionesusuarios.cs new file mode 100644 index 0000000..2908cdc --- /dev/null +++ b/bdAsegasa/db/autorizacionesusuarios.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class autorizacionesusuarios +{ + public int idAutorizaciones { get; set; } + + public int? idUsuario { get; set; } + + public int idPermiso { get; set; } + + public bool PermitirConsultas { get; set; } + + public bool PermitirNuevos { get; set; } + + public bool PermitirModificaciones { get; set; } + + public bool PermitirEliminaciones { get; set; } + + public bool PermitirImpresiones { get; set; } + + public bool PermitirExportar { get; set; } + + public bool OtrosPermisos { get; set; } + + public virtual permisos idPermisoNavigation { get; set; } = null!; + + public virtual usuarios? idUsuarioNavigation { get; set; } +} diff --git a/bdAsegasa/db/avant2__agentes.cs b/bdAsegasa/db/avant2__agentes.cs new file mode 100644 index 0000000..87d01b5 --- /dev/null +++ b/bdAsegasa/db/avant2__agentes.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class avant2__agentes +{ + public uint id { get; set; } + + public uint? id_suborganizacion { get; set; } + + public string codigoAgente { get; set; } = null!; + + public string codigoSubAgente { get; set; } = null!; + + public string nombreAgente { get; set; } = null!; + + public string? codigoUsuarioAvant2 { get; set; } + + public string? contraseñaAvant2 { get; set; } + + public virtual avant2__suborganizaciones? id_suborganizacionNavigation { get; set; } +} diff --git a/bdAsegasa/db/avant2__sso.cs b/bdAsegasa/db/avant2__sso.cs new file mode 100644 index 0000000..b8d0339 --- /dev/null +++ b/bdAsegasa/db/avant2__sso.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class avant2__sso +{ + public uint id { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + public DateTime creacion { get; set; } + + public bool valido { get; set; } + + public string token { get; set; } = null!; + + public virtual agentes? idAgenteNavigation { get; set; } + + public virtual subagentes? idSubagenteNavigation { get; set; } +} diff --git a/bdAsegasa/db/avant2__suborganizaciones.cs b/bdAsegasa/db/avant2__suborganizaciones.cs new file mode 100644 index 0000000..5d86f57 --- /dev/null +++ b/bdAsegasa/db/avant2__suborganizaciones.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class avant2__suborganizaciones +{ + public uint id { get; set; } + + public string descripcion { get; set; } = null!; + + public string codigo { get; set; } = null!; + + public virtual ICollection agentes { get; set; } = new List(); + + public virtual ICollection avant2__agentes { get; set; } = new List(); + + public virtual ICollection subagentes { get; set; } = new List(); +} diff --git a/bdAsegasa/db/axa__tractores_temp1.cs b/bdAsegasa/db/axa__tractores_temp1.cs new file mode 100644 index 0000000..fa90104 --- /dev/null +++ b/bdAsegasa/db/axa__tractores_temp1.cs @@ -0,0 +1,105 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class axa__tractores_temp1 +{ + public int idPoliza { get; set; } + + public DateTime? FechaAlta { get; set; } + + public DateOnly? FechaEnvioCompania { get; set; } + + public string? NumeroPoliza { get; set; } + + public DateOnly? FechaReciboCompania { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + /// + /// tabla agentes + /// + public int idAgente { get; set; } + + public int? idSubAgente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoCobro { get; set; } + + public string? Matricula { get; set; } + + /// + /// Tabla Modelos + /// + public int? idModelo { get; set; } + + public int NumeroSuplemento { get; set; } + + /// + /// tabla usuarios, quien da de alta + /// + public int? idUsuario { get; set; } + + public DateOnly? FechaBaja { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idCausaBaja { get; set; } + + public DateOnly? FechaIncorporacionPropuesta { get; set; } + + public bool RechazoSuplemento { get; set; } + + /// + /// Numero de poliza del multitarificador + /// + public int? idMultitarificador { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Coberturas { get; set; } + + public string? Garantias { get; set; } + + public string? Observaciones { get; set; } + + public int? idTipoPago { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? NumeroDirectorio { get; set; } + + public string? IBAN { get; set; } + + public string? DescripcionSuplemento { get; set; } + + public int? idDuracion { get; set; } + + public int? idSituacion { get; set; } + + public int? idFicheroPresupuesto { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public int? idOrigenPresupuesto { get; set; } + + public string? ReferenciaAsegasa { get; set; } +} diff --git a/bdAsegasa/db/axa__tractores_temp2.cs b/bdAsegasa/db/axa__tractores_temp2.cs new file mode 100644 index 0000000..1eab58a --- /dev/null +++ b/bdAsegasa/db/axa__tractores_temp2.cs @@ -0,0 +1,105 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class axa__tractores_temp2 +{ + public int idPoliza { get; set; } + + public DateTime? FechaAlta { get; set; } + + public DateOnly? FechaEnvioCompania { get; set; } + + public string? NumeroPoliza { get; set; } + + public DateOnly? FechaReciboCompania { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + /// + /// tabla agentes + /// + public int idAgente { get; set; } + + public int? idSubAgente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoCobro { get; set; } + + public string? Matricula { get; set; } + + /// + /// Tabla Modelos + /// + public int? idModelo { get; set; } + + public int NumeroSuplemento { get; set; } + + /// + /// tabla usuarios, quien da de alta + /// + public int? idUsuario { get; set; } + + public DateOnly? FechaBaja { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idCausaBaja { get; set; } + + public DateOnly? FechaIncorporacionPropuesta { get; set; } + + public bool RechazoSuplemento { get; set; } + + /// + /// Numero de poliza del multitarificador + /// + public int? idMultitarificador { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Coberturas { get; set; } + + public string? Garantias { get; set; } + + public string? Observaciones { get; set; } + + public int? idTipoPago { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? NumeroDirectorio { get; set; } + + public string? IBAN { get; set; } + + public string? DescripcionSuplemento { get; set; } + + public int? idDuracion { get; set; } + + public int? idSituacion { get; set; } + + public int? idFicheroPresupuesto { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public int? idOrigenPresupuesto { get; set; } + + public string? ReferenciaAsegasa { get; set; } +} diff --git a/bdAsegasa/db/axa__tractores_temp3.cs b/bdAsegasa/db/axa__tractores_temp3.cs new file mode 100644 index 0000000..2d04daf --- /dev/null +++ b/bdAsegasa/db/axa__tractores_temp3.cs @@ -0,0 +1,105 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class axa__tractores_temp3 +{ + public int idPoliza { get; set; } + + public DateTime? FechaAlta { get; set; } + + public DateOnly? FechaEnvioCompania { get; set; } + + public string? NumeroPoliza { get; set; } + + public DateOnly? FechaReciboCompania { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + /// + /// tabla agentes + /// + public int idAgente { get; set; } + + public int? idSubAgente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoCobro { get; set; } + + public string? Matricula { get; set; } + + /// + /// Tabla Modelos + /// + public int? idModelo { get; set; } + + public int NumeroSuplemento { get; set; } + + /// + /// tabla usuarios, quien da de alta + /// + public int? idUsuario { get; set; } + + public DateOnly? FechaBaja { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idCausaBaja { get; set; } + + public DateOnly? FechaIncorporacionPropuesta { get; set; } + + public bool RechazoSuplemento { get; set; } + + /// + /// Numero de poliza del multitarificador + /// + public int? idMultitarificador { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Coberturas { get; set; } + + public string? Garantias { get; set; } + + public string? Observaciones { get; set; } + + public int? idTipoPago { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? NumeroDirectorio { get; set; } + + public string? IBAN { get; set; } + + public string? DescripcionSuplemento { get; set; } + + public int? idDuracion { get; set; } + + public int? idSituacion { get; set; } + + public int? idFicheroPresupuesto { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public int? idOrigenPresupuesto { get; set; } + + public string? ReferenciaAsegasa { get; set; } +} diff --git a/bdAsegasa/db/axa__tractores_temp4.cs b/bdAsegasa/db/axa__tractores_temp4.cs new file mode 100644 index 0000000..46b9906 --- /dev/null +++ b/bdAsegasa/db/axa__tractores_temp4.cs @@ -0,0 +1,105 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class axa__tractores_temp4 +{ + public int idPoliza { get; set; } + + public DateTime? FechaAlta { get; set; } + + public DateOnly? FechaEnvioCompania { get; set; } + + public string? NumeroPoliza { get; set; } + + public DateOnly? FechaReciboCompania { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + /// + /// tabla agentes + /// + public int idAgente { get; set; } + + public int? idSubAgente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoCobro { get; set; } + + public string? Matricula { get; set; } + + /// + /// Tabla Modelos + /// + public int? idModelo { get; set; } + + public int NumeroSuplemento { get; set; } + + /// + /// tabla usuarios, quien da de alta + /// + public int? idUsuario { get; set; } + + public DateOnly? FechaBaja { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idCausaBaja { get; set; } + + public DateOnly? FechaIncorporacionPropuesta { get; set; } + + public bool RechazoSuplemento { get; set; } + + /// + /// Numero de poliza del multitarificador + /// + public int? idMultitarificador { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Coberturas { get; set; } + + public string? Garantias { get; set; } + + public string? Observaciones { get; set; } + + public int? idTipoPago { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? NumeroDirectorio { get; set; } + + public string? IBAN { get; set; } + + public string? DescripcionSuplemento { get; set; } + + public int? idDuracion { get; set; } + + public int? idSituacion { get; set; } + + public int? idFicheroPresupuesto { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public int? idOrigenPresupuesto { get; set; } + + public string? ReferenciaAsegasa { get; set; } +} diff --git a/bdAsegasa/db/bancos.cs b/bdAsegasa/db/bancos.cs new file mode 100644 index 0000000..7ad45c8 --- /dev/null +++ b/bdAsegasa/db/bancos.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class bancos +{ + public string Codigo { get; set; } = null!; + + public string? Nombre { get; set; } + + public string? BIC { get; set; } + + public bool? Obsoleto { get; set; } +} diff --git a/bdAsegasa/db/bloqueos.cs b/bdAsegasa/db/bloqueos.cs new file mode 100644 index 0000000..13d8659 --- /dev/null +++ b/bdAsegasa/db/bloqueos.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class bloqueos +{ + public int idBloqueo { get; set; } + + public int idSesion { get; set; } + + public string Aplicacion { get; set; } = null!; + + public string idRegistroBloqueado { get; set; } = null!; + + public virtual sesiones idSesionNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/cajas.cs b/bdAsegasa/db/cajas.cs new file mode 100644 index 0000000..b6275b3 --- /dev/null +++ b/bdAsegasa/db/cajas.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class cajas +{ + public int idCaja { get; set; } + + public string Descripcion { get; set; } = null!; + + public int Tipo { get; set; } + + public int? idPermiso { get; set; } + + public string? IBAN { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public float SaldoAlCierre { get; set; } + + public DateOnly? FechaCierre { get; set; } + + public string? SufijoBancario { get; set; } + + public string Codigo { get; set; } = null!; + + public int Contador { get; set; } + + public string? CuentaContable { get; set; } + + public virtual ICollection conciliacionesbancarias { get; set; } = new List(); + + public virtual ICollection extractosbancarios { get; set; } = new List(); + + public virtual permisos? idPermisoNavigation { get; set; } +} diff --git a/bdAsegasa/db/caser__autologin.cs b/bdAsegasa/db/caser__autologin.cs new file mode 100644 index 0000000..85b166a --- /dev/null +++ b/bdAsegasa/db/caser__autologin.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class caser__autologin +{ + public uint id { get; set; } + + public string? claveagencia { get; set; } + + public string? subagencia { get; set; } + + public string csb { get; set; } = null!; + + public string? distribuidor { get; set; } + + public string? puntodeventa { get; set; } + + public string? produccionenvigor { get; set; } + + public string? oficina { get; set; } + + public string? terminal { get; set; } + + public string? nivel { get; set; } + + public bool oculto { get; set; } +} diff --git a/bdAsegasa/db/caser__autologin__agentes.cs b/bdAsegasa/db/caser__autologin__agentes.cs new file mode 100644 index 0000000..55e595e --- /dev/null +++ b/bdAsegasa/db/caser__autologin__agentes.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class caser__autologin__agentes +{ + public string? agente { get; set; } + + public string? subagente { get; set; } + + public string? nombre { get; set; } + + public string csb { get; set; } = null!; + + public string? distribuidor { get; set; } + + public string? produccionenvigor { get; set; } + + public string? oficina { get; set; } + + public string? terminal { get; set; } + + public string? nivel { get; set; } +} diff --git a/bdAsegasa/db/caser__marcas.cs b/bdAsegasa/db/caser__marcas.cs new file mode 100644 index 0000000..6a742aa --- /dev/null +++ b/bdAsegasa/db/caser__marcas.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class caser__marcas +{ + public int id { get; set; } + + public string? MARCA { get; set; } + + public string? FILLER { get; set; } + + public DateTime? FECHA_ACTUALIZACION { get; set; } +} diff --git a/bdAsegasa/db/caser__modelos.cs b/bdAsegasa/db/caser__modelos.cs new file mode 100644 index 0000000..00a04f3 --- /dev/null +++ b/bdAsegasa/db/caser__modelos.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class caser__modelos +{ + public int id { get; set; } + + public string? MARCA { get; set; } + + public string? MODELO { get; set; } + + public string? FILLER { get; set; } + + public DateTime? FECHA_ACTUALIZACION { get; set; } +} diff --git a/bdAsegasa/db/caser__tipos_combustible.cs b/bdAsegasa/db/caser__tipos_combustible.cs new file mode 100644 index 0000000..5e3f0cd --- /dev/null +++ b/bdAsegasa/db/caser__tipos_combustible.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class caser__tipos_combustible +{ + public int id { get; set; } + + public string? CODIGO { get; set; } + + public string? COMBUSTIBLE { get; set; } +} diff --git a/bdAsegasa/db/caser__tipos_vehiculos.cs b/bdAsegasa/db/caser__tipos_vehiculos.cs new file mode 100644 index 0000000..cb27fbb --- /dev/null +++ b/bdAsegasa/db/caser__tipos_vehiculos.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class caser__tipos_vehiculos +{ + public int id { get; set; } + + public string? COD_TIPO_VEHICULO { get; set; } + + public string? DENOMINACION { get; set; } + + public string? CLASE_VEHICULO { get; set; } + + public string? DESC_CLASE { get; set; } + + public string? CATEGORIA { get; set; } + + public string? FILLER { get; set; } + + public DateTime? FECHA_ACTUALIZACION { get; set; } +} diff --git a/bdAsegasa/db/caser__versiones.cs b/bdAsegasa/db/caser__versiones.cs new file mode 100644 index 0000000..43a9fec --- /dev/null +++ b/bdAsegasa/db/caser__versiones.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class caser__versiones +{ + public int id { get; set; } + + public string COD_VEHICULO { get; set; } = null!; + + public string? COD_TIPO_VEHICULO { get; set; } + + public string? MARCA { get; set; } + + public string? MODELO { get; set; } + + public string? VERSION { get; set; } + + public int? PUERTAS { get; set; } + + public int? POTENCIA { get; set; } + + public string? TIPO_VEHICULO { get; set; } + + public string? COMBUSTIBLE { get; set; } + + public int? TARA { get; set; } + + public int? PMA { get; set; } + + public int? CILINDRADA { get; set; } + + public int? VOLUMEN { get; set; } + + public string? CHASIS { get; set; } + + public string? LONGITUD { get; set; } + + public string? CAJA { get; set; } + + public string? CERRAMIENTO { get; set; } + + public string? TECHO { get; set; } + + public int? FECHA_LANZAMIENTO { get; set; } + + public int? PLAZAS { get; set; } + + public string? COD_PROHIBICION { get; set; } + + public string? CLASE_VEHICULO { get; set; } + + public string? FILLER { get; set; } + + public DateTime? FECHA_ACTUALIZACION { get; set; } +} diff --git a/bdAsegasa/db/celdasinformescontables.cs b/bdAsegasa/db/celdasinformescontables.cs new file mode 100644 index 0000000..f891361 --- /dev/null +++ b/bdAsegasa/db/celdasinformescontables.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class celdasinformescontables +{ + public int idCelda { get; set; } + + public int Hoja { get; set; } + + public int Fila { get; set; } + + public string Columna { get; set; } = null!; + + public int idInformeContable { get; set; } + + public string? Observaciones { get; set; } + + public string NombreCampo { get; set; } = null!; + + public virtual ICollection cuentasceldasinformescontables { get; set; } = new List(); + + public virtual informescontables idInformeContableNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/certificados.cs b/bdAsegasa/db/certificados.cs new file mode 100644 index 0000000..2a6d686 --- /dev/null +++ b/bdAsegasa/db/certificados.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class certificados +{ + public int idCertificado { get; set; } + + public string? Codigo { get; set; } + + public string? CIF { get; set; } + + public string? Tipo { get; set; } + + public string? Titulo { get; set; } + + public string? CERT_ID { get; set; } + + public DateTime? FechaValidez { get; set; } + + public DateTime? FechaCreacion { get; set; } + + public DateTime? FechaCaducidad { get; set; } + + public string? Observaciones { get; set; } + + public byte[]? ContenedorClaves { get; set; } +} diff --git a/bdAsegasa/db/codigospostales.cs b/bdAsegasa/db/codigospostales.cs new file mode 100644 index 0000000..91539a8 --- /dev/null +++ b/bdAsegasa/db/codigospostales.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class codigospostales +{ + public int idCodigoPostal { get; set; } + + public string CodigoPostal { get; set; } = null!; + + public string CodigoMunicipio { get; set; } = null!; + + public string? DescripcionAdicional { get; set; } + + public virtual municipios CodigoMunicipioNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/colectivos.cs b/bdAsegasa/db/colectivos.cs new file mode 100644 index 0000000..b8ad723 --- /dev/null +++ b/bdAsegasa/db/colectivos.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class colectivos +{ + public int idColectivo { get; set; } + + public string? descripcion { get; set; } + + public string? numeroOrden { get; set; } + + public string? referenciaHP { get; set; } + + public virtual ICollection polizasagrario { get; set; } = new List(); +} diff --git a/bdAsegasa/db/comarcas.cs b/bdAsegasa/db/comarcas.cs new file mode 100644 index 0000000..c6b4e59 --- /dev/null +++ b/bdAsegasa/db/comarcas.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class comarcas +{ + public string CodigoComarca { get; set; } = null!; + + public string CodigoProvincia { get; set; } = null!; + + public string? Nombre { get; set; } + + public virtual provincias CodigoProvinciaNavigation { get; set; } = null!; + + public virtual ICollection municipios { get; set; } = new List(); +} diff --git a/bdAsegasa/db/comisionesagentes.cs b/bdAsegasa/db/comisionesagentes.cs new file mode 100644 index 0000000..f0451bf --- /dev/null +++ b/bdAsegasa/db/comisionesagentes.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class comisionesagentes +{ + public int idComisionAgente { get; set; } + + public int? idAgente { get; set; } + + public int? idCompania { get; set; } + + public int? idRamo { get; set; } + + public double? Limite { get; set; } + + public double? ComisionMenorIgualLimiteEmision { get; set; } + + public double? ComisionMenorIgualLimiteCartera { get; set; } + + public double? ComisionMayorLimiteEmision { get; set; } + + public double? ComisionMayorLimiteCartera { get; set; } + + public virtual agentes? idAgenteNavigation { get; set; } + + public virtual companias? idCompaniaNavigation { get; set; } + + public virtual ramos? idRamoNavigation { get; set; } +} diff --git a/bdAsegasa/db/comisionescompanias.cs b/bdAsegasa/db/comisionescompanias.cs new file mode 100644 index 0000000..5ad7907 --- /dev/null +++ b/bdAsegasa/db/comisionescompanias.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class comisionescompanias +{ + public int idComisionCompania { get; set; } + + /// + /// tabla compañias + /// + public int? idCompania { get; set; } + + /// + /// tabla ramos + /// + public int? idRamo { get; set; } + + public double? PorcentajeComisionEmision { get; set; } + + public double? PorcentajeComisionCartera { get; set; } + + public double? PorcentajeComisionEmisionAgente { get; set; } + + public double? PorcentajeComisionCarteraAgente { get; set; } + + public DateOnly? FechaInicioCampana { get; set; } + + public DateOnly? FechaFinCampana { get; set; } + + public virtual companias? idCompaniaNavigation { get; set; } + + public virtual ramos? idRamoNavigation { get; set; } +} diff --git a/bdAsegasa/db/comisionlineacompania.cs b/bdAsegasa/db/comisionlineacompania.cs new file mode 100644 index 0000000..bc58d56 --- /dev/null +++ b/bdAsegasa/db/comisionlineacompania.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class comisionlineacompania +{ + public int idComisionLineaCompania { get; set; } + + public int? idCompania { get; set; } + + public DateOnly? fechaInicio { get; set; } + + public DateOnly? fechaFinal { get; set; } + + public string? codigoASEGASA { get; set; } + + public string? planLinea { get; set; } + + public double? porcentajeComision { get; set; } + + public double? porcentajeOGAS { get; set; } + + public double? porcentajeCGI { get; set; } + + public double? incentivos { get; set; } + + public virtual companias? idCompaniaNavigation { get; set; } +} diff --git a/bdAsegasa/db/companias.cs b/bdAsegasa/db/companias.cs new file mode 100644 index 0000000..e96113a --- /dev/null +++ b/bdAsegasa/db/companias.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class companias +{ + public int idCompania { get; set; } + + public string? Codigo { get; set; } + + public string? CodigoAsegasa { get; set; } + + public string? Nombre { get; set; } + + public string? CodigoAgrario { get; set; } + + public int? idDireccion { get; set; } + + public string? CIF { get; set; } + + public DateOnly? FechaAlta { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public string? Telefono1 { get; set; } + + public string? Telefono2 { get; set; } + + public string? Fax { get; set; } + + public double? LimiteRecargoExterno { get; set; } + + /// + /// tabla enumeraciones + /// + /// + public int? idTipoCobro { get; set; } + + /// + /// tabla enumeraciones + /// + public double? Consorcio { get; set; } + + public int? PlazoRetornoComision { get; set; } + + public int? DiaPlazoRetornoComision { get; set; } + + public string? CBSB { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoRedondeo { get; set; } + + public string? CuentaRecargosExternos { get; set; } + + public string? CuentaAlCobro { get; set; } + + public double? Rapell { get; set; } + + public string? Sufijo { get; set; } + + public string? Observaciones { get; set; } + + public string? Email { get; set; } + + public int? idUsuarioRevisor { get; set; } + + public string? IBANLiquidacion { get; set; } + + public string? emailLiquidacion { get; set; } + + public int FormaLiquidacion { get; set; } + + public string? CodigoDGS { get; set; } + + public double LimiteRemesa { get; set; } + + public int? NumeroDiasLimiteRemesa { get; set; } + + public int? NumeroDiasLimiteFBCartera { get; set; } + + public int? NumeroDiasLimiteFBEmision { get; set; } + + public string? IBANCobros1 { get; set; } + + public string? IBANCobros2 { get; set; } + + public string? IBANCobros3 { get; set; } + + public string? IBANCobros4 { get; set; } + + public string? Usuario { get; set; } + + public string? Contrasenna { get; set; } + + public virtual ICollection comisionesagentes { get; set; } = new List(); + + public virtual ICollection comisionescompanias { get; set; } = new List(); + + public virtual ICollection comisionlineacompania { get; set; } = new List(); + + public virtual ICollection departamentoscontactocompanias { get; set; } = new List(); + + public virtual ICollection excepcionesciasramos { get; set; } = new List(); + + public virtual ICollection ficheroscompanias { get; set; } = new List(); + + public virtual direcciones? idDireccionNavigation { get; set; } + + public virtual enumeraciones? idTipoCobroNavigation { get; set; } + + public virtual enumeraciones? idTipoRedondeoNavigation { get; set; } + + public virtual usuarios? idUsuarioRevisorNavigation { get; set; } + + public virtual ICollection incentivos { get; set; } = new List(); + + public virtual ICollection pagosliquidacionescias { get; set; } = new List(); + + public virtual ICollection personasdecontactocompanias { get; set; } = new List(); + + public virtual ICollection polizasagrario { get; set; } = new List(); + + public virtual ICollection polizassg { get; set; } = new List(); + + public virtual ICollection ramosdgscompania { get; set; } = new List(); + + public virtual ICollection siniestros_eiac { get; set; } = new List(); +} diff --git a/bdAsegasa/db/conceptosapuntes.cs b/bdAsegasa/db/conceptosapuntes.cs new file mode 100644 index 0000000..c55e9d6 --- /dev/null +++ b/bdAsegasa/db/conceptosapuntes.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class conceptosapuntes +{ + public int idConcepto { get; set; } + + public string Concepto { get; set; } = null!; + + public string Codigo { get; set; } = null!; + + public virtual ICollection apuntes { get; set; } = new List(); + + public virtual ICollection apuntesmodelo { get; set; } = new List(); +} diff --git a/bdAsegasa/db/conciliacionesbancarias.cs b/bdAsegasa/db/conciliacionesbancarias.cs new file mode 100644 index 0000000..243b4e4 --- /dev/null +++ b/bdAsegasa/db/conciliacionesbancarias.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class conciliacionesbancarias +{ + public int idconciliacion { get; set; } + + public DateTime FechaConciliacion { get; set; } + + public int? idUsuario { get; set; } + + public float TotalApuntes { get; set; } + + public float TotalMovimientosBancarios { get; set; } + + public DateOnly FechaInicio { get; set; } + + public DateOnly FechaFin { get; set; } + + public int idCaja { get; set; } + + public virtual ICollection apuntes { get; set; } = new List(); + + public virtual cajas idCajaNavigation { get; set; } = null!; + + public virtual usuarios? idUsuarioNavigation { get; set; } + + public virtual ICollection movimientosbancarios { get; set; } = new List(); +} diff --git a/bdAsegasa/db/conexiones.cs b/bdAsegasa/db/conexiones.cs new file mode 100644 index 0000000..22193bd --- /dev/null +++ b/bdAsegasa/db/conexiones.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class conexiones +{ + public int idConexion { get; set; } + + public string? Usuario { get; set; } + + public string? ip { get; set; } + + public DateTime? FechaHora { get; set; } + + public int idMysql { get; set; } +} diff --git a/bdAsegasa/db/conexionesbd.cs b/bdAsegasa/db/conexionesbd.cs new file mode 100644 index 0000000..005196e --- /dev/null +++ b/bdAsegasa/db/conexionesbd.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class conexionesbd +{ + public int idconexionesbd { get; set; } + + public int idgrupobd { get; set; } + + public string? ServidorLocal { get; set; } + + public string? ServidorRemoto { get; set; } + + public int? PuertoLocal { get; set; } + + public int? PuertoRemoto { get; set; } + + public string? Usuario { get; set; } + + public string? Password { get; set; } + + public string? Esquema { get; set; } + + public virtual grupobd idgrupobdNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/correos.cs b/bdAsegasa/db/correos.cs new file mode 100644 index 0000000..580aad6 --- /dev/null +++ b/bdAsegasa/db/correos.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class correos +{ + public int idcorreo { get; set; } + + public int? idcuenta { get; set; } + + public string? Remitente { get; set; } + + public string? Destinatario { get; set; } + + public string? Copia { get; set; } + + public string? CopiaOculta { get; set; } + + public string? DireccionRespuesta { get; set; } + + public string? Asunto { get; set; } + + public string? Cuerpo { get; set; } + + public string? RutaFicheroAdjunto { get; set; } + + public int? idFicheroAdjunto { get; set; } + + public DateTime? FechaCreacion { get; set; } + + public DateTime? FechaEnvio { get; set; } + + public DateTime? FechaUltimoIntento { get; set; } + + public DateTime? FechaAnulacion { get; set; } + + public DateTime? FechaAvisoError { get; set; } + + public int? idAplicacion { get; set; } + + public string? CodigoAplicacion { get; set; } + + public bool Reciclable { get; set; } + + public string? DescripcionError { get; set; } + + public virtual ICollection documentospolizassg { get; set; } = new List(); + + public virtual ICollection ficherosadjuntos { get; set; } = new List(); + + public virtual ICollection gestionesrecibos { get; set; } = new List(); + + public virtual ICollection gestionesvarias { get; set; } = new List(); + + public virtual ficheros? idFicheroAdjuntoNavigation { get; set; } + + public virtual cuentascorreo? idcuentaNavigation { get; set; } + + public virtual ICollection liquidacionesagentes { get; set; } = new List(); + + public virtual ICollection pagosliquidacionescias { get; set; } = new List(); +} diff --git a/bdAsegasa/db/cuentas.cs b/bdAsegasa/db/cuentas.cs new file mode 100644 index 0000000..7a0b852 --- /dev/null +++ b/bdAsegasa/db/cuentas.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class cuentas +{ + public int idCuenta { get; set; } + + public string? Mote { get; set; } + + public string Denominacion { get; set; } = null!; + + public double PresupuestoEnero { get; set; } + + public double PresupuestoFebrero { get; set; } + + public double PresupuestoMarzo { get; set; } + + public double PresupuestoAbril { get; set; } + + public double PresupuestoMayo { get; set; } + + public double PresupuestoJunio { get; set; } + + public double PresupuestoJulio { get; set; } + + public double PresupuestoAgosto { get; set; } + + public double PresupuestoSeptiembre { get; set; } + + public double PresupuestoOctubre { get; set; } + + public double PresupuestoNoviembre { get; set; } + + public double PresupuestoDiciembre { get; set; } + + public string? Observaciones { get; set; } + + public string NumeroCuenta { get; set; } = null!; + + public int idEjercicio { get; set; } + + public int? idEmpresaAmortizacion { get; set; } + + public bool EsCuentaFinal { get; set; } + + public virtual ICollection apuntes { get; set; } = new List(); + + public virtual ejercicioscontables idEjercicioNavigation { get; set; } = null!; + + public virtual enumeraciones? idEmpresaAmortizacionNavigation { get; set; } +} diff --git a/bdAsegasa/db/cuentasceldasinformescontables.cs b/bdAsegasa/db/cuentasceldasinformescontables.cs new file mode 100644 index 0000000..7a16bb1 --- /dev/null +++ b/bdAsegasa/db/cuentasceldasinformescontables.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class cuentasceldasinformescontables +{ + public int idCuenta { get; set; } + + public string NumeroCuenta { get; set; } = null!; + + public int Factor { get; set; } + + public bool SoloSiPositivo { get; set; } + + public bool SoloSiNegativo { get; set; } + + public int? idCelda { get; set; } + + public virtual celdasinformescontables? idCeldaNavigation { get; set; } +} diff --git a/bdAsegasa/db/cuentascorreo.cs b/bdAsegasa/db/cuentascorreo.cs new file mode 100644 index 0000000..219eb1d --- /dev/null +++ b/bdAsegasa/db/cuentascorreo.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class cuentascorreo +{ + public int idCuenta { get; set; } + + public string? Codigo { get; set; } + + public string? ServidorSMTP { get; set; } + + public string? Remitente { get; set; } + + public string? CuentaCorreo { get; set; } + + public string? Password { get; set; } + + public int? Puerto { get; set; } + + public bool SSL { get; set; } + + public bool Deshabilitada { get; set; } + + public string? ResponderA { get; set; } + + public string? ParametroConexion1 { get; set; } + + public string? ParametroConexion2 { get; set; } + + public DateTime? FechaAvisoCaducidadCredenciales { get; set; } + + public virtual ICollection correos { get; set; } = new List(); +} diff --git a/bdAsegasa/db/departamentos.cs b/bdAsegasa/db/departamentos.cs new file mode 100644 index 0000000..11f9cc4 --- /dev/null +++ b/bdAsegasa/db/departamentos.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class departamentos +{ + public int idDepartamentos { get; set; } + + public string Descripcion { get; set; } = null!; + + public int idUsuarioResponsable { get; set; } + + public virtual ICollection departamentosmiembros { get; set; } = new List(); + + public virtual usuarios idUsuarioResponsableNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/departamentoscontactocompanias.cs b/bdAsegasa/db/departamentoscontactocompanias.cs new file mode 100644 index 0000000..90872f9 --- /dev/null +++ b/bdAsegasa/db/departamentoscontactocompanias.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class departamentoscontactocompanias +{ + public int idDepartamentosContactoCompania { get; set; } + + public int? idCompania { get; set; } + + public int? idDepartamento { get; set; } + + public string? Telefono { get; set; } + + public string? Email { get; set; } + + public bool MostrarEnAPP { get; set; } + + public virtual companias? idCompaniaNavigation { get; set; } + + public virtual enumeraciones? idDepartamentoNavigation { get; set; } +} diff --git a/bdAsegasa/db/departamentosmiembros.cs b/bdAsegasa/db/departamentosmiembros.cs new file mode 100644 index 0000000..ab9e343 --- /dev/null +++ b/bdAsegasa/db/departamentosmiembros.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class departamentosmiembros +{ + public int idDepartamentosMiembros { get; set; } + + public int idDepartamento { get; set; } + + public int idUsuario { get; set; } + + public int idPuesto { get; set; } + + public virtual departamentos idDepartamentoNavigation { get; set; } = null!; + + public virtual enumeraciones idPuestoNavigation { get; set; } = null!; + + public virtual usuarios idUsuarioNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/destinos.cs b/bdAsegasa/db/destinos.cs new file mode 100644 index 0000000..df8ab7a --- /dev/null +++ b/bdAsegasa/db/destinos.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class destinos +{ + public int idDestinos { get; set; } + + public int idLiquidacionViaje { get; set; } + + public string? Lugar { get; set; } + + public string? Concepto { get; set; } + + public virtual liquidacionesviajes idLiquidacionViajeNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/detallesamortizacionrecibos.cs b/bdAsegasa/db/detallesamortizacionrecibos.cs new file mode 100644 index 0000000..a53aef4 --- /dev/null +++ b/bdAsegasa/db/detallesamortizacionrecibos.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class detallesamortizacionrecibos +{ + public int idDetalle { get; set; } + + public int Mes { get; set; } + + public double ValorAmortizado { get; set; } + + public double ValorAcumulado { get; set; } + + public double ValorResidual { get; set; } + + public int? idAmortizacion { get; set; } + + public DateTime? FechaAplicacion { get; set; } + + public virtual amortizacionrecibos? idAmortizacionNavigation { get; set; } +} diff --git a/bdAsegasa/db/direcciones.cs b/bdAsegasa/db/direcciones.cs new file mode 100644 index 0000000..d1f9104 --- /dev/null +++ b/bdAsegasa/db/direcciones.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class direcciones +{ + public int idDireccion { get; set; } + + public string? Direccion { get; set; } + + public int? idEntidad { get; set; } + + public string? CodigoPostal { get; set; } + + public string? CodigoMunicipio { get; set; } + + public int? idTipo { get; set; } + + public virtual municipios? CodigoMunicipioNavigation { get; set; } + + public virtual ICollection agentes { get; set; } = new List(); + + public virtual ICollection companias { get; set; } = new List(); + + public virtual ICollection entidades { get; set; } = new List(); + + public virtual ICollection entidadespolizas { get; set; } = new List(); + + public virtual entidades? idEntidadNavigation { get; set; } + + public virtual enumeraciones? idTipoNavigation { get; set; } + + public virtual ICollection polizasagrario { get; set; } = new List(); + + public virtual ICollection siniestros_eiac { get; set; } = new List(); +} diff --git a/bdAsegasa/db/documentosasolicitar.cs b/bdAsegasa/db/documentosasolicitar.cs new file mode 100644 index 0000000..887b77c --- /dev/null +++ b/bdAsegasa/db/documentosasolicitar.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class documentosasolicitar +{ + public int idDocumento { get; set; } + + public int idRamo { get; set; } + + public int idTipo { get; set; } + + public string? Observaciones { get; set; } + + public bool SolicitarAAgente { get; set; } + + public bool EnviarEmailAAsegasa { get; set; } + + public bool Obligatorio { get; set; } + + public virtual ICollection documentospolizassg { get; set; } = new List(); + + public virtual ramos idRamoNavigation { get; set; } = null!; + + public virtual enumeraciones idTipoNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/documentospolizasagrario.cs b/bdAsegasa/db/documentospolizasagrario.cs new file mode 100644 index 0000000..eee33d8 --- /dev/null +++ b/bdAsegasa/db/documentospolizasagrario.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class documentospolizasagrario +{ + public int idDocumento { get; set; } + + public string? Descripcion { get; set; } + + public int idPoliza { get; set; } + + public int? idFichero { get; set; } + + public DateTime? Fecha { get; set; } + + public int? idUsuarioAdjuntaFichero { get; set; } + + public virtual ficheros? idFicheroNavigation { get; set; } + + public virtual polizasagrario idPolizaNavigation { get; set; } = null!; + + public virtual usuarios? idUsuarioAdjuntaFicheroNavigation { get; set; } +} diff --git a/bdAsegasa/db/documentospolizassg.cs b/bdAsegasa/db/documentospolizassg.cs new file mode 100644 index 0000000..727a608 --- /dev/null +++ b/bdAsegasa/db/documentospolizassg.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class documentospolizassg +{ + public int idDocumento { get; set; } + + public string? Descripcion { get; set; } + + public int idPoliza { get; set; } + + public int? idDocumentoASolicitar { get; set; } + + public int? idFichero { get; set; } + + public DateTime? FechaComprobacion { get; set; } + + public int? idUsuarioComprueba { get; set; } + + public int? idCorreoAsegasa { get; set; } + + public bool Obligatorio { get; set; } + + public DateTime? Fecha { get; set; } + + public int? idUsuarioAdjuntaFichero { get; set; } + + public int? idRecibo { get; set; } + + public string? Codigo { get; set; } + + public int Tipo { get; set; } + + public string? Hash { get; set; } + + public virtual correos? idCorreoAsegasaNavigation { get; set; } + + public virtual documentosasolicitar? idDocumentoASolicitarNavigation { get; set; } + + public virtual ficheros? idFicheroNavigation { get; set; } + + public virtual polizassg idPolizaNavigation { get; set; } = null!; + + public virtual recibos? idReciboNavigation { get; set; } + + public virtual usuarios? idUsuarioAdjuntaFicheroNavigation { get; set; } + + public virtual usuarios? idUsuarioCompruebaNavigation { get; set; } +} diff --git a/bdAsegasa/db/documentossiniestros.cs b/bdAsegasa/db/documentossiniestros.cs new file mode 100644 index 0000000..fd59c01 --- /dev/null +++ b/bdAsegasa/db/documentossiniestros.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class documentossiniestros +{ + public int idDocumento { get; set; } + + public string? Descripcion { get; set; } + + public DateTime? Fecha { get; set; } + + public byte[]? Fichero { get; set; } + + public int? idSiniestro { get; set; } + + public string? NombreFichero { get; set; } + + public virtual siniestros? idSiniestroNavigation { get; set; } +} diff --git a/bdAsegasa/db/documentosvarios.cs b/bdAsegasa/db/documentosvarios.cs new file mode 100644 index 0000000..a1cab3b --- /dev/null +++ b/bdAsegasa/db/documentosvarios.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class documentosvarios +{ + public int idDocumentosVarios { get; set; } + + public string? Descripcion { get; set; } + + public int? idUsuarioRevisor { get; set; } + + public DateTime FechaEmision { get; set; } + + public DateTime? FechaRevision { get; set; } + + public DateTime? FechaModificacion { get; set; } + + public int idTipo { get; set; } + + public int idEstado { get; set; } + + public int idFichero { get; set; } + + public virtual enumeraciones idEstadoNavigation { get; set; } = null!; + + public virtual ficheros idFicheroNavigation { get; set; } = null!; + + public virtual enumeraciones idTipoNavigation { get; set; } = null!; + + public virtual usuarios? idUsuarioRevisorNavigation { get; set; } +} diff --git a/bdAsegasa/db/ejercicioscontables.cs b/bdAsegasa/db/ejercicioscontables.cs new file mode 100644 index 0000000..a2eb281 --- /dev/null +++ b/bdAsegasa/db/ejercicioscontables.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class ejercicioscontables +{ + public int idEjercicio { get; set; } + + public DateOnly FechaInicio { get; set; } + + public DateOnly FechaFin { get; set; } + + public DateOnly FechaApertura { get; set; } + + public DateOnly? FechaCierre { get; set; } + + public int idEmpresa { get; set; } + + public string? NivelesCuentas { get; set; } + + public string Descripcion { get; set; } = null!; + + public virtual ICollection asientos { get; set; } = new List(); + + public virtual ICollection cuentas { get; set; } = new List(); + + public virtual empresascontables idEmpresaNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/empresascontables.cs b/bdAsegasa/db/empresascontables.cs new file mode 100644 index 0000000..61c8b37 --- /dev/null +++ b/bdAsegasa/db/empresascontables.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class empresascontables +{ + public int idEmpresaContable { get; set; } + + public string RazonSocial { get; set; } = null!; + + public DateTime? FechaBaja { get; set; } + + public virtual ICollection ejercicioscontables { get; set; } = new List(); +} diff --git a/bdAsegasa/db/entidades.cs b/bdAsegasa/db/entidades.cs new file mode 100644 index 0000000..1f17fb3 --- /dev/null +++ b/bdAsegasa/db/entidades.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class entidades +{ + public int idEntidad { get; set; } + + public string? CIF { get; set; } + + public string? RazonSocial { get; set; } + + public string? Apellidos { get; set; } + + public string? Nombre { get; set; } + + public string? Telefono1 { get; set; } + + public string? Telefono2 { get; set; } + + public string? AfiliacionSeguridadSocial { get; set; } + + public string? Email { get; set; } + + public string? IBAN { get; set; } + + public int? idSexo { get; set; } + + public DateOnly? FechaNacimiento { get; set; } + + public DateOnly? FechaExpedicionCarnet { get; set; } + + public int? idTipoPago { get; set; } + + public string? CuentaContable { get; set; } + + public bool VIP { get; set; } + + public string? Situacion { get; set; } + + public string? Observacion { get; set; } + + public bool EsClienteSG { get; set; } + + public bool EsTaller { get; set; } + + public bool EsContrarioSiniestro { get; set; } + + public int? idDireccionPrincipal { get; set; } + + public string? EstadoCivil { get; set; } + + public bool EsClienteSA { get; set; } + + public bool EsProveedor { get; set; } + + public string? SHA1Passwd { get; set; } + + public DateTime? FechaAltaServiciosWeb { get; set; } + + public string? Avisos { get; set; } + + public virtual ICollection direcciones { get; set; } = new List(); + + public virtual ICollection entidades_tokens { get; set; } = new List(); + + public virtual ICollection entidadespolizas { get; set; } = new List(); + + public virtual ICollection entidadesrelacionadasidEntidadHijoNavigation { get; set; } = new List(); + + public virtual ICollection entidadesrelacionadasidEntidadPadreNavigation { get; set; } = new List(); + + public virtual direcciones? idDireccionPrincipalNavigation { get; set; } + + public virtual enumeraciones? idSexoNavigation { get; set; } + + public virtual enumeraciones? idTipoPagoNavigation { get; set; } + + public virtual ICollection personasdecontactoentidades { get; set; } = new List(); + + public virtual ICollection polizasagrarioidAseguradoNavigation { get; set; } = new List(); + + public virtual ICollection polizasagrarioidTomadorNavigation { get; set; } = new List(); + + public virtual ICollection siniestrosidEntidadContrarioNavigation { get; set; } = new List(); + + public virtual ICollection siniestrosidEntidadTallerNavigation { get; set; } = new List(); +} diff --git a/bdAsegasa/db/entidades_tokens.cs b/bdAsegasa/db/entidades_tokens.cs new file mode 100644 index 0000000..6c80c40 --- /dev/null +++ b/bdAsegasa/db/entidades_tokens.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class entidades_tokens +{ + public uint id { get; set; } + + public int? idEntidad { get; set; } + + public DateTime creacion { get; set; } + + public bool valido { get; set; } + + public string token { get; set; } = null!; + + public virtual entidades? idEntidadNavigation { get; set; } +} diff --git a/bdAsegasa/db/entidadespolizas.cs b/bdAsegasa/db/entidadespolizas.cs new file mode 100644 index 0000000..09ac968 --- /dev/null +++ b/bdAsegasa/db/entidadespolizas.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class entidadespolizas +{ + public int idEntidadPoliza { get; set; } + + /// + /// tabla polizas + /// + public int idPoliza { get; set; } + + /// + /// tabla entidad + /// + public int idEntidad { get; set; } + + /// + /// tabla enumeraciones + /// + public bool EsTomador { get; set; } + + public bool EsConductorHabitual { get; set; } + + public bool EsConductorOcasional { get; set; } + + public bool EsPagador { get; set; } + + public bool EsPropietario { get; set; } + + public int? idDireccion { get; set; } + + public string? Observaciones { get; set; } + + public string? Telefono1 { get; set; } + + public string? Telefono2 { get; set; } + + public string? Email { get; set; } + + public virtual direcciones? idDireccionNavigation { get; set; } + + public virtual entidades idEntidadNavigation { get; set; } = null!; + + public virtual polizassg idPolizaNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/entidadesrelacionadas.cs b/bdAsegasa/db/entidadesrelacionadas.cs new file mode 100644 index 0000000..cae17c9 --- /dev/null +++ b/bdAsegasa/db/entidadesrelacionadas.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class entidadesrelacionadas +{ + public int idEntidadRelacionada { get; set; } + + public int idEntidadPadre { get; set; } + + public int? idEntidadHijo { get; set; } + + public string? Observaciones { get; set; } + + public virtual entidades? idEntidadHijoNavigation { get; set; } + + public virtual entidades idEntidadPadreNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/enumeraciones.cs b/bdAsegasa/db/enumeraciones.cs new file mode 100644 index 0000000..d03f042 --- /dev/null +++ b/bdAsegasa/db/enumeraciones.cs @@ -0,0 +1,153 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class enumeraciones +{ + public int idEnumeracion { get; set; } + + public int idGrupoEnumeracion { get; set; } + + public string? Codigo { get; set; } + + public string Descripcion { get; set; } = null!; + + public string? ValorAlfabetico1 { get; set; } + + public string? ValorAlfabetico2 { get; set; } + + public double? ValorNumerico1 { get; set; } + + public double? ValorNumerico2 { get; set; } + + public int? Orden { get; set; } + + public bool Oculto { get; set; } + + public string? ValorAlfabetico3 { get; set; } + + public string? ValorAlfabetico4 { get; set; } + + public string? ValorAlfabeticoLargo { get; set; } + + public double? ValorNumerico3 { get; set; } + + public double? ValorNumerico4 { get; set; } + + public DateTime? Fecha1 { get; set; } + + public DateTime? Fecha2 { get; set; } + + public DateTime? Fecha3 { get; set; } + + public DateTime? Fecha4 { get; set; } + + public virtual ICollection actassiniestrosagrario { get; set; } = new List(); + + public virtual ICollection agentesidFormaPagoNavigation { get; set; } = new List(); + + public virtual ICollection agentesidRutaNavigation { get; set; } = new List(); + + public virtual ICollection amortizacionrecibosidEmpresaNavigation { get; set; } = new List(); + + public virtual ICollection amortizacionrecibosidMotivoBajaNavigation { get; set; } = new List(); + + public virtual ICollection companiasidTipoCobroNavigation { get; set; } = new List(); + + public virtual ICollection companiasidTipoRedondeoNavigation { get; set; } = new List(); + + public virtual ICollection cuentas { get; set; } = new List(); + + public virtual ICollection departamentoscontactocompanias { get; set; } = new List(); + + public virtual ICollection departamentosmiembros { get; set; } = new List(); + + public virtual ICollection direcciones { get; set; } = new List(); + + public virtual ICollection documentosasolicitar { get; set; } = new List(); + + public virtual ICollection documentosvariosidEstadoNavigation { get; set; } = new List(); + + public virtual ICollection documentosvariosidTipoNavigation { get; set; } = new List(); + + public virtual ICollection entidadesidSexoNavigation { get; set; } = new List(); + + public virtual ICollection entidadesidTipoPagoNavigation { get; set; } = new List(); + + public virtual ICollection expedientespolizas { get; set; } = new List(); + + public virtual ICollection expedientesrecibos { get; set; } = new List(); + + public virtual ICollection ficheros { get; set; } = new List(); + + public virtual ICollection gestionespolizasagrario { get; set; } = new List(); + + public virtual ICollection gestionespolizassg { get; set; } = new List(); + + public virtual ICollection gestionesvarias { get; set; } = new List(); + + public virtual gruposenumeraciones idGrupoEnumeracionNavigation { get; set; } = null!; + + public virtual ICollection liquidacionesagentes { get; set; } = new List(); + + public virtual ICollection liquidacionescompanias { get; set; } = new List(); + + public virtual ICollection liquidacionesviajes { get; set; } = new List(); + + public virtual ICollection modificacionespolizasagrario { get; set; } = new List(); + + public virtual ICollection pagossiniestros_eiac { get; set; } = new List(); + + public virtual ICollection personasdecontactoagentes { get; set; } = new List(); + + public virtual ICollection planeslineas { get; set; } = new List(); + + public virtual ICollection plantillasidGrupoNavigation { get; set; } = new List(); + + public virtual ICollection plantillasidTipoNavigation { get; set; } = new List(); + + public virtual ICollection polizassgidCausaBajaNavigation { get; set; } = new List(); + + public virtual ICollection polizassgidDuracionNavigation { get; set; } = new List(); + + public virtual ICollection polizassgidSituacionNavigation { get; set; } = new List(); + + public virtual ICollection polizassgidTipoCobroNavigation { get; set; } = new List(); + + public virtual ICollection polizassgidTipoPagoNavigation { get; set; } = new List(); + + public virtual ICollection procesosidSubtipoNavigation { get; set; } = new List(); + + public virtual ICollection procesosidTipoNavigation { get; set; } = new List(); + + public virtual ICollection ramosidFamiliaDGSNavigation { get; set; } = new List(); + + public virtual ICollection ramosidFamiliaRamoNavigation { get; set; } = new List(); + + public virtual ICollection recibosidCausaBajaNavigation { get; set; } = new List(); + + public virtual ICollection recibosidCausaDevolucionNavigation { get; set; } = new List(); + + public virtual ICollection recibosidDuracionNavigation { get; set; } = new List(); + + public virtual ICollection recibosidSituacionNavigation { get; set; } = new List(); + + public virtual ICollection recibosidTipoNavigation { get; set; } = new List(); + + public virtual ICollection recibosidTipoPagoNavigation { get; set; } = new List(); + + public virtual ICollection remesas { get; set; } = new List(); + + public virtual ICollection siniestrosidCulpaNavigation { get; set; } = new List(); + + public virtual ICollection siniestrosidTramitacionNavigation { get; set; } = new List(); + + public virtual ICollection tiposgestionsiniestrosidClaseNavigation { get; set; } = new List(); + + public virtual ICollection tiposgestionsiniestrosidDestinatarioNavigation { get; set; } = new List(); + + public virtual ICollection usuarios { get; set; } = new List(); +} diff --git a/bdAsegasa/db/epiban.cs b/bdAsegasa/db/epiban.cs new file mode 100644 index 0000000..604a459 --- /dev/null +++ b/bdAsegasa/db/epiban.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class epiban +{ + /// + /// tabla entidad + /// + public int identidad { get; set; } + + public string? IBAN { get; set; } +} diff --git a/bdAsegasa/db/estadossiniestros_eiac.cs b/bdAsegasa/db/estadossiniestros_eiac.cs new file mode 100644 index 0000000..eaadf3e --- /dev/null +++ b/bdAsegasa/db/estadossiniestros_eiac.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class estadossiniestros_eiac +{ + public int idEstado { get; set; } + + public int idSiniestroEIAC { get; set; } + + public int NumeroOrden { get; set; } + + public int? SituacionSiniestro { get; set; } + + public string? DescripcionSituacion { get; set; } + + public virtual siniestros_eiac idSiniestroEIACNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/excepcionesciasramos.cs b/bdAsegasa/db/excepcionesciasramos.cs new file mode 100644 index 0000000..eb625f1 --- /dev/null +++ b/bdAsegasa/db/excepcionesciasramos.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class excepcionesciasramos +{ + public int idExcepcion { get; set; } + + public int idCompania { get; set; } + + public int idRamo { get; set; } + + public int NumeroDiasRemesaPago { get; set; } + + public virtual companias idCompaniaNavigation { get; set; } = null!; + + public virtual ramos idRamoNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/expedientesagentes.cs b/bdAsegasa/db/expedientesagentes.cs new file mode 100644 index 0000000..e13171e --- /dev/null +++ b/bdAsegasa/db/expedientesagentes.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class expedientesagentes +{ + public int idExpediente { get; set; } + + public string? Descripcion { get; set; } + + public DateTime? Fecha { get; set; } + + public int? idFichero { get; set; } + + public int? idAgente { get; set; } + + public int? idUsuario { get; set; } + + public virtual agentes? idAgenteNavigation { get; set; } + + public virtual ficheros? idFicheroNavigation { get; set; } + + public virtual usuarios? idUsuarioNavigation { get; set; } +} diff --git a/bdAsegasa/db/expedientespolizas.cs b/bdAsegasa/db/expedientespolizas.cs new file mode 100644 index 0000000..871d82d --- /dev/null +++ b/bdAsegasa/db/expedientespolizas.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class expedientespolizas +{ + public int idExpedientePoliza { get; set; } + + public DateTime? FechaHora { get; set; } + + /// + /// tabla + /// + public int? idTipo { get; set; } + + public string? Valor1Alfabetico { get; set; } + + public string? Valor2Alfabetico { get; set; } + + public string? Valor3Alfabetico { get; set; } + + public double? Valor1Numerico { get; set; } + + public double? Valor2Numerico { get; set; } + + public string? Valor3Numerico { get; set; } + + public int idPoliza { get; set; } + + public virtual polizassg idPolizaNavigation { get; set; } = null!; + + public virtual enumeraciones? idTipoNavigation { get; set; } +} diff --git a/bdAsegasa/db/expedientesrecibos.cs b/bdAsegasa/db/expedientesrecibos.cs new file mode 100644 index 0000000..69b47f9 --- /dev/null +++ b/bdAsegasa/db/expedientesrecibos.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class expedientesrecibos +{ + public int idExpedienteRecibo { get; set; } + + public DateTime? FechaHora { get; set; } + + /// + /// tabla + /// + public int? idTipo { get; set; } + + public string? Valor1Alfabetico { get; set; } + + public string? Valor2Alfabetico { get; set; } + + public double? Valor1Numerico { get; set; } + + public double? Valor2Numerico { get; set; } + + public int? idRecibo { get; set; } + + public virtual recibos? idReciboNavigation { get; set; } + + public virtual enumeraciones? idTipoNavigation { get; set; } +} diff --git a/bdAsegasa/db/expedientessiniestros_eiac.cs b/bdAsegasa/db/expedientessiniestros_eiac.cs new file mode 100644 index 0000000..b9bef38 --- /dev/null +++ b/bdAsegasa/db/expedientessiniestros_eiac.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class expedientessiniestros_eiac +{ + public int idExpedienteEIAC { get; set; } + + public string NumeroExpediente { get; set; } = null!; + + public int EstadoExpediente { get; set; } + + public double? ImporteReserva { get; set; } + + public double? TotalPagos { get; set; } + + public double? TotalRecobros { get; set; } + + public DateTime? FechaInicio { get; set; } + + public DateTime? FechaFin { get; set; } + + public int idSiniestroEIAC { get; set; } + + public int NumeroOrden { get; set; } + + public virtual siniestros_eiac idSiniestroEIACNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/extractosbancarios.cs b/bdAsegasa/db/extractosbancarios.cs new file mode 100644 index 0000000..f8729ed --- /dev/null +++ b/bdAsegasa/db/extractosbancarios.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class extractosbancarios +{ + public int idExtracto { get; set; } + + public int idCaja { get; set; } + + public DateOnly FechaInicial { get; set; } + + public DateOnly FechaFinal { get; set; } + + public float SaldoAnterior { get; set; } + + public DateTime FechaLectura { get; set; } + + public int idUsuario { get; set; } + + public virtual cajas idCajaNavigation { get; set; } = null!; + + public virtual usuarios idUsuarioNavigation { get; set; } = null!; + + public virtual ICollection movimientosbancarios { get; set; } = new List(); +} diff --git a/bdAsegasa/db/ficheros.cs b/bdAsegasa/db/ficheros.cs new file mode 100644 index 0000000..0f20776 --- /dev/null +++ b/bdAsegasa/db/ficheros.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class ficheros +{ + public int idFichero { get; set; } + + public string? Descripcion { get; set; } + + public DateTime? Fecha { get; set; } + + public int? idTipo { get; set; } + + public string? Observaciones { get; set; } + + public byte[]? Fichero { get; set; } + + public string? NombreFichero { get; set; } + + public int? idAplicacion { get; set; } + + public virtual ICollection correos { get; set; } = new List(); + + public virtual ICollection documentospolizasagrario { get; set; } = new List(); + + public virtual ICollection documentospolizassg { get; set; } = new List(); + + public virtual ICollection documentosvarios { get; set; } = new List(); + + public virtual ICollection expedientesagentes { get; set; } = new List(); + + public virtual ICollection ficherosadjuntos { get; set; } = new List(); + + public virtual ICollection gestionesrecibos { get; set; } = new List(); + + public virtual ICollection gestionessiniestros { get; set; } = new List(); + + public virtual ICollection gestionesvarias { get; set; } = new List(); + + public virtual enumeraciones? idTipoNavigation { get; set; } + + public virtual ICollection informescontables { get; set; } = new List(); + + public virtual ICollection liquidacionesagentes { get; set; } = new List(); + + public virtual ICollection notificaciones { get; set; } = new List(); + + public virtual ICollection pagosliquidacionescias { get; set; } = new List(); + + public virtual ICollection plantillas { get; set; } = new List(); + + public virtual ICollection polizassg { get; set; } = new List(); + + public virtual ICollection procesos { get; set; } = new List(); + + public virtual ICollection remesas { get; set; } = new List(); + + public virtual ICollection tiposgestionsiniestros { get; set; } = new List(); +} diff --git a/bdAsegasa/db/ficherosadjuntos.cs b/bdAsegasa/db/ficherosadjuntos.cs new file mode 100644 index 0000000..480b984 --- /dev/null +++ b/bdAsegasa/db/ficherosadjuntos.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class ficherosadjuntos +{ + public int idFicheroAdjunto { get; set; } + + public int idFichero { get; set; } + + public int idCorreo { get; set; } + + public virtual correos idCorreoNavigation { get; set; } = null!; + + public virtual ficheros idFicheroNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/ficheroscompanias.cs b/bdAsegasa/db/ficheroscompanias.cs new file mode 100644 index 0000000..7d54d80 --- /dev/null +++ b/bdAsegasa/db/ficheroscompanias.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class ficheroscompanias +{ + public int idFichero { get; set; } + + public DateTime FechaCreacion { get; set; } + + public DateTime? FechaProcesado { get; set; } + + public DateTime? FechaError { get; set; } + + public string? NombreFichero { get; set; } + + public int Tipo { get; set; } + + public int? idUsuario { get; set; } + + public int idCompania { get; set; } + + public byte[]? Fichero { get; set; } + + public string? SHA1 { get; set; } + + public bool ProcesadoSinRecibosCorrectos { get; set; } + + public string? Observaciones { get; set; } + + public string? Version { get; set; } + + public bool ContieneRecibos { get; set; } + + public bool ContienePolizas { get; set; } + + public bool ContieneSiniestros { get; set; } + + public bool ContieneLiquidaciones { get; set; } + + public virtual ICollection actualizacionessiniestros_eiac { get; set; } = new List(); + + public virtual companias idCompaniaNavigation { get; set; } = null!; + + public virtual usuarios? idUsuarioNavigation { get; set; } + + public virtual ICollection recibos { get; set; } = new List(); + + public virtual ICollection registrosactualizados { get; set; } = new List(); + + public virtual ICollection siniestros_eiac { get; set; } = new List(); +} diff --git a/bdAsegasa/db/ficherosconfiguracion.cs b/bdAsegasa/db/ficherosconfiguracion.cs new file mode 100644 index 0000000..cbe1c50 --- /dev/null +++ b/bdAsegasa/db/ficherosconfiguracion.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class ficherosconfiguracion +{ + public int idFicheroConfiguracion { get; set; } + + public int? idUsuario { get; set; } + + public string? Codigo { get; set; } + + public byte[]? Configuracion { get; set; } + + public string? Descripcion { get; set; } +} diff --git a/bdAsegasa/db/gestionespolizasagrario.cs b/bdAsegasa/db/gestionespolizasagrario.cs new file mode 100644 index 0000000..b8f8b2e --- /dev/null +++ b/bdAsegasa/db/gestionespolizasagrario.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class gestionespolizasagrario +{ + public int idGestionPoliza { get; set; } + + public DateTime? Fecha { get; set; } + + public string? GestionesRealizadas { get; set; } + + public int? idUsuario { get; set; } + + public string? Observaciones { get; set; } + + public int? idPoliza { get; set; } + + public int? idTipo { get; set; } + + public bool ContieneErrores { get; set; } + + public int? idGestionVarias { get; set; } + + public virtual gestionesvarias? idGestionVariasNavigation { get; set; } + + public virtual polizasagrario? idPolizaNavigation { get; set; } + + public virtual enumeraciones? idTipoNavigation { get; set; } + + public virtual usuarios? idUsuarioNavigation { get; set; } +} diff --git a/bdAsegasa/db/gestionespolizassg.cs b/bdAsegasa/db/gestionespolizassg.cs new file mode 100644 index 0000000..1443fdb --- /dev/null +++ b/bdAsegasa/db/gestionespolizassg.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class gestionespolizassg +{ + public int idGestionPoliza { get; set; } + + public DateTime? Fecha { get; set; } + + public string? GestionesRealizadas { get; set; } + + /// + /// tablas usuarios + /// + public int? idUsuario { get; set; } + + public string? Observaciones { get; set; } + + public int? idPoliza { get; set; } + + public int? idTipo { get; set; } + + public bool ContieneErrores { get; set; } + + public int? idGestionVarias { get; set; } + + public virtual gestionesvarias? idGestionVariasNavigation { get; set; } + + public virtual polizassg? idPolizaNavigation { get; set; } + + public virtual enumeraciones? idTipoNavigation { get; set; } + + public virtual usuarios? idUsuarioNavigation { get; set; } +} diff --git a/bdAsegasa/db/gestionesrecibos.cs b/bdAsegasa/db/gestionesrecibos.cs new file mode 100644 index 0000000..111174c --- /dev/null +++ b/bdAsegasa/db/gestionesrecibos.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class gestionesrecibos +{ + public int idGestionRecibo { get; set; } + + public DateTime? Fecha { get; set; } + + public string? GestionesRealizadas { get; set; } + + /// + /// tablas usuarios + /// + public int? idUsuario { get; set; } + + public string? Observaciones { get; set; } + + public int? idRecibo { get; set; } + + public int? Tipo { get; set; } + + public int? FormaComunicacion { get; set; } + + public int? idFichero { get; set; } + + public int? idMensaje { get; set; } + + public int? idCorreo { get; set; } + + public virtual correos? idCorreoNavigation { get; set; } + + public virtual ficheros? idFicheroNavigation { get; set; } + + public virtual mensajes? idMensajeNavigation { get; set; } + + public virtual recibos? idReciboNavigation { get; set; } + + public virtual usuarios? idUsuarioNavigation { get; set; } +} diff --git a/bdAsegasa/db/gestionessiniestros.cs b/bdAsegasa/db/gestionessiniestros.cs new file mode 100644 index 0000000..12ba28c --- /dev/null +++ b/bdAsegasa/db/gestionessiniestros.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class gestionessiniestros +{ + public int idGestionSiniestro { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipo { get; set; } + + public DateTime? FechaIntroduccion { get; set; } + + public string? GestionesRealizadas { get; set; } + + public DateOnly? FechaRecordatorio { get; set; } + + public DateOnly? FechaRealizacionAccion { get; set; } + + public int? idFichero { get; set; } + + public int idSiniestro { get; set; } + + public int? idUsuarioCreador { get; set; } + + public int? idUsuarioModificador { get; set; } + + public DateTime? FechaModificacion { get; set; } + + public virtual ficheros? idFicheroNavigation { get; set; } + + public virtual siniestros idSiniestroNavigation { get; set; } = null!; + + public virtual tiposgestionsiniestros? idTipoNavigation { get; set; } + + public virtual usuarios? idUsuarioCreadorNavigation { get; set; } + + public virtual usuarios? idUsuarioModificadorNavigation { get; set; } +} diff --git a/bdAsegasa/db/gestionesvarias.cs b/bdAsegasa/db/gestionesvarias.cs new file mode 100644 index 0000000..c051fd4 --- /dev/null +++ b/bdAsegasa/db/gestionesvarias.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class gestionesvarias +{ + public int idGestion { get; set; } + + public string? Descripción { get; set; } + + public int idTipo { get; set; } + + public int? idFichero { get; set; } + + public DateTime? FechaCreacion { get; set; } + + public DateTime? FechaProcesado { get; set; } + + public int? idAplicacion { get; set; } + + public int? idCorreo { get; set; } + + public string? Parametros { get; set; } + + public virtual ICollection gestionespolizasagrario { get; set; } = new List(); + + public virtual ICollection gestionespolizassg { get; set; } = new List(); + + public virtual correos? idCorreoNavigation { get; set; } + + public virtual ficheros? idFicheroNavigation { get; set; } + + public virtual enumeraciones idTipoNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/grupobd.cs b/bdAsegasa/db/grupobd.cs new file mode 100644 index 0000000..0ac5ec8 --- /dev/null +++ b/bdAsegasa/db/grupobd.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class grupobd +{ + public int idGrupoBD { get; set; } + + public string? Descripcion { get; set; } + + public virtual ICollection conexionesbd { get; set; } = new List(); + + public virtual ICollection usuarios { get; set; } = new List(); +} diff --git a/bdAsegasa/db/gruposenumeraciones.cs b/bdAsegasa/db/gruposenumeraciones.cs new file mode 100644 index 0000000..a631d2f --- /dev/null +++ b/bdAsegasa/db/gruposenumeraciones.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class gruposenumeraciones +{ + public int idGrupoEnumeracion { get; set; } + + public string Grupo { get; set; } = null!; + + public string? Descripcion { get; set; } + + public bool Oculto { get; set; } + + public virtual ICollection enumeraciones { get; set; } = new List(); +} diff --git a/bdAsegasa/db/gruposmenus.cs b/bdAsegasa/db/gruposmenus.cs new file mode 100644 index 0000000..201f9c6 --- /dev/null +++ b/bdAsegasa/db/gruposmenus.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class gruposmenus +{ + public int idGruposMenus { get; set; } + + public string? Descripcion { get; set; } + + public virtual ICollection gruposusuarios { get; set; } = new List(); + + public virtual ICollection menus { get; set; } = new List(); +} diff --git a/bdAsegasa/db/gruposusuarios.cs b/bdAsegasa/db/gruposusuarios.cs new file mode 100644 index 0000000..8339318 --- /dev/null +++ b/bdAsegasa/db/gruposusuarios.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class gruposusuarios +{ + public int idGrupo { get; set; } + + public string? Descripcion { get; set; } + + public int? idGrupoMenu { get; set; } + + public virtual ICollection autorizacionesgrupos { get; set; } = new List(); + + public virtual gruposmenus? idGrupoMenuNavigation { get; set; } + + public virtual ICollection usuarios { get; set; } = new List(); +} diff --git a/bdAsegasa/db/historicocomisiones.cs b/bdAsegasa/db/historicocomisiones.cs new file mode 100644 index 0000000..e56e442 --- /dev/null +++ b/bdAsegasa/db/historicocomisiones.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class historicocomisiones +{ + public int idHistoricoComisiones { get; set; } + + public int idPolizaAgrario { get; set; } + + public int idCodigoAgente { get; set; } + + public double? incentivoAgente { get; set; } + + public double? comisionAgente { get; set; } + + public double? comisionAsegasa { get; set; } + + public double? incentivoAsegasa { get; set; } + + public double? totalComisiones { get; set; } + + public double? primaBaseDeCalculo { get; set; } + + public DateOnly? fechaIncorporacion { get; set; } + + public string? nombreFichero { get; set; } + + public DateOnly? fechaLiquidacion { get; set; } + + public string? numeroLiquidacion { get; set; } + + public int? Ano { get; set; } + + public int? Mes { get; set; } + + public int? dia { get; set; } + + public string? Fase { get; set; } + + public double? comisionesNIFNuevo { get; set; } + + public double? comisionesTomadorPropio { get; set; } + + public virtual agentes idCodigoAgenteNavigation { get; set; } = null!; + + public virtual polizasagrario idPolizaAgrarioNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/incentivos.cs b/bdAsegasa/db/incentivos.cs new file mode 100644 index 0000000..623b5a0 --- /dev/null +++ b/bdAsegasa/db/incentivos.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class incentivos +{ + public int idIncentivo { get; set; } + + public int idAgente { get; set; } + + public int idCompania { get; set; } + + public double cantidadInicioCNB { get; set; } + + public double cantidadFinalCNB { get; set; } + + public DateOnly fechaInicioCNB { get; set; } + + public DateOnly? fechaFinCNB { get; set; } + + public double? porcentaje { get; set; } + + public virtual agentes idAgenteNavigation { get; set; } = null!; + + public virtual companias idCompaniaNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/informescontables.cs b/bdAsegasa/db/informescontables.cs new file mode 100644 index 0000000..2d3261c --- /dev/null +++ b/bdAsegasa/db/informescontables.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class informescontables +{ + public int idInforme { get; set; } + + public string? Descripcion { get; set; } + + public int? idFichero { get; set; } + + public string Codigo { get; set; } = null!; + + public virtual ICollection celdasinformescontables { get; set; } = new List(); + + public virtual ficheros? idFicheroNavigation { get; set; } +} diff --git a/bdAsegasa/db/liquidacionesagenterecibos.cs b/bdAsegasa/db/liquidacionesagenterecibos.cs new file mode 100644 index 0000000..72d246d --- /dev/null +++ b/bdAsegasa/db/liquidacionesagenterecibos.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class liquidacionesagenterecibos +{ + public int idliquidacionesagenterecibo { get; set; } + + public int idLiquidacionesAgente { get; set; } + + public int idRecibo { get; set; } + + public double? Importe { get; set; } + + public int? idRegularizacion { get; set; } + + public virtual liquidacionesagentes idLiquidacionesAgenteNavigation { get; set; } = null!; + + public virtual recibos idReciboNavigation { get; set; } = null!; + + public virtual regularizacionespagosagentes? idRegularizacionNavigation { get; set; } + + public virtual ICollection regularizacionespagosagentes { get; set; } = new List(); +} diff --git a/bdAsegasa/db/liquidacionesagentes.cs b/bdAsegasa/db/liquidacionesagentes.cs new file mode 100644 index 0000000..6a9e1ad --- /dev/null +++ b/bdAsegasa/db/liquidacionesagentes.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class liquidacionesagentes +{ + public int idLiquidacionAgente { get; set; } + + public DateOnly Fecha { get; set; } + + public int idTipoLiquidacion { get; set; } + + public string? ReferenciaHP { get; set; } + + public int BrutoComisiones { get; set; } + + public double BaseImponible { get; set; } + + public double IVA { get; set; } + + public double IRPF { get; set; } + + public double Importe { get; set; } + + public int? NumeroGeneracion { get; set; } + + public int? idFicheroSEPA { get; set; } + + public int? idAsiento { get; set; } + + public int? IdCorreo { get; set; } + + public string? NumeroFactura { get; set; } + + public DateOnly? FechaFactura { get; set; } + + public int? idAgente { get; set; } + + public int? idSerieFactura { get; set; } + + public int? idLiquidacionRectificativa { get; set; } + + public double? PorcentajeIVA { get; set; } + + public string? CIF { get; set; } + + public string? RazonSocial { get; set; } + + public double? PorcentajeIRPF { get; set; } + + public virtual correos? IdCorreoNavigation { get; set; } + + public virtual ICollection InverseidLiquidacionRectificativaNavigation { get; set; } = new List(); + + public virtual agentes? idAgenteNavigation { get; set; } + + public virtual asientos? idAsientoNavigation { get; set; } + + public virtual ficheros? idFicheroSEPANavigation { get; set; } + + public virtual liquidacionesagentes? idLiquidacionRectificativaNavigation { get; set; } + + public virtual seriesfacturas? idSerieFacturaNavigation { get; set; } + + public virtual enumeraciones idTipoLiquidacionNavigation { get; set; } = null!; + + public virtual ICollection liquidacionesagenterecibos { get; set; } = new List(); + + public virtual ICollection regularizacionespagosagentes { get; set; } = new List(); +} diff --git a/bdAsegasa/db/liquidacionescompanias.cs b/bdAsegasa/db/liquidacionescompanias.cs new file mode 100644 index 0000000..f6b4ac6 --- /dev/null +++ b/bdAsegasa/db/liquidacionescompanias.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class liquidacionescompanias +{ + public int idLiquidacionCia { get; set; } + + public DateOnly Fecha { get; set; } + + public int idTipoLiquidacion { get; set; } + + public string? ReferenciaHP { get; set; } + + public int? idAsiento { get; set; } + + public int? idPagoLiquidacionCia { get; set; } + + public double Importe { get; set; } + + public int? NumeroGeneracion { get; set; } + + public virtual asientos? idAsientoNavigation { get; set; } + + public virtual pagosliquidacionescias? idPagoLiquidacionCiaNavigation { get; set; } + + public virtual enumeraciones idTipoLiquidacionNavigation { get; set; } = null!; + + public virtual ICollection liquidacionescompaniasrecibos { get; set; } = new List(); +} diff --git a/bdAsegasa/db/liquidacionescompaniasrecibos.cs b/bdAsegasa/db/liquidacionescompaniasrecibos.cs new file mode 100644 index 0000000..ea8807f --- /dev/null +++ b/bdAsegasa/db/liquidacionescompaniasrecibos.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class liquidacionescompaniasrecibos +{ + public int idLiquidacionesCiaRecibo { get; set; } + + public int idLiquidacionCia { get; set; } + + public int idRecibo { get; set; } + + public double? Importe { get; set; } + + public virtual liquidacionescompanias idLiquidacionCiaNavigation { get; set; } = null!; + + public virtual recibos idReciboNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/liquidacionesviajes.cs b/bdAsegasa/db/liquidacionesviajes.cs new file mode 100644 index 0000000..d666cf7 --- /dev/null +++ b/bdAsegasa/db/liquidacionesviajes.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class liquidacionesviajes +{ + public int idLiquidacionesViajes { get; set; } + + public int idUsuario { get; set; } + + public int ConCargoA { get; set; } + + public DateTime FechaIntroduccion { get; set; } + + public DateTime FechaSalida { get; set; } + + public DateTime FechaLlegada { get; set; } + + public double ImporteDieta { get; set; } + + public double GastosKilometros { get; set; } + + public double OtrosGastos { get; set; } + + public double Anticipo { get; set; } + + public double TotalJustificado { get; set; } + + public string Informe { get; set; } = null!; + + public virtual enumeraciones ConCargoANavigation { get; set; } = null!; + + public virtual ICollection destinos { get; set; } = new List(); + + public virtual usuarios idUsuarioNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/logs.cs b/bdAsegasa/db/logs.cs new file mode 100644 index 0000000..3102aa3 --- /dev/null +++ b/bdAsegasa/db/logs.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class logs +{ + public int idLog { get; set; } + + public string? Tabla { get; set; } + + public string Aplicacion { get; set; } = null!; + + public int id { get; set; } + + public string? Usuario { get; set; } + + public string? ip { get; set; } + + public DateTime? FechaHora { get; set; } + + public string? LogXML { get; set; } + + public int? idConexion { get; set; } + + public double? idTimeStamp { get; set; } + + public string? Tipo { get; set; } + + public int? idRelacionado { get; set; } +} diff --git a/bdAsegasa/db/mensajes.cs b/bdAsegasa/db/mensajes.cs new file mode 100644 index 0000000..8560544 --- /dev/null +++ b/bdAsegasa/db/mensajes.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class mensajes +{ + public int idMensaje { get; set; } + + public string? Cuenta { get; set; } + + public string? Destinatario { get; set; } + + public DateTime? FechaAnulacion { get; set; } + + public DateTime? FechaAvisoError { get; set; } + + public DateTime? FechaCreacion { get; set; } + + public DateTime? FechaEnvio { get; set; } + + public DateTime? FechaUltimoIntento { get; set; } + + public string? Mensaje { get; set; } + + public string? Remitente { get; set; } + + public string? RespuestaServicio { get; set; } + + public string? Aplicacion { get; set; } + + public int? idAplicacion { get; set; } + + public int? idUsuario { get; set; } + + public virtual ICollection gestionesrecibos { get; set; } = new List(); + + public virtual usuarios? idUsuarioNavigation { get; set; } +} diff --git a/bdAsegasa/db/menus.cs b/bdAsegasa/db/menus.cs new file mode 100644 index 0000000..41b913c --- /dev/null +++ b/bdAsegasa/db/menus.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class menus +{ + public int idMenus { get; set; } + + public string? Texto { get; set; } + + public string? Ayuda { get; set; } + + public string? Accion { get; set; } + + public int? Orden { get; set; } + + public int? idMenuPadre { get; set; } + + public int? idGrupoMenu { get; set; } + + public bool MostrarEnPanel { get; set; } + + public int? idPermiso { get; set; } + + public virtual gruposmenus? idGrupoMenuNavigation { get; set; } + + public virtual permisos? idPermisoNavigation { get; set; } +} diff --git a/bdAsegasa/db/modificacionespolizasagrario.cs b/bdAsegasa/db/modificacionespolizasagrario.cs new file mode 100644 index 0000000..5fdac26 --- /dev/null +++ b/bdAsegasa/db/modificacionespolizasagrario.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class modificacionespolizasagrario +{ + public int idModificacionPolizasAgrario { get; set; } + + public int idPolizaAgrario { get; set; } + + public DateOnly? fechaModificacion { get; set; } + + public double? porcentajeAplicado { get; set; } + + public double? primaComercial { get; set; } + + public double? bonificacionRecargo { get; set; } + + public double? primaComercialNeta { get; set; } + + public double? recargoFLCCS { get; set; } + + public double? recargoPrima { get; set; } + + public double? subvencionENESA { get; set; } + + public double? subvencionCCAA { get; set; } + + public double? aCargoTomador { get; set; } + + public double? segunAgroSeguro { get; set; } + + public double? diferencia { get; set; } + + public int idTipoModificacion { get; set; } + + public double? descuentoBonificacion { get; set; } + + public int idLinea { get; set; } + + public double? totalPrevistas { get; set; } + + public double? previstasComisionAsegasa { get; set; } + + public double? previstasComisionAgente { get; set; } + + public double? previstasIncentivoAgente { get; set; } + + public double? previstasNIFNuevo { get; set; } + + public double? previstasTomadorPropio { get; set; } + + public double? previstasIncentivoAsegasa { get; set; } + + public virtual planeslineas idLineaNavigation { get; set; } = null!; + + public virtual polizasagrario idPolizaAgrarioNavigation { get; set; } = null!; + + public virtual enumeraciones idTipoModificacionNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/movimientosbancarios.cs b/bdAsegasa/db/movimientosbancarios.cs new file mode 100644 index 0000000..50eb4cf --- /dev/null +++ b/bdAsegasa/db/movimientosbancarios.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class movimientosbancarios +{ + public int idMovimientoBancario { get; set; } + + public int idExtractoBancario { get; set; } + + public DateOnly FechaOperacion { get; set; } + + public DateOnly FechaValor { get; set; } + + public string CodigoConcepto { get; set; } = null!; + + public string ConceptoPropio { get; set; } = null!; + + public float Importe { get; set; } + + public string NumeroDocumento { get; set; } = null!; + + public string ReferenciaBanco { get; set; } = null!; + + public string Detalle { get; set; } = null!; + + public int? idConciliacion { get; set; } + + public virtual conciliacionesbancarias? idConciliacionNavigation { get; set; } + + public virtual extractosbancarios idExtractoBancarioNavigation { get; set; } = null!; +} diff --git a/bdAsegasa/db/municipios.cs b/bdAsegasa/db/municipios.cs new file mode 100644 index 0000000..7fa77eb --- /dev/null +++ b/bdAsegasa/db/municipios.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class municipios +{ + public string CodigoMunicipio { get; set; } = null!; + + public string? CodigoComarca { get; set; } + + public string? CodigoProvincia { get; set; } + + public string? Nombre { get; set; } + + public string? DC { get; set; } + + public virtual comarcas? CodigoComarcaNavigation { get; set; } + + public virtual provincias? CodigoProvinciaNavigation { get; set; } + + public virtual ICollection codigospostales { get; set; } = new List(); + + public virtual ICollection direcciones { get; set; } = new List(); + + public virtual ICollection subagentes { get; set; } = new List(); +} diff --git a/bdAsegasa/db/notificaciones.cs b/bdAsegasa/db/notificaciones.cs new file mode 100644 index 0000000..c108d68 --- /dev/null +++ b/bdAsegasa/db/notificaciones.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class notificaciones +{ + public int idNotificacion { get; set; } + + public int Tipo { get; set; } + + public string Descripcion { get; set; } = null!; + + public DateTime FechaCreacion { get; set; } + + public DateTime? FechaNotificado { get; set; } + + public int idEntidad { get; set; } + + public int TipoEntidad { get; set; } + + public int? idFichero { get; set; } + + public virtual ficheros? idFicheroNavigation { get; set; } +} diff --git a/bdAsegasa/db/pagosliquidacionescias.cs b/bdAsegasa/db/pagosliquidacionescias.cs new file mode 100644 index 0000000..56c4b3d --- /dev/null +++ b/bdAsegasa/db/pagosliquidacionescias.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class pagosliquidacionescias +{ + public int idPago { get; set; } + + public DateTime FechaCreacion { get; set; } + + public int idCia { get; set; } + + public DateTime? FechaPago { get; set; } + + public int? idFicheroSEPA { get; set; } + + public int? idAsiento { get; set; } + + public int? idCorreo { get; set; } + + public double ImporteLiquidaciones { get; set; } + + public double ImporteRegularizacion { get; set; } + + public string? DescripcionRegularizacion { get; set; } + + public virtual asientos? idAsientoNavigation { get; set; } + + public virtual companias idCiaNavigation { get; set; } = null!; + + public virtual correos? idCorreoNavigation { get; set; } + + public virtual ficheros? idFicheroSEPANavigation { get; set; } + + public virtual ICollection liquidacionescompanias { get; set; } = new List(); +} diff --git a/bdAsegasa/db/pagossiniestros_eiac.cs b/bdAsegasa/db/pagossiniestros_eiac.cs new file mode 100644 index 0000000..8cfce2d --- /dev/null +++ b/bdAsegasa/db/pagossiniestros_eiac.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class pagossiniestros_eiac +{ + public int idPago { get; set; } + + public int? idSiniestroEIAC { get; set; } + + public int NumeroOrden { get; set; } + + public DateTime? FechaPago { get; set; } + + public DateTime? FechaLiquidacion { get; set; } + + public double? ImportePago { get; set; } + + public string? DescripcionPago { get; set; } + + public int? idTipoPago { get; set; } + + public string? IBAN { get; set; } + + public virtual siniestros_eiac? idSiniestroEIACNavigation { get; set; } + + public virtual enumeraciones? idTipoPagoNavigation { get; set; } +} diff --git a/bdAsegasa/db/pagostelematicos.cs b/bdAsegasa/db/pagostelematicos.cs new file mode 100644 index 0000000..2923241 --- /dev/null +++ b/bdAsegasa/db/pagostelematicos.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class pagostelematicos +{ + public int idPago { get; set; } + + public string DNI { get; set; } = null!; + + public string Referencia { get; set; } = null!; + + public int? idRecibo { get; set; } + + public DateTime FechaCreacion { get; set; } + + public DateTime? FechaConfirmacionPasarela { get; set; } + + public DateTime? FechaErrorPasarela { get; set; } + + public string? RespuestaPasarela { get; set; } + + public string? CodigoConfirmacionPago { get; set; } + + public int? idEmailAvisoAPagador { get; set; } + + public int? idEmailAvisoContabilidad { get; set; } + + public DateTime? FechaPagoRecibo { get; set; } + + public string? EmailConfirmacionPago { get; set; } + + public double? Importe { get; set; } + + public int? OrigenPago { get; set; } + + public string? Telefono { get; set; } + + public virtual recibos? idReciboNavigation { get; set; } +} diff --git a/bdAsegasa/db/permisos.cs b/bdAsegasa/db/permisos.cs new file mode 100644 index 0000000..dfaf411 --- /dev/null +++ b/bdAsegasa/db/permisos.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class permisos +{ + public int idPermiso { get; set; } + + public string? CodigoPermiso { get; set; } + + public string? Descripcion { get; set; } + + public virtual ICollection autorizacionesgrupos { get; set; } = new List(); + + public virtual ICollection autorizacionesusuarios { get; set; } = new List(); + + public virtual ICollection cajas { get; set; } = new List(); + + public virtual ICollection menus { get; set; } = new List(); + + public virtual ICollection plantillas { get; set; } = new List(); + + public virtual ICollection procesos { get; set; } = new List(); +} diff --git a/bdAsegasa/db/personasdecontactoagentes.cs b/bdAsegasa/db/personasdecontactoagentes.cs new file mode 100644 index 0000000..3aaa80b --- /dev/null +++ b/bdAsegasa/db/personasdecontactoagentes.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class personasdecontactoagentes +{ + public int idpersonadecontactoAgentes { get; set; } + + public int? idAgente { get; set; } + + public string? Nombre { get; set; } + + public string? Telefono1 { get; set; } + + public string? Telefono2 { get; set; } + + public int? idCargo { get; set; } + + public string? Email { get; set; } + + public virtual agentes? idAgenteNavigation { get; set; } + + public virtual enumeraciones? idCargoNavigation { get; set; } +} diff --git a/bdAsegasa/db/personasdecontactocompanias.cs b/bdAsegasa/db/personasdecontactocompanias.cs new file mode 100644 index 0000000..a1e8607 --- /dev/null +++ b/bdAsegasa/db/personasdecontactocompanias.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class personasdecontactocompanias +{ + public int idPersonasdecontactoCompanias { get; set; } + + /// + /// tabla Compañia + /// + public int? idCompania { get; set; } + + public string? Nombre { get; set; } + + public string? Telefono1 { get; set; } + + public string? Telefono2 { get; set; } + + public int? idCargo { get; set; } + + public string? Email { get; set; } + + public string? departamento { get; set; } + + public virtual companias? idCompaniaNavigation { get; set; } +} diff --git a/bdAsegasa/db/personasdecontactoentidades.cs b/bdAsegasa/db/personasdecontactoentidades.cs new file mode 100644 index 0000000..232e1c4 --- /dev/null +++ b/bdAsegasa/db/personasdecontactoentidades.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class personasdecontactoentidades +{ + public int idPersonasdeContactoEntidades { get; set; } + + /// + /// tabla Entidad + /// + public int? idEntidad { get; set; } + + public string? Nombre { get; set; } + + public string? Telefono1 { get; set; } + + public string? Telefono2 { get; set; } + + public int? idCargo { get; set; } + + public string? Email { get; set; } + + public string? departamento { get; set; } + + public virtual entidades? idEntidadNavigation { get; set; } +} diff --git a/bdAsegasa/db/peticionescontrasena.cs b/bdAsegasa/db/peticionescontrasena.cs new file mode 100644 index 0000000..dabb695 --- /dev/null +++ b/bdAsegasa/db/peticionescontrasena.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class peticionescontrasena +{ + public int idpeticionescontrasena { get; set; } + + public string DNI { get; set; } = null!; + + public string ContrasenaProvisional { get; set; } = null!; + + public DateTime? FechaExpiracion { get; set; } + + public DateTime? FechaCambio { get; set; } +} diff --git a/bdAsegasa/db/peticionesverifactu.cs b/bdAsegasa/db/peticionesverifactu.cs new file mode 100644 index 0000000..55d57d3 --- /dev/null +++ b/bdAsegasa/db/peticionesverifactu.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class peticionesverifactu +{ + public int idPeticion { get; set; } + + public byte[] Peticion { get; set; } = null!; + + public DateTime FechaHoraPeticion { get; set; } + + public DateTime? FechaHoraRespuesta { get; set; } + + public byte[]? Respuesta { get; set; } + + public string? CSV { get; set; } + + public int Estado { get; set; } + + public virtual ICollection registrosverifactu { get; set; } = new List(); +} diff --git a/bdAsegasa/db/planeslineas.cs b/bdAsegasa/db/planeslineas.cs new file mode 100644 index 0000000..2cfaf31 --- /dev/null +++ b/bdAsegasa/db/planeslineas.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class planeslineas +{ + public int idPlanLineas { get; set; } + + public string? planLinea { get; set; } + + public string? descripcion { get; set; } + + public int? anoContabilidad { get; set; } + + public int? trimestreContabilidad { get; set; } + + public int? idGrupo { get; set; } + + public virtual enumeraciones? idGrupoNavigation { get; set; } + + public virtual ICollection modificacionespolizasagrario { get; set; } = new List(); + + public virtual ICollection polizasagrario { get; set; } = new List(); +} diff --git a/bdAsegasa/db/plantillas.cs b/bdAsegasa/db/plantillas.cs new file mode 100644 index 0000000..239b95c --- /dev/null +++ b/bdAsegasa/db/plantillas.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class plantillas +{ + public int idPlantilla { get; set; } + + public string? Codigo { get; set; } + + public string? Descripcion { get; set; } + + public int? idTipo { get; set; } + + public string? Observaciones { get; set; } + + public int? idGrupo { get; set; } + + public bool? Oculta { get; set; } + + public bool? TipoListado { get; set; } + + public int? idPermiso { get; set; } + + public int? idFichero { get; set; } + + public virtual ficheros? idFicheroNavigation { get; set; } + + public virtual enumeraciones? idGrupoNavigation { get; set; } + + public virtual permisos? idPermisoNavigation { get; set; } + + public virtual enumeraciones? idTipoNavigation { get; set; } +} diff --git a/bdAsegasa/db/polizas_avant2.cs b/bdAsegasa/db/polizas_avant2.cs new file mode 100644 index 0000000..d815d9f --- /dev/null +++ b/bdAsegasa/db/polizas_avant2.cs @@ -0,0 +1,109 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class polizas_avant2 +{ + public int idPoliza { get; set; } + + public DateTime? FechaAlta { get; set; } + + public DateOnly? FechaEnvioCompania { get; set; } + + public string? NumeroPoliza { get; set; } + + public DateOnly? FechaReciboCompania { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + /// + /// tabla agentes + /// + public int idAgente { get; set; } + + public int? idSubAgente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoCobro { get; set; } + + public string? Matricula { get; set; } + + /// + /// Tabla Modelos + /// + public int? idModelo { get; set; } + + public int NumeroSuplemento { get; set; } + + /// + /// tabla usuarios, quien da de alta + /// + public int? idUsuario { get; set; } + + public DateOnly? FechaBaja { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idCausaBaja { get; set; } + + public DateOnly? FechaIncorporacionPropuesta { get; set; } + + public bool RechazoSuplemento { get; set; } + + /// + /// Numero de poliza del multitarificador + /// + public int? idMultitarificador { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Coberturas { get; set; } + + public string? Garantias { get; set; } + + public string? Observaciones { get; set; } + + public int? idTipoPago { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? NumeroDirectorio { get; set; } + + public string? IBAN { get; set; } + + public string? DescripcionSuplemento { get; set; } + + public int? idDuracion { get; set; } + + public int? idSituacion { get; set; } + + public int? idFicheroPresupuesto { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public int? idOrigenPresupuesto { get; set; } + + public string? ReferenciaAsegasa { get; set; } + + public DateTime? FechaDocumentosSuplementoRevisado { get; set; } + + public DateTime? FechaModificacion { get; set; } +} diff --git a/bdAsegasa/db/polizas_avant2_agente3.cs b/bdAsegasa/db/polizas_avant2_agente3.cs new file mode 100644 index 0000000..3e51843 --- /dev/null +++ b/bdAsegasa/db/polizas_avant2_agente3.cs @@ -0,0 +1,109 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class polizas_avant2_agente3 +{ + public int idPoliza { get; set; } + + public DateTime? FechaAlta { get; set; } + + public DateOnly? FechaEnvioCompania { get; set; } + + public string? NumeroPoliza { get; set; } + + public DateOnly? FechaReciboCompania { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + /// + /// tabla agentes + /// + public int idAgente { get; set; } + + public int? idSubAgente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoCobro { get; set; } + + public string? Matricula { get; set; } + + /// + /// Tabla Modelos + /// + public int? idModelo { get; set; } + + public int NumeroSuplemento { get; set; } + + /// + /// tabla usuarios, quien da de alta + /// + public int? idUsuario { get; set; } + + public DateOnly? FechaBaja { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idCausaBaja { get; set; } + + public DateOnly? FechaIncorporacionPropuesta { get; set; } + + public bool RechazoSuplemento { get; set; } + + /// + /// Numero de poliza del multitarificador + /// + public int? idMultitarificador { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Coberturas { get; set; } + + public string? Garantias { get; set; } + + public string? Observaciones { get; set; } + + public int? idTipoPago { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? NumeroDirectorio { get; set; } + + public string? IBAN { get; set; } + + public string? DescripcionSuplemento { get; set; } + + public int? idDuracion { get; set; } + + public int? idSituacion { get; set; } + + public int? idFicheroPresupuesto { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public int? idOrigenPresupuesto { get; set; } + + public string? ReferenciaAsegasa { get; set; } + + public DateTime? FechaDocumentosSuplementoRevisado { get; set; } + + public DateTime? FechaModificacion { get; set; } +} diff --git a/bdAsegasa/db/polizas_avant2_ramos.cs b/bdAsegasa/db/polizas_avant2_ramos.cs new file mode 100644 index 0000000..d94f5a9 --- /dev/null +++ b/bdAsegasa/db/polizas_avant2_ramos.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class polizas_avant2_ramos +{ + public int idPoliza { get; set; } + + public DateTime? FechaAlta { get; set; } + + public DateOnly? FechaEnvioCompania { get; set; } + + public string? NumeroPoliza { get; set; } + + public DateOnly? FechaReciboCompania { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + /// + /// tabla agentes + /// + public int idAgente { get; set; } + + public int? idSubAgente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoCobro { get; set; } + + public string? Matricula { get; set; } + + /// + /// Tabla Modelos + /// + public int? idModelo { get; set; } + + public int NumeroSuplemento { get; set; } + + /// + /// tabla usuarios, quien da de alta + /// + public int? idUsuario { get; set; } + + public DateOnly? FechaBaja { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idCausaBaja { get; set; } + + public DateOnly? FechaIncorporacionPropuesta { get; set; } + + public bool RechazoSuplemento { get; set; } + + /// + /// Numero de poliza del multitarificador + /// + public int? idMultitarificador { get; set; } + + public string? ramos_Descripcion { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Coberturas { get; set; } + + public string? Garantias { get; set; } + + public string? Observaciones { get; set; } + + public int? idTipoPago { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? NumeroDirectorio { get; set; } + + public string? IBAN { get; set; } + + public string? DescripcionSuplemento { get; set; } + + public int? idDuracion { get; set; } + + public int? idSituacion { get; set; } + + public int? idFicheroPresupuesto { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public int? idOrigenPresupuesto { get; set; } + + public string? ReferenciaAsegasa { get; set; } + + public DateTime? FechaDocumentosSuplementoRevisado { get; set; } + + public DateTime? FechaModificacion { get; set; } +} diff --git a/bdAsegasa/db/polizasagrario.cs b/bdAsegasa/db/polizasagrario.cs new file mode 100644 index 0000000..1652adc --- /dev/null +++ b/bdAsegasa/db/polizasagrario.cs @@ -0,0 +1,149 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class polizasagrario +{ + public int idPolizaAgrario { get; set; } + + public string? referenciaHP { get; set; } + + public DateOnly? fechaPropuesta { get; set; } + + public string? poliza { get; set; } + + public DateOnly? fechaPoliza { get; set; } + + public int? idPlanLinea { get; set; } + + public int? idColectivo { get; set; } + + public int? idAgente { get; set; } + + public int? idCia { get; set; } + + public int? idTomador { get; set; } + + public int? idAsegurado { get; set; } + + public int? idDomicilioAsegurado { get; set; } + + public double? hectareas { get; set; } + + public int? animales { get; set; } + + public double? descuentoBonificacion { get; set; } + + public string? directorio { get; set; } + + public bool? fraccionada { get; set; } + + public float? porcentajeAplicado { get; set; } + + public double? primaComercial { get; set; } + + public double? bonificacionRecargo { get; set; } + + public double? primaComercialNeta { get; set; } + + public double? recargoFLCCS { get; set; } + + public double? recargoPrima { get; set; } + + public double? subvencionENESA { get; set; } + + public double? subvencionCCAA { get; set; } + + public double? aCargoTomador { get; set; } + + public double? segunAgroSeguro { get; set; } + + public double? diferencia { get; set; } + + public string? observaciones { get; set; } + + public double? gastoGestionInterna { get; set; } + + public double? comisionesIncentivoAgente { get; set; } + + public double? comisionesComisionAgente { get; set; } + + public double? comisionesIncentivoAsegasa { get; set; } + + public double? comisionesComisionAsegasa { get; set; } + + public double? comisionesNIFNuevo { get; set; } + + public double? comisionesTomadorPropio { get; set; } + + public double? totalComisiones { get; set; } + + public double? previstasIncentivoAgente { get; set; } + + public double? previstasComisionAgente { get; set; } + + public double? previstasIncentivoAsegasa { get; set; } + + public double? previstasComisionAsegasa { get; set; } + + public double? previstasNIFNuevo { get; set; } + + public double? previstasTomadorPropio { get; set; } + + public double? totalPrevistas { get; set; } + + public int? idSubagente { get; set; } + + public string? emailAsegurado { get; set; } + + public string? telefono1Asegurado { get; set; } + + public string? telefono2Asegurado { get; set; } + + public int? anoContable { get; set; } + + public int? trimestreContable { get; set; } + + public string? agenciaCompania { get; set; } + + public double? valorProduccion { get; set; } + + public double? superficie { get; set; } + + public string? IBAN { get; set; } + + public string? IBAN2 { get; set; } + + public string? IBAN3 { get; set; } + + public virtual ICollection actassiniestrosagrario { get; set; } = new List(); + + public virtual ICollection documentospolizasagrario { get; set; } = new List(); + + public virtual ICollection gestionespolizasagrario { get; set; } = new List(); + + public virtual ICollection historicocomisiones { get; set; } = new List(); + + public virtual agentes? idAgenteNavigation { get; set; } + + public virtual entidades? idAseguradoNavigation { get; set; } + + public virtual companias? idCiaNavigation { get; set; } + + public virtual colectivos? idColectivoNavigation { get; set; } + + public virtual direcciones? idDomicilioAseguradoNavigation { get; set; } + + public virtual planeslineas? idPlanLineaNavigation { get; set; } + + public virtual subagentes? idSubagenteNavigation { get; set; } + + public virtual entidades? idTomadorNavigation { get; set; } + + public virtual ICollection modificacionespolizasagrario { get; set; } = new List(); + + public virtual ICollection regularizacion { get; set; } = new List(); +} diff --git a/bdAsegasa/db/polizassg.cs b/bdAsegasa/db/polizassg.cs new file mode 100644 index 0000000..0fee2ed --- /dev/null +++ b/bdAsegasa/db/polizassg.cs @@ -0,0 +1,153 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class polizassg +{ + public int idPoliza { get; set; } + + public DateTime? FechaAlta { get; set; } + + public DateOnly? FechaEnvioCompania { get; set; } + + public string? NumeroPoliza { get; set; } + + public DateOnly? FechaReciboCompania { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + /// + /// tabla agentes + /// + public int idAgente { get; set; } + + public int? idSubAgente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoCobro { get; set; } + + public string? Matricula { get; set; } + + /// + /// Tabla Modelos + /// + public int? idModelo { get; set; } + + public int NumeroSuplemento { get; set; } + + /// + /// tabla usuarios, quien da de alta + /// + public int? idUsuario { get; set; } + + public DateOnly? FechaBaja { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idCausaBaja { get; set; } + + public DateOnly? FechaIncorporacionPropuesta { get; set; } + + public bool RechazoSuplemento { get; set; } + + /// + /// Numero de poliza del multitarificador + /// + public int? idMultitarificador { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Coberturas { get; set; } + + public string? Garantias { get; set; } + + public string? Observaciones { get; set; } + + public int? idTipoPago { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? NumeroDirectorio { get; set; } + + public string? IBAN { get; set; } + + public string? DescripcionSuplemento { get; set; } + + public int? idDuracion { get; set; } + + public int? idSituacion { get; set; } + + public int? idFicheroPresupuesto { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public int? idOrigenPresupuesto { get; set; } + + public string? ReferenciaAsegasa { get; set; } + + public DateTime? FechaDocumentosSuplementoRevisado { get; set; } + + public DateTime? FechaModificacion { get; set; } + + public int? idRamoDGSCia { get; set; } + + public int DocsPendientesSubir { get; set; } + + public int DocsPendientesComprobar { get; set; } + + public virtual ICollection documentospolizassg { get; set; } = new List(); + + public virtual ICollection entidadespolizas { get; set; } = new List(); + + public virtual ICollection expedientespolizas { get; set; } = new List(); + + public virtual ICollection gestionespolizassg { get; set; } = new List(); + + public virtual agentes idAgenteNavigation { get; set; } = null!; + + public virtual enumeraciones? idCausaBajaNavigation { get; set; } + + public virtual companias idCompaniaNavigation { get; set; } = null!; + + public virtual enumeraciones? idDuracionNavigation { get; set; } + + public virtual ficheros? idFicheroPresupuestoNavigation { get; set; } + + public virtual ramosdgscompania? idRamoDGSCiaNavigation { get; set; } + + public virtual ramos idRamoNavigation { get; set; } = null!; + + public virtual enumeraciones? idSituacionNavigation { get; set; } + + public virtual subagentes? idSubAgenteNavigation { get; set; } + + public virtual enumeraciones? idTipoCobroNavigation { get; set; } + + public virtual enumeraciones? idTipoPagoNavigation { get; set; } + + public virtual usuarios? idUsuarioNavigation { get; set; } + + public virtual ICollection recibos { get; set; } = new List(); + + public virtual ICollection siniestros { get; set; } = new List(); + + public virtual ICollection siniestros_eiac { get; set; } = new List(); +} diff --git a/bdAsegasa/db/procesos.cs b/bdAsegasa/db/procesos.cs new file mode 100644 index 0000000..dab550d --- /dev/null +++ b/bdAsegasa/db/procesos.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class procesos +{ + public int idProceso { get; set; } + + public string? Descripcion { get; set; } + + public string? Accion { get; set; } + + public int? idTipo { get; set; } + + public int? idSubtipo { get; set; } + + public int? idPermiso { get; set; } + + public int? idFichero { get; set; } + + public string? Observaciones { get; set; } + + public int? Orden { get; set; } + + public virtual ficheros? idFicheroNavigation { get; set; } + + public virtual permisos? idPermisoNavigation { get; set; } + + public virtual enumeraciones? idSubtipoNavigation { get; set; } + + public virtual enumeraciones? idTipoNavigation { get; set; } +} diff --git a/bdAsegasa/db/provincias.cs b/bdAsegasa/db/provincias.cs new file mode 100644 index 0000000..fb4eff5 --- /dev/null +++ b/bdAsegasa/db/provincias.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class provincias +{ + public string CodigoProvincia { get; set; } = null!; + + public string? Nombre { get; set; } + + public string? ComunidadAutonoma { get; set; } + + public virtual ICollection comarcas { get; set; } = new List(); + + public virtual ICollection municipios { get; set; } = new List(); +} diff --git a/bdAsegasa/db/ramos.cs b/bdAsegasa/db/ramos.cs new file mode 100644 index 0000000..f0cf0e6 --- /dev/null +++ b/bdAsegasa/db/ramos.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class ramos +{ + public int idRamo { get; set; } + + public string? Codigo { get; set; } + + public string? DescripcionAbreviada { get; set; } + + public string? Descripcion { get; set; } + + public int? idFamiliaRamo { get; set; } + + public string? CodigoDireccionGeneralSeguros { get; set; } + + public string? Situacion { get; set; } + + public string? Observacion { get; set; } + + public string? DestinatariosCorreosDocumentacion { get; set; } + + public int? idFamiliaDGS { get; set; } + + public bool ForzarEmailPersonalASEGASA { get; set; } + + public virtual ICollection comisionesagentes { get; set; } = new List(); + + public virtual ICollection comisionescompanias { get; set; } = new List(); + + public virtual ICollection documentosasolicitar { get; set; } = new List(); + + public virtual ICollection excepcionesciasramos { get; set; } = new List(); + + public virtual enumeraciones? idFamiliaDGSNavigation { get; set; } + + public virtual enumeraciones? idFamiliaRamoNavigation { get; set; } + + public virtual ICollection polizassg { get; set; } = new List(); + + public virtual ICollection ramosdgscompania { get; set; } = new List(); +} diff --git a/bdAsegasa/db/ramosdgs.cs b/bdAsegasa/db/ramosdgs.cs new file mode 100644 index 0000000..0cf7be8 --- /dev/null +++ b/bdAsegasa/db/ramosdgs.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class ramosdgs +{ + public int idRamoDGS { get; set; } + + public string Descripcion { get; set; } = null!; + + public string Grupo { get; set; } = null!; + + public string Ramo { get; set; } = null!; + + public string Detalle { get; set; } = null!; + + public string Clave { get; set; } = null!; + + public virtual ICollection ramosdgscompania { get; set; } = new List(); +} diff --git a/bdAsegasa/db/ramosdgscompania.cs b/bdAsegasa/db/ramosdgscompania.cs new file mode 100644 index 0000000..16ac699 --- /dev/null +++ b/bdAsegasa/db/ramosdgscompania.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class ramosdgscompania +{ + public int idRamoDGSCompania { get; set; } + + public int idRamoDGS { get; set; } + + public int idCompania { get; set; } + + public int idRamoAsegasa { get; set; } + + public string? DescripcionRamo { get; set; } + + public string DescripcionModalidad { get; set; } = null!; + + public string? CodigoEntidad { get; set; } + + public string? CodigoModalidad { get; set; } + + public virtual companias idCompaniaNavigation { get; set; } = null!; + + public virtual ramos idRamoAsegasaNavigation { get; set; } = null!; + + public virtual ramosdgs idRamoDGSNavigation { get; set; } = null!; + + public virtual ICollection polizassg { get; set; } = new List(); +} diff --git a/bdAsegasa/db/recibos.cs b/bdAsegasa/db/recibos.cs new file mode 100644 index 0000000..0a90c0b --- /dev/null +++ b/bdAsegasa/db/recibos.cs @@ -0,0 +1,188 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class recibos +{ + public int idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + /// + /// tabla recibos + /// + public int? idReciboAsociado { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoPago { get; set; } + + /// + /// tabla remesa + /// + public int? idRemesa { get; set; } + + public int? idDuracion { get; set; } + + public int idTipo { get; set; } + + public DateOnly? FechaExpedicion { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public int? idCausaDevolucion { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idCausaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public DateOnly? FechaCartaRemesaCobroDirecto { get; set; } + + public DateOnly? FechaCartaDevuelto { get; set; } + + public DateOnly? FechaCartaImperativoLegal { get; set; } + + public DateOnly? FechaCartaAvisoAgente { get; set; } + + public DateOnly? FechaCartaEnvioRecibo { get; set; } + + public DateOnly? FechaImpresionTalon { get; set; } + + public DateOnly? FechaImpresionRecibo { get; set; } + + public string? Observaciones { get; set; } + + public double? PrimaNeta { get; set; } + + public double? BonificacionORecargo { get; set; } + + public double? Consorcio { get; set; } + + public double? Impuesto { get; set; } + + public double? RecargoExterno { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? PorcentajeReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? PorcentajeComisionAgente { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? AsegasaRecargoExterno { get; set; } + + public double? AsegasaComisionConsorcio { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public string? IBAN { get; set; } + + public int idPoliza { get; set; } + + public double? BaseComisionAgente { get; set; } + + public double? PorcentajeBaseComisionAgente { get; set; } + + public double? PorcentajeComisionPrevista { get; set; } + + public double? ComisionPrevista { get; set; } + + public int? idSituacion { get; set; } + + public DateOnly? FechaRecepcionCia { get; set; } + + public string? CodigoRecibo { get; set; } + + public int? idUsuario { get; set; } + + public int? OrigenRecibo { get; set; } + + public int? idFicheroCompania { get; set; } + + public double? ComisionPrevistaAsegasa { get; set; } + + public double? Sobrecomision { get; set; } + + public double? Libre1 { get; set; } + + public int? idAsientoFacturacion { get; set; } + + public int? idAsientoDevueltoBanco { get; set; } + + public DateOnly? FechaAsientoDevueltoBanco { get; set; } + + public DateTime? FechaModificacion { get; set; } + + public DateOnly? FechaUltimaLiquidacionAgente { get; set; } + + public virtual ICollection InverseidReciboAsociadoNavigation { get; set; } = new List(); + + public virtual ICollection amortizacionrecibos { get; set; } = new List(); + + public virtual ICollection documentospolizassg { get; set; } = new List(); + + public virtual ICollection expedientesrecibos { get; set; } = new List(); + + public virtual ICollection gestionesrecibos { get; set; } = new List(); + + public virtual agentes? idAgenteNavigation { get; set; } + + public virtual asientos? idAsientoDevueltoBancoNavigation { get; set; } + + public virtual asientos? idAsientoFacturacionNavigation { get; set; } + + public virtual enumeraciones? idCausaBajaNavigation { get; set; } + + public virtual enumeraciones? idCausaDevolucionNavigation { get; set; } + + public virtual enumeraciones? idDuracionNavigation { get; set; } + + public virtual ficheroscompanias? idFicheroCompaniaNavigation { get; set; } + + public virtual polizassg idPolizaNavigation { get; set; } = null!; + + public virtual recibos? idReciboAsociadoNavigation { get; set; } + + public virtual remesas? idRemesaNavigation { get; set; } + + public virtual enumeraciones? idSituacionNavigation { get; set; } + + public virtual subagentes? idSubagenteNavigation { get; set; } + + public virtual enumeraciones idTipoNavigation { get; set; } = null!; + + public virtual enumeraciones? idTipoPagoNavigation { get; set; } + + public virtual usuarios? idUsuarioNavigation { get; set; } + + public virtual ICollection liquidacionesagenterecibos { get; set; } = new List(); + + public virtual ICollection liquidacionescompaniasrecibos { get; set; } = new List(); + + public virtual ICollection pagostelematicos { get; set; } = new List(); + + public virtual ICollection regularizacionespagosagentes { get; set; } = new List(); +} diff --git a/bdAsegasa/db/registrosactualizados.cs b/bdAsegasa/db/registrosactualizados.cs new file mode 100644 index 0000000..8b8c4bd --- /dev/null +++ b/bdAsegasa/db/registrosactualizados.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class registrosactualizados +{ + public int idRegistro { get; set; } + + public string? Tipo { get; set; } + + public int? idAplicacion { get; set; } + + public DateTime? FechaProcesadoEnHP { get; set; } + + public DateTime? FechaErrorEnHP { get; set; } + + public string? MensajeError { get; set; } + + public string? MacroAct { get; set; } + + public int? idFicheroCompania { get; set; } + + public int? NumeroGeneracion { get; set; } + + public DateTime? FechaCreacion { get; set; } + + public virtual ficheroscompanias? idFicheroCompaniaNavigation { get; set; } +} diff --git a/bdAsegasa/db/registrosverifactu.cs b/bdAsegasa/db/registrosverifactu.cs new file mode 100644 index 0000000..924fd2d --- /dev/null +++ b/bdAsegasa/db/registrosverifactu.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class registrosverifactu +{ + public int idRegistro { get; set; } + + public int? idRespuestaVerifactu { get; set; } + + public int Operacion { get; set; } + + public int TipoFactura { get; set; } + + public DateTime FechaGeneracion { get; set; } + + public int Estado { get; set; } + + public int? idRegistroAnterior { get; set; } + + public string? Huella { get; set; } + + public DateTime? FechaEncadenado { get; set; } + + public string? ErrorVerifactu { get; set; } + + public int? Aplicacion { get; set; } + + public int idAplicacion { get; set; } + + public string? OtrosDatos { get; set; } + + public int? idRegistroCorreccion { get; set; } + + public virtual registrosverifactu? InverseidRegistroAnteriorNavigation { get; set; } + + public virtual registrosverifactu? InverseidRegistroCorreccionNavigation { get; set; } + + public virtual registrosverifactu? idRegistroAnteriorNavigation { get; set; } + + public virtual registrosverifactu? idRegistroCorreccionNavigation { get; set; } + + public virtual peticionesverifactu? idRespuestaVerifactuNavigation { get; set; } +} diff --git a/bdAsegasa/db/regularizacion.cs b/bdAsegasa/db/regularizacion.cs new file mode 100644 index 0000000..8cf11bb --- /dev/null +++ b/bdAsegasa/db/regularizacion.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class regularizacion +{ + public int idRegularizacion { get; set; } + + public int? idPolizaAgrario { get; set; } + + public float? Importe { get; set; } + + public DateOnly? FechaRegularizacion { get; set; } + + public DateOnly? FechaPago { get; set; } + + public virtual polizasagrario? idPolizaAgrarioNavigation { get; set; } +} diff --git a/bdAsegasa/db/regularizacionespagosagentes.cs b/bdAsegasa/db/regularizacionespagosagentes.cs new file mode 100644 index 0000000..7479023 --- /dev/null +++ b/bdAsegasa/db/regularizacionespagosagentes.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class regularizacionespagosagentes +{ + public int idRegularizacion { get; set; } + + public DateTime FechaCreacion { get; set; } + + public double Importe { get; set; } + + public string? Concepto { get; set; } + + public int Tipo { get; set; } + + public int? idRecibo { get; set; } + + public int? idLiquidacionAgente { get; set; } + + public int? idLiquidacionARRelacionada { get; set; } + + public int idAgente { get; set; } + + public virtual agentes idAgenteNavigation { get; set; } = null!; + + public virtual liquidacionesagenterecibos? idLiquidacionARRelacionadaNavigation { get; set; } + + public virtual liquidacionesagentes? idLiquidacionAgenteNavigation { get; set; } + + public virtual recibos? idReciboNavigation { get; set; } + + public virtual ICollection liquidacionesagenterecibos { get; set; } = new List(); +} diff --git a/bdAsegasa/db/remesas.cs b/bdAsegasa/db/remesas.cs new file mode 100644 index 0000000..695832f --- /dev/null +++ b/bdAsegasa/db/remesas.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class remesas +{ + public int idRemesa { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idTipo { get; set; } + + public DateOnly? Fecha { get; set; } + + public string? IBAN { get; set; } + + public DateTime? FechaCreacion { get; set; } + + public int? idFichero { get; set; } + + public int? idAsiento { get; set; } + + public virtual asientos? idAsientoNavigation { get; set; } + + public virtual ficheros? idFicheroNavigation { get; set; } + + public virtual enumeraciones? idTipoNavigation { get; set; } + + public virtual ICollection recibos { get; set; } = new List(); +} diff --git a/bdAsegasa/db/seriesfacturas.cs b/bdAsegasa/db/seriesfacturas.cs new file mode 100644 index 0000000..9ff04e9 --- /dev/null +++ b/bdAsegasa/db/seriesfacturas.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class seriesfacturas +{ + public int idSerieFactura { get; set; } + + public string? Descripcion { get; set; } + + public bool IVA { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public string Serie { get; set; } = null!; + + public int? AnnoActual { get; set; } + + public int? TipoVerifactu { get; set; } + + public int? idSerieRectificativa { get; set; } + + public int? TranscendenciaTributaria { get; set; } + + public int? CalificacionOperacionesOExencion { get; set; } + + public int Clase { get; set; } + + public string? ConceptoVerifactu { get; set; } + + public virtual ICollection liquidacionesagentes { get; set; } = new List(); +} diff --git a/bdAsegasa/db/sesiones.cs b/bdAsegasa/db/sesiones.cs new file mode 100644 index 0000000..c38b473 --- /dev/null +++ b/bdAsegasa/db/sesiones.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class sesiones +{ + public int idSesion { get; set; } + + public DateTime FechaInicio { get; set; } + + public DateTime FechaUltimaComprobacion { get; set; } + + public int? idUsuario { get; set; } + + public string? ip { get; set; } + + public virtual ICollection bloqueos { get; set; } = new List(); + + public virtual usuarios? idUsuarioNavigation { get; set; } +} diff --git a/bdAsegasa/db/siniestros.cs b/bdAsegasa/db/siniestros.cs new file mode 100644 index 0000000..7b5e1ad --- /dev/null +++ b/bdAsegasa/db/siniestros.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class siniestros +{ + public int idSiniestro { get; set; } + + /// + /// tabla polizas + /// + public int idPoliza { get; set; } + + public string? ReferenciaCompania { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idCulpa { get; set; } + + public DateOnly? FechaAccidente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTramitacion { get; set; } + + public DateOnly? FechaCierre { get; set; } + + public bool PendienteDeCobro { get; set; } + + public double? CantidadPagarAsegasa { get; set; } + + /// + /// tabla entidades + /// + public int? idEntidadContrario { get; set; } + + public string? DanosCliente { get; set; } + + public string? DanosContrario { get; set; } + + public int? idEntidadTaller { get; set; } + + public string? Observaciones { get; set; } + + public string? MatriculaContrario { get; set; } + + public string? ReferenciaAsegasaHP { get; set; } + + public string? DescripcionSiniestro { get; set; } + + public string? NumeroPolizaContrario { get; set; } + + public string? BienContrario { get; set; } + + public DateTime? FechaAlta { get; set; } + + public string? BienesAsegurados { get; set; } + + public DateOnly? FechaProximoRecordatorio { get; set; } + + public string? CiaContrario { get; set; } + + public int? idUsuarioCreador { get; set; } + + /// + /// tabla usuarios + /// + public int? idUsuarioModificador { get; set; } + + public DateOnly? FechaModificacion { get; set; } + + public virtual ICollection documentossiniestros { get; set; } = new List(); + + public virtual ICollection gestionessiniestros { get; set; } = new List(); + + public virtual enumeraciones? idCulpaNavigation { get; set; } + + public virtual entidades? idEntidadContrarioNavigation { get; set; } + + public virtual entidades? idEntidadTallerNavigation { get; set; } + + public virtual polizassg idPolizaNavigation { get; set; } = null!; + + public virtual enumeraciones? idTramitacionNavigation { get; set; } + + public virtual usuarios? idUsuarioCreadorNavigation { get; set; } + + public virtual usuarios? idUsuarioModificadorNavigation { get; set; } + + public virtual ICollection siniestros_eiac { get; set; } = new List(); +} diff --git a/bdAsegasa/db/siniestros_eiac.cs b/bdAsegasa/db/siniestros_eiac.cs new file mode 100644 index 0000000..3b17020 --- /dev/null +++ b/bdAsegasa/db/siniestros_eiac.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class siniestros_eiac +{ + public int idSiniestroEIAC { get; set; } + + public int? idSiniestro { get; set; } + + public int? idPoliza { get; set; } + + public string NumeroPoliza { get; set; } = null!; + + public string? NumeroSuplemento { get; set; } + + public int? idFicheroCompania { get; set; } + + public string idSiniestroEntidad { get; set; } = null!; + + public DateTime FechaDeclaracion { get; set; } + + public DateTime FechaOcurrencia { get; set; } + + public int PosicionSiniestro { get; set; } + + public string DescripcionSiniestro { get; set; } = null!; + + public int TipologiaSiniestro { get; set; } + + public double? ImporteIndemnizacion { get; set; } + + public double? ImporteReserva { get; set; } + + public int? idLugarSiniestro { get; set; } + + public int idCompania { get; set; } + + public int? SituacionAsegasa { get; set; } + + public DateTime? FechaSituacion { get; set; } + + public int? idUsuarioSituacion { get; set; } + + public virtual ICollection accionessiniestros_eiac { get; set; } = new List(); + + public virtual ICollection actualizacionessiniestros_eiac { get; set; } = new List(); + + public virtual ICollection estadossiniestros_eiac { get; set; } = new List(); + + public virtual ICollection expedientessiniestros_eiac { get; set; } = new List(); + + public virtual companias idCompaniaNavigation { get; set; } = null!; + + public virtual ficheroscompanias? idFicheroCompaniaNavigation { get; set; } + + public virtual direcciones? idLugarSiniestroNavigation { get; set; } + + public virtual polizassg? idPolizaNavigation { get; set; } + + public virtual siniestros? idSiniestroNavigation { get; set; } + + public virtual usuarios? idUsuarioSituacionNavigation { get; set; } + + public virtual ICollection pagossiniestros_eiac { get; set; } = new List(); +} diff --git a/bdAsegasa/db/subagentes.cs b/bdAsegasa/db/subagentes.cs new file mode 100644 index 0000000..1448896 --- /dev/null +++ b/bdAsegasa/db/subagentes.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class subagentes +{ + public int idSubagente { get; set; } + + public string? Codigo { get; set; } + + public string? Nombre { get; set; } + + public string? Clave { get; set; } + + public string? CodigoPostal { get; set; } + + public string? Telefono { get; set; } + + public string? Email { get; set; } + + public int idAgente { get; set; } + + public string? CodigoMunicipio { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public uint? idSuborganizacion { get; set; } + + public string? codigoUsuarioAvant2 { get; set; } + + public string? contrasenaAvant2 { get; set; } + + public int? idUsuarioRelacionado { get; set; } + + public string? MapeoCaser { get; set; } + + public string? MapeoAllianz { get; set; } + + public string? MapeoPelayo { get; set; } + + public string? hashContrasena { get; set; } + + public virtual municipios? CodigoMunicipioNavigation { get; set; } + + public virtual ICollection avant2__sso { get; set; } = new List(); + + public virtual agentes idAgenteNavigation { get; set; } = null!; + + public virtual avant2__suborganizaciones? idSuborganizacionNavigation { get; set; } + + public virtual usuarios? idUsuarioRelacionadoNavigation { get; set; } + + public virtual ICollection polizasagrario { get; set; } = new List(); + + public virtual ICollection polizassg { get; set; } = new List(); + + public virtual ICollection recibos { get; set; } = new List(); +} diff --git a/bdAsegasa/db/tiposgestionsiniestros.cs b/bdAsegasa/db/tiposgestionsiniestros.cs new file mode 100644 index 0000000..baf22ca --- /dev/null +++ b/bdAsegasa/db/tiposgestionsiniestros.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class tiposgestionsiniestros +{ + public int idTipoGestionSiniestro { get; set; } + + public string? Codigo { get; set; } + + public string? Descripcion { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idClase { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idDestinatario { get; set; } + + public string? Observaciones { get; set; } + + public int? idFichero { get; set; } + + public bool TienePlantilla { get; set; } + + public virtual ICollection gestionessiniestros { get; set; } = new List(); + + public virtual enumeraciones? idClaseNavigation { get; set; } + + public virtual enumeraciones? idDestinatarioNavigation { get; set; } + + public virtual ficheros? idFicheroNavigation { get; set; } +} diff --git a/bdAsegasa/db/usuarios.cs b/bdAsegasa/db/usuarios.cs new file mode 100644 index 0000000..1c54a97 --- /dev/null +++ b/bdAsegasa/db/usuarios.cs @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class usuarios +{ + public int idUsuario { get; set; } + + public string Usuario { get; set; } = null!; + + public string? Nombre { get; set; } + + public string? SHA1Passwd { get; set; } + + public int idGrupobd { get; set; } + + public int? idGrupo { get; set; } + + public int? idTema { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public string? email { get; set; } + + public string? Oficina { get; set; } + + public double? Escala { get; set; } + + public virtual ICollection actualizacionessiniestros_eiac { get; set; } = new List(); + + public virtual ICollection agentes { get; set; } = new List(); + + public virtual ICollection asientos { get; set; } = new List(); + + public virtual ICollection asientosmodelos { get; set; } = new List(); + + public virtual ICollection autorizacionesusuarios { get; set; } = new List(); + + public virtual ICollection companias { get; set; } = new List(); + + public virtual ICollection conciliacionesbancarias { get; set; } = new List(); + + public virtual ICollection departamentos { get; set; } = new List(); + + public virtual ICollection departamentosmiembros { get; set; } = new List(); + + public virtual ICollection documentospolizasagrario { get; set; } = new List(); + + public virtual ICollection documentospolizassgidUsuarioAdjuntaFicheroNavigation { get; set; } = new List(); + + public virtual ICollection documentospolizassgidUsuarioCompruebaNavigation { get; set; } = new List(); + + public virtual ICollection documentosvarios { get; set; } = new List(); + + public virtual ICollection expedientesagentes { get; set; } = new List(); + + public virtual ICollection extractosbancarios { get; set; } = new List(); + + public virtual ICollection ficheroscompanias { get; set; } = new List(); + + public virtual ICollection gestionespolizasagrario { get; set; } = new List(); + + public virtual ICollection gestionespolizassg { get; set; } = new List(); + + public virtual ICollection gestionesrecibos { get; set; } = new List(); + + public virtual ICollection gestionessiniestrosidUsuarioCreadorNavigation { get; set; } = new List(); + + public virtual ICollection gestionessiniestrosidUsuarioModificadorNavigation { get; set; } = new List(); + + public virtual gruposusuarios? idGrupoNavigation { get; set; } + + public virtual grupobd idGrupobdNavigation { get; set; } = null!; + + public virtual enumeraciones? idTemaNavigation { get; set; } + + public virtual ICollection liquidacionesviajes { get; set; } = new List(); + + public virtual ICollection mensajes { get; set; } = new List(); + + public virtual ICollection polizassg { get; set; } = new List(); + + public virtual ICollection recibos { get; set; } = new List(); + + public virtual ICollection sesiones { get; set; } = new List(); + + public virtual ICollection siniestros_eiac { get; set; } = new List(); + + public virtual ICollection siniestrosidUsuarioCreadorNavigation { get; set; } = new List(); + + public virtual ICollection siniestrosidUsuarioModificadorNavigation { get; set; } = new List(); + + public virtual ICollection subagentes { get; set; } = new List(); +} diff --git a/bdAsegasa/db/v_act_apuntes.cs b/bdAsegasa/db/v_act_apuntes.cs new file mode 100644 index 0000000..b04916e --- /dev/null +++ b/bdAsegasa/db/v_act_apuntes.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_act_apuntes +{ + public int idRegistro { get; set; } + + public string? MacroAct { get; set; } + + public int? idFicheroCompania { get; set; } + + public int? NumeroGeneracion { get; set; } + + public int idApunte { get; set; } + + /// + /// tabla cuentas + /// + public int idCuenta { get; set; } + + public string? NumeroCuenta { get; set; } + + public string? Concepto { get; set; } + + public string? NumeroDocumento { get; set; } + + public double Debe { get; set; } + + public double Haber { get; set; } + + public int idAsiento { get; set; } + + public int? idConcepto { get; set; } + + public DateTime? FechaPunteo { get; set; } + + public int? TipoDocumento { get; set; } + + public DateOnly? Fecha { get; set; } + + public int? idConciliacion { get; set; } + + public string? CodigoConcepto { get; set; } +} diff --git a/bdAsegasa/db/v_act_entidades.cs b/bdAsegasa/db/v_act_entidades.cs new file mode 100644 index 0000000..f73757b --- /dev/null +++ b/bdAsegasa/db/v_act_entidades.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_act_entidades +{ + public int idRegistro { get; set; } + + public int idEntidad { get; set; } + + public string? CIF { get; set; } + + public string? RazonSocial { get; set; } + + public string? Apellidos { get; set; } + + public string? Nombre { get; set; } + + public string? Telefono1 { get; set; } + + public string? Telefono2 { get; set; } + + public string? AfiliacionSeguridadSocial { get; set; } + + public string? Email { get; set; } + + public string? IBAN { get; set; } + + public int? idSexo { get; set; } + + public DateOnly? FechaNacimiento { get; set; } + + public DateOnly? FechaExpedicionCarnet { get; set; } + + public int? idTipoPago { get; set; } + + public string? CuentaContable { get; set; } + + public bool VIP { get; set; } + + public string? Situacion { get; set; } + + public string? Observacion { get; set; } + + public bool EsClienteSG { get; set; } + + public bool EsTaller { get; set; } + + public bool EsContrarioSiniestro { get; set; } + + public int? idDireccionPrincipal { get; set; } + + public string? EstadoCivil { get; set; } + + public bool EsClienteSA { get; set; } + + public bool EsProveedor { get; set; } +} diff --git a/bdAsegasa/db/v_act_polizassg.cs b/bdAsegasa/db/v_act_polizassg.cs new file mode 100644 index 0000000..cd24f08 --- /dev/null +++ b/bdAsegasa/db/v_act_polizassg.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_act_polizassg +{ + public int idRegistro { get; set; } + + public string? MacroAct { get; set; } + + public int? NumeroGeneracion { get; set; } + + public int idPoliza { get; set; } + + public DateTime? FechaAlta { get; set; } + + public DateOnly? FechaEnvioCompania { get; set; } + + public string? NumeroPoliza { get; set; } + + public DateOnly? FechaReciboCompania { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + /// + /// tabla agentes + /// + public int idAgente { get; set; } + + public int? idSubAgente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoCobro { get; set; } + + public string? Matricula { get; set; } + + /// + /// Tabla Modelos + /// + public int? idModelo { get; set; } + + public int NumeroSuplemento { get; set; } + + /// + /// tabla usuarios, quien da de alta + /// + public int? idUsuario { get; set; } + + public DateOnly? FechaBaja { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idCausaBaja { get; set; } + + public DateOnly? FechaIncorporacionPropuesta { get; set; } + + public bool RechazoSuplemento { get; set; } + + /// + /// Numero de poliza del multitarificador + /// + public int? idMultitarificador { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Coberturas { get; set; } + + public string? Garantias { get; set; } + + public string? Observaciones { get; set; } + + public int? idTipoPago { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? NumeroDirectorio { get; set; } + + public string? IBAN { get; set; } + + public string? DescripcionSuplemento { get; set; } + + public int? idDuracion { get; set; } + + public int? idSituacion { get; set; } + + public int? idFicheroPresupuesto { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public int? idOrigenPresupuesto { get; set; } + + public string? ReferenciaAsegasa { get; set; } + + public DateTime? FechaDocumentosSuplementoRevisado { get; set; } + + public DateTime? FechaModificacion { get; set; } + + public string? CodigoCausaBaja { get; set; } + + public string? CodigoCia { get; set; } +} diff --git a/bdAsegasa/db/v_act_recibos.cs b/bdAsegasa/db/v_act_recibos.cs new file mode 100644 index 0000000..5efb1a3 --- /dev/null +++ b/bdAsegasa/db/v_act_recibos.cs @@ -0,0 +1,164 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_act_recibos +{ + public int idRegistro { get; set; } + + public string? MacroAct { get; set; } + + public int? idFicheroCompania { get; set; } + + public int? NumeroGeneracion { get; set; } + + public int idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + /// + /// tabla recibos + /// + public int? idReciboAsociado { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoPago { get; set; } + + /// + /// tabla remesa + /// + public int? idRemesa { get; set; } + + public DateOnly? FechaRemesa { get; set; } + + public int? idDuracion { get; set; } + + public int idTipo { get; set; } + + public DateOnly? FechaExpedicion { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public int? idCausaDevolucion { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idCausaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public DateOnly? FechaCartaRemesaCobroDirecto { get; set; } + + public DateOnly? FechaCartaDevuelto { get; set; } + + public DateOnly? FechaCartaImperativoLegal { get; set; } + + public DateOnly? FechaCartaAvisoAgente { get; set; } + + public DateOnly? FechaCartaEnvioRecibo { get; set; } + + public DateOnly? FechaImpresionTalon { get; set; } + + public DateOnly? FechaImpresionRecibo { get; set; } + + public string? Coberturas { get; set; } + + public string? CodigoCia { get; set; } + + public double? PrimaNeta { get; set; } + + public double? BonificacionORecargo { get; set; } + + public double? Consorcio { get; set; } + + public double? Impuesto { get; set; } + + public double? RecargoExterno { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? PorcentajeReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? PorcentajeComisionAgente { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? AsegasaRecargoExterno { get; set; } + + public double? AsegasaComisionConsorcio { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public string? IBAN { get; set; } + + public int idPoliza { get; set; } + + public double? BaseComisionAgente { get; set; } + + public double? PorcentajeBaseComisionAgente { get; set; } + + public double? PorcentajeComisionPrevista { get; set; } + + public double? ComisionPrevista { get; set; } + + public int? idSituacion { get; set; } + + public DateOnly? FechaRecepcionCia { get; set; } + + public string? CodigoRecibo { get; set; } + + public int? idUsuario { get; set; } + + public int? OrigenRecibo { get; set; } + + public DateOnly? FechaAsientoDevueltoBanco { get; set; } + + public string? NumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? TipoPago { get; set; } + + public string? TipoRecibo { get; set; } + + public string? Situacion { get; set; } + + public string? CodigoCausaDevolucion { get; set; } + + public string? CodigoTipoLiquidacion { get; set; } + + public int? NumeroLiquidacionCia { get; set; } + + public DateOnly? FechaLiquidacionCia { get; set; } + + public string? Observaciones { get; set; } + + public string? CodigoTipoLiquidacionAgente { get; set; } + + public int? NumeroLiquidacionAgente { get; set; } + + public DateOnly? FechaLiquidacionAgente { get; set; } + + public string? CausaBaja { get; set; } +} diff --git a/bdAsegasa/db/v_apuntesagrupados.cs b/bdAsegasa/db/v_apuntesagrupados.cs new file mode 100644 index 0000000..229692b --- /dev/null +++ b/bdAsegasa/db/v_apuntesagrupados.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_apuntesagrupados +{ + /// + /// tabla cuentas + /// + public int idCuenta { get; set; } + + public double? HaberEnero { get; set; } + + public double? HaberFebrero { get; set; } + + public double? HaberMarzo { get; set; } + + public double? HaberAbril { get; set; } + + public double? HaberMayo { get; set; } + + public double? HaberJunio { get; set; } + + public double? HaberJulio { get; set; } + + public double? HaberAgosto { get; set; } + + public double? HaberSeptiembre { get; set; } + + public double? HaberOctubre { get; set; } + + public double? HaberNoviembre { get; set; } + + public double? HaberDiciembre { get; set; } + + public double? DebeEnero { get; set; } + + public double? DebeFebrero { get; set; } + + public double? DebeMarzo { get; set; } + + public double? DebeAbril { get; set; } + + public double? DebeMayo { get; set; } + + public double? DebeJunio { get; set; } + + public double? DebeJulio { get; set; } + + public double? DebeAgosto { get; set; } + + public double? DebeSeptiembre { get; set; } + + public double? DebeOctubre { get; set; } + + public double? DebeNoviembre { get; set; } + + public double? DebeDiciembre { get; set; } + + public double? TotalDebe { get; set; } + + public double? TotalHaber { get; set; } +} diff --git a/bdAsegasa/db/v_apuntesextendidos.cs b/bdAsegasa/db/v_apuntesextendidos.cs new file mode 100644 index 0000000..f24f6c9 --- /dev/null +++ b/bdAsegasa/db/v_apuntesextendidos.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_apuntesextendidos +{ + public int idApunte { get; set; } + + /// + /// tabla cuentas + /// + public int idCuenta { get; set; } + + public string? Concepto { get; set; } + + public string? NumeroDocumento { get; set; } + + public double Debe { get; set; } + + public double Haber { get; set; } + + public int idAsiento { get; set; } + + public int? idConcepto { get; set; } + + public DateTime? FechaPunteo { get; set; } + + public int? TipoDocumento { get; set; } + + public int? idConciliacion { get; set; } + + public double? HaberEnero { get; set; } + + public double? HaberFebrero { get; set; } + + public double? HaberMarzo { get; set; } + + public double? HaberAbril { get; set; } + + public double? HaberMayo { get; set; } + + public double? HaberJunio { get; set; } + + public double? HaberJulio { get; set; } + + public double? HaberAgosto { get; set; } + + public double? HaberSeptiembre { get; set; } + + public double? HaberOctubre { get; set; } + + public double? HaberNoviembre { get; set; } + + public double? HaberDiciembre { get; set; } + + public double? DebeEnero { get; set; } + + public double? DebeFebrero { get; set; } + + public double? DebeMarzo { get; set; } + + public double? DebeAbril { get; set; } + + public double? DebeMayo { get; set; } + + public double? DebeJunio { get; set; } + + public double? DebeJulio { get; set; } + + public double? DebeAgosto { get; set; } + + public double? DebeSeptiembre { get; set; } + + public double? DebeOctubre { get; set; } + + public double? DebeNoviembre { get; set; } + + public double? DebeDiciembre { get; set; } +} diff --git a/bdAsegasa/db/v_codigosrecibos.cs b/bdAsegasa/db/v_codigosrecibos.cs new file mode 100644 index 0000000..d29e702 --- /dev/null +++ b/bdAsegasa/db/v_codigosrecibos.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_codigosrecibos +{ + public int idrecibo { get; set; } + + public string? CodigoReciboc { get; set; } + + public string? CodigoRecibo { get; set; } + + public string? NumeroRecibo { get; set; } +} diff --git a/bdAsegasa/db/v_descobro_cia.cs b/bdAsegasa/db/v_descobro_cia.cs new file mode 100644 index 0000000..ed2e7b0 --- /dev/null +++ b/bdAsegasa/db/v_descobro_cia.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_descobro_cia +{ + public int idrecibo { get; set; } + + public DateOnly? UltimaFecha { get; set; } +} diff --git a/bdAsegasa/db/v_devolucion_cia.cs b/bdAsegasa/db/v_devolucion_cia.cs new file mode 100644 index 0000000..e510be0 --- /dev/null +++ b/bdAsegasa/db/v_devolucion_cia.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_devolucion_cia +{ + public int idrecibo { get; set; } + + public DateOnly? UltimaFecha { get; set; } +} diff --git a/bdAsegasa/db/v_documentos_pendientes_comprobacion.cs b/bdAsegasa/db/v_documentos_pendientes_comprobacion.cs new file mode 100644 index 0000000..3ec7b6c --- /dev/null +++ b/bdAsegasa/db/v_documentos_pendientes_comprobacion.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_documentos_pendientes_comprobacion +{ + public int idPoliza { get; set; } + + public long DocumentosPendientes { get; set; } +} diff --git a/bdAsegasa/db/v_documentos_pendientes_subir.cs b/bdAsegasa/db/v_documentos_pendientes_subir.cs new file mode 100644 index 0000000..26ca23a --- /dev/null +++ b/bdAsegasa/db/v_documentos_pendientes_subir.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_documentos_pendientes_subir +{ + public int idPoliza { get; set; } + + public long DocumentosPendientes { get; set; } +} diff --git a/bdAsegasa/db/v_documentospendientes.cs b/bdAsegasa/db/v_documentospendientes.cs new file mode 100644 index 0000000..1eb4b2d --- /dev/null +++ b/bdAsegasa/db/v_documentospendientes.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_documentospendientes +{ + public int idPoliza { get; set; } + + public decimal? DocumentosPendientesSubir { get; set; } + + public decimal? DocumentosPendientesComprobacion { get; set; } +} diff --git a/bdAsegasa/db/v_lc_agrupadas_cia.cs b/bdAsegasa/db/v_lc_agrupadas_cia.cs new file mode 100644 index 0000000..3ec186f --- /dev/null +++ b/bdAsegasa/db/v_lc_agrupadas_cia.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_lc_agrupadas_cia +{ + public int? idliquidacioncia { get; set; } + + /// + /// tabla compañia + /// + public int? idcompania { get; set; } +} diff --git a/bdAsegasa/db/v_liquidacion_agente.cs b/bdAsegasa/db/v_liquidacion_agente.cs new file mode 100644 index 0000000..a9a49cb --- /dev/null +++ b/bdAsegasa/db/v_liquidacion_agente.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_liquidacion_agente +{ + public int idrecibo { get; set; } + + public DateOnly? UltimaFecha { get; set; } +} diff --git a/bdAsegasa/db/v_liquidacion_cia.cs b/bdAsegasa/db/v_liquidacion_cia.cs new file mode 100644 index 0000000..8742bc6 --- /dev/null +++ b/bdAsegasa/db/v_liquidacion_cia.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_liquidacion_cia +{ + public int idrecibo { get; set; } + + public DateOnly? UltimaFecha { get; set; } +} diff --git a/bdAsegasa/db/v_liquidacion_cia_devuelto.cs b/bdAsegasa/db/v_liquidacion_cia_devuelto.cs new file mode 100644 index 0000000..cac05f3 --- /dev/null +++ b/bdAsegasa/db/v_liquidacion_cia_devuelto.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_liquidacion_cia_devuelto +{ + public int idrecibo { get; set; } + + public DateOnly? UltimaFecha { get; set; } +} diff --git a/bdAsegasa/db/v_liquidacionescompaniasrecibostipo.cs b/bdAsegasa/db/v_liquidacionescompaniasrecibostipo.cs new file mode 100644 index 0000000..c386cf2 --- /dev/null +++ b/bdAsegasa/db/v_liquidacionescompaniasrecibostipo.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_liquidacionescompaniasrecibostipo +{ + public int idLiquidacionesCiaRecibo { get; set; } + + public int idLiquidacionCia { get; set; } + + public int idRecibo { get; set; } + + public double? Importe { get; set; } + + public DateOnly? Fecha { get; set; } + + public int? idTipoLiquidacion { get; set; } +} diff --git a/bdAsegasa/db/v_numero_gestiones_siniestros.cs b/bdAsegasa/db/v_numero_gestiones_siniestros.cs new file mode 100644 index 0000000..c9c2e4f --- /dev/null +++ b/bdAsegasa/db/v_numero_gestiones_siniestros.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_numero_gestiones_siniestros +{ + public long NumeroGestiones { get; set; } + + public int idsiniestro { get; set; } +} diff --git a/bdAsegasa/db/v_recibos_liquidacionagentes.cs b/bdAsegasa/db/v_recibos_liquidacionagentes.cs new file mode 100644 index 0000000..1b7a1d9 --- /dev/null +++ b/bdAsegasa/db/v_recibos_liquidacionagentes.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_recibos_liquidacionagentes +{ + public int? idrecibo { get; set; } + + public DateOnly? Fecha { get; set; } +} diff --git a/bdAsegasa/db/v_recibospendientesdescobro_1.cs b/bdAsegasa/db/v_recibospendientesdescobro_1.cs new file mode 100644 index 0000000..b609089 --- /dev/null +++ b/bdAsegasa/db/v_recibospendientesdescobro_1.cs @@ -0,0 +1,181 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_recibospendientesdescobro_1 +{ + public int? idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + /// + /// tabla recibos + /// + public int? idReciboAsociado { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoPago { get; set; } + + /// + /// tabla remesa + /// + public int? idRemesa { get; set; } + + public int? idDuracion { get; set; } + + public int? idTipo { get; set; } + + public DateOnly? FechaExpedicion { get; set; } + + public DateOnly? FechaEfecto { get; set; } + + public DateOnly? FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public int? idCausaDevolucion { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idCausaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public DateOnly? FechaCartaRemesaCobroDirecto { get; set; } + + public DateOnly? FechaCartaDevuelto { get; set; } + + public DateOnly? FechaCartaImperativoLegal { get; set; } + + public DateOnly? FechaCartaAvisoAgente { get; set; } + + public DateOnly? FechaCartaEnvioRecibo { get; set; } + + public DateOnly? FechaImpresionTalon { get; set; } + + public DateOnly? FechaImpresionRecibo { get; set; } + + public string? Observaciones { get; set; } + + public double? PrimaNeta { get; set; } + + public double? BonificacionORecargo { get; set; } + + public double? Consorcio { get; set; } + + public double? Impuesto { get; set; } + + public double? RecargoExterno { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? PorcentajeReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? PorcentajeComisionAgente { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? AsegasaRecargoExterno { get; set; } + + public double? AsegasaComisionConsorcio { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public string? IBAN { get; set; } + + public int? idPoliza { get; set; } + + public double? BaseComisionAgente { get; set; } + + public double? PorcentajeBaseComisionAgente { get; set; } + + public double? PorcentajeComisionPrevista { get; set; } + + public double? ComisionPrevista { get; set; } + + public int? idSituacion { get; set; } + + public DateOnly? FechaRecepcionCia { get; set; } + + public string? CodigoRecibo { get; set; } + + public int? idAsientoFacturacion { get; set; } + + public int? idAsientoDevueltoBanco { get; set; } + + public DateOnly? FechaAsientoDevueltoBanco { get; set; } + + /// + /// tabla compañia + /// + public int? idCompania { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public string? CausaBaja { get; set; } + + public string? Situacion { get; set; } + + public string? TipoRecibo { get; set; } + + public string? NumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Matricula { get; set; } + + public string? Coberturas { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public string? SubAgenteSuperior { get; set; } + + public string? Oficina { get; set; } + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public DateOnly? FechaLiquidacionAgente { get; set; } + + public string? CodigoCausaDevolucion { get; set; } +} diff --git a/bdAsegasa/db/v_recibospendientesdescobro_2.cs b/bdAsegasa/db/v_recibospendientesdescobro_2.cs new file mode 100644 index 0000000..dff3424 --- /dev/null +++ b/bdAsegasa/db/v_recibospendientesdescobro_2.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_recibospendientesdescobro_2 +{ + public int idLiquidacionesCiaRecibo { get; set; } + + public int idLiquidacionCia { get; set; } + + public int idRecibo { get; set; } + + public double? Importe { get; set; } +} diff --git a/bdAsegasa/db/v_registrostablas.cs b/bdAsegasa/db/v_registrostablas.cs new file mode 100644 index 0000000..435c515 --- /dev/null +++ b/bdAsegasa/db/v_registrostablas.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_registrostablas +{ + public string? Expr { get; set; } +} diff --git a/bdAsegasa/db/v_tomadores.cs b/bdAsegasa/db/v_tomadores.cs new file mode 100644 index 0000000..4547c2f --- /dev/null +++ b/bdAsegasa/db/v_tomadores.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_tomadores +{ + /// + /// tabla polizas + /// + public int idPoliza { get; set; } + + public string? Telefono1 { get; set; } + + public string? Telefono2 { get; set; } + + public string? Email { get; set; } + + public string? Direccion { get; set; } + + public string? CodigoPostal { get; set; } + + public string? Poblacion { get; set; } + + public string? Provincia { get; set; } + + public int? idEntidad { get; set; } + + public string? CIF { get; set; } + + public string? RazonSocial { get; set; } + + public string? Apellidos { get; set; } + + public string? Nombre { get; set; } + + public string? AfiliacionSeguridadSocial { get; set; } + + public string? IBAN { get; set; } + + public int? idSexo { get; set; } + + public DateOnly? FechaNacimiento { get; set; } + + public DateOnly? FechaExpedicionCarnet { get; set; } + + public int? idTipoPago { get; set; } + + public string? CuentaContable { get; set; } + + public bool? VIP { get; set; } + + public string? Situacion { get; set; } + + public string? Observacion { get; set; } + + public bool? EsClienteSG { get; set; } + + public bool? EsTaller { get; set; } + + public bool? EsContrarioSiniestro { get; set; } + + public int? idDireccionPrincipal { get; set; } + + public string? EstadoCivil { get; set; } +} diff --git a/bdAsegasa/db/v_ultima_liquidacion_agente.cs b/bdAsegasa/db/v_ultima_liquidacion_agente.cs new file mode 100644 index 0000000..b018961 --- /dev/null +++ b/bdAsegasa/db/v_ultima_liquidacion_agente.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_ultima_liquidacion_agente +{ + public int idrecibo { get; set; } + + public DateOnly? UltimaFecha { get; set; } +} diff --git a/bdAsegasa/db/v_ultima_liquidacion_cia.cs b/bdAsegasa/db/v_ultima_liquidacion_cia.cs new file mode 100644 index 0000000..d873c0d --- /dev/null +++ b/bdAsegasa/db/v_ultima_liquidacion_cia.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class v_ultima_liquidacion_cia +{ + public int idrecibo { get; set; } + + public DateOnly? UltimaFecha { get; set; } + + public int? idTipoLiquidacion { get; set; } + + public int? idLiquidacionCia { get; set; } +} diff --git a/bdAsegasa/db/vf_cuentas.cs b/bdAsegasa/db/vf_cuentas.cs new file mode 100644 index 0000000..c06a4b3 --- /dev/null +++ b/bdAsegasa/db/vf_cuentas.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_cuentas +{ + public int idCuenta { get; set; } + + public string? Mote { get; set; } + + public string Denominacion { get; set; } = null!; + + public double PresupuestoEnero { get; set; } + + public double PresupuestoFebrero { get; set; } + + public double PresupuestoMarzo { get; set; } + + public double PresupuestoAbril { get; set; } + + public double PresupuestoMayo { get; set; } + + public double PresupuestoJunio { get; set; } + + public double PresupuestoJulio { get; set; } + + public double PresupuestoAgosto { get; set; } + + public double PresupuestoSeptiembre { get; set; } + + public double PresupuestoOctubre { get; set; } + + public double PresupuestoNoviembre { get; set; } + + public double PresupuestoDiciembre { get; set; } + + public string? Observaciones { get; set; } + + public string NumeroCuenta { get; set; } = null!; + + public int idEjercicio { get; set; } + + public int? idEmpresaAmortizacion { get; set; } + + public bool EsCuentaFinal { get; set; } + + public double? HaberEnero { get; set; } + + public double? HaberFebrero { get; set; } + + public double? HaberMarzo { get; set; } + + public double? HaberAbril { get; set; } + + public double? HaberMayo { get; set; } + + public double? HaberJunio { get; set; } + + public double? HaberJulio { get; set; } + + public double? HaberAgosto { get; set; } + + public double? HaberSeptiembre { get; set; } + + public double? HaberOctubre { get; set; } + + public double? HaberNoviembre { get; set; } + + public double? HaberDiciembre { get; set; } + + public double? DebeEnero { get; set; } + + public double? DebeFebrero { get; set; } + + public double? DebeMarzo { get; set; } + + public double? DebeAbril { get; set; } + + public double? DebeMayo { get; set; } + + public double? DebeJunio { get; set; } + + public double? DebeJulio { get; set; } + + public double? DebeAgosto { get; set; } + + public double? DebeSeptiembre { get; set; } + + public double? DebeOctubre { get; set; } + + public double? DebeNoviembre { get; set; } + + public double? DebeDiciembre { get; set; } + + public double TotalDebe { get; set; } + + public double TotalHaber { get; set; } + + public string? Ejercicio { get; set; } +} diff --git a/bdAsegasa/db/vf_documentospolizassgextendidas.cs b/bdAsegasa/db/vf_documentospolizassgextendidas.cs new file mode 100644 index 0000000..8d06d7c --- /dev/null +++ b/bdAsegasa/db/vf_documentospolizassgextendidas.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_documentospolizassgextendidas +{ + public string? NumeroPoliza { get; set; } + + public int NumeroSuplemento { get; set; } + + public DateTime? FechaAlta { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Matricula { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + public string? Agente { get; set; } + + public string? CodigoAgente { get; set; } + + public DateTime? FechaDocumentosSuplementoRevisado { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public string? IBAN { get; set; } + + public int idDocumento { get; set; } + + public string? Descripcion { get; set; } + + public int idPoliza { get; set; } + + public int? idDocumentoASolicitar { get; set; } + + public int? idFichero { get; set; } + + public DateTime? FechaComprobacion { get; set; } + + public int? idUsuarioComprueba { get; set; } + + public int? idCorreoAsegasa { get; set; } + + public bool Obligatorio { get; set; } + + public DateTime? Fecha { get; set; } + + public int? idUsuarioAdjuntaFichero { get; set; } + + public string? NombreFichero { get; set; } + + public string? UsuarioComprueba { get; set; } + + public string? UsuarioAdjunta { get; set; } + + public DateTime? FechaEnvioCorreo { get; set; } + + public string? DestinatarioCorreo { get; set; } +} diff --git a/bdAsegasa/db/vf_ficherosreducidos.cs b/bdAsegasa/db/vf_ficherosreducidos.cs new file mode 100644 index 0000000..7898926 --- /dev/null +++ b/bdAsegasa/db/vf_ficherosreducidos.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_ficherosreducidos +{ + public int idFichero { get; set; } + + public string? Descripcion { get; set; } + + public DateTime? Fecha { get; set; } + + public int? idTipo { get; set; } + + public string? Observaciones { get; set; } + + public string? NombreFichero { get; set; } + + public int? idAplicacion { get; set; } +} diff --git a/bdAsegasa/db/vf_historicocomisiones.cs b/bdAsegasa/db/vf_historicocomisiones.cs new file mode 100644 index 0000000..49e44e3 --- /dev/null +++ b/bdAsegasa/db/vf_historicocomisiones.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_historicocomisiones +{ + public int idCodigoAgente { get; set; } + + public int idPolizaAgrario { get; set; } + + public string? poliza { get; set; } + + public DateOnly? fechapoliza { get; set; } + + public int? idAsegurado { get; set; } + + public string? Asegurado { get; set; } + + public string? CIFAsegurado { get; set; } + + public string? Agente { get; set; } + + public string? SubAgente { get; set; } + + public string? PlanLineaDescripcion { get; set; } + + public string? PlanLinea { get; set; } + + public double? PrimaBaseDeCalculo { get; set; } + + public double? incentivoAgente { get; set; } + + public double? comisionAgente { get; set; } + + public DateOnly? fechaLiquidacion { get; set; } + + public string? numeroLiquidacion { get; set; } +} diff --git a/bdAsegasa/db/vf_liquidacionesagentes_estadisticas.cs b/bdAsegasa/db/vf_liquidacionesagentes_estadisticas.cs new file mode 100644 index 0000000..6e5e9a7 --- /dev/null +++ b/bdAsegasa/db/vf_liquidacionesagentes_estadisticas.cs @@ -0,0 +1,118 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_liquidacionesagentes_estadisticas +{ + public int idliquidacionesagenterecibo { get; set; } + + public int? NumeroLiquidacion { get; set; } + + public double? ImporteLiquidado { get; set; } + + public DateOnly? FechaLiquidacion { get; set; } + + public int? idRecibo { get; set; } + + public string? CodigoRecibo { get; set; } + + public DateOnly? FechaEfecto { get; set; } + + public DateOnly? FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? ComisionPrevista { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public double? TotalReciboAnulado { get; set; } + + public double? ComisionReciboPrimaNetaAnulado { get; set; } + + public double? TotalComisionAnulado { get; set; } + + public double? ComisionAgenteAnulado { get; set; } + + public double? ComisionAsegasaPrimaNetaAnulado { get; set; } + + public double? ComisionPrevistaAnulado { get; set; } + + public double? AsegasaComisionTotalAnulado { get; set; } + + public int? EsRecibo { get; set; } + + public int? EsAnulacion { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + /// + /// tabla ramos + /// + public int? idRamo { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public string? CausaBaja { get; set; } + + public bool? CausaBajaOculta { get; set; } + + public string? TipoRecibo { get; set; } + + public string? TipoProduccion { get; set; } + + public string? NumeroPoliza { get; set; } + + public string? CiaNumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? CodigoAgente { get; set; } + + public int? idAgente { get; set; } + + public string? Agente { get; set; } + + public string? SubAgenteSuperior { get; set; } + + public string? Oficina { get; set; } + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public string? CodigoCausaDevolucion { get; set; } +} diff --git a/bdAsegasa/db/vf_liquidacionesagentesagrarios_estadisticas.cs b/bdAsegasa/db/vf_liquidacionesagentesagrarios_estadisticas.cs new file mode 100644 index 0000000..8cc2967 --- /dev/null +++ b/bdAsegasa/db/vf_liquidacionesagentesagrarios_estadisticas.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_liquidacionesagentesagrarios_estadisticas +{ + public int idCodigoAgente { get; set; } + + public int idPolizaAgrario { get; set; } + + public string? poliza { get; set; } + + public DateOnly? fechapoliza { get; set; } + + public int? idAsegurado { get; set; } + + public string? Asegurado { get; set; } + + public string? CIFAsegurado { get; set; } + + public int? idAgente { get; set; } + + public string? Agente { get; set; } + + public int? idSubAgente { get; set; } + + public string? SubAgente { get; set; } + + public string? PlanLineaDescripcion { get; set; } + + public string? PlanLinea { get; set; } + + public double? PrimaBaseDeCalculo { get; set; } + + public double? incentivoAgente { get; set; } + + public double? comisionAgente { get; set; } + + public double? TotalComisionAgente { get; set; } + + public DateOnly? fechaLiquidacion { get; set; } + + public string? numeroLiquidacion { get; set; } +} diff --git a/bdAsegasa/db/vf_liquidacionesagentesverifactu.cs b/bdAsegasa/db/vf_liquidacionesagentesverifactu.cs new file mode 100644 index 0000000..89e6a20 --- /dev/null +++ b/bdAsegasa/db/vf_liquidacionesagentesverifactu.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_liquidacionesagentesverifactu +{ + public int idLiquidacionAgente { get; set; } + + public DateOnly Fecha { get; set; } + + public int idTipoLiquidacion { get; set; } + + public string? ReferenciaHP { get; set; } + + public int BrutoComisiones { get; set; } + + public double BaseImponible { get; set; } + + public double IVA { get; set; } + + public double IRPF { get; set; } + + public double Importe { get; set; } + + public int? NumeroGeneracion { get; set; } + + public int? idFicheroSEPA { get; set; } + + public int? idAsiento { get; set; } + + public int? IdCorreo { get; set; } + + public string? NumeroFactura { get; set; } + + public DateOnly? FechaFactura { get; set; } + + public int? idAgente { get; set; } + + public int? idSerieFactura { get; set; } + + public int? idLiquidacionRectificativa { get; set; } + + public double? PorcentajeIVA { get; set; } + + public int? idRegistro { get; set; } + + public int? idRespuestaVerifactu { get; set; } + + public int? Operacion { get; set; } + + public int? TipoFactura { get; set; } + + public DateTime? FechaGeneracion { get; set; } + + public int? Estado { get; set; } + + public int? idRegistroAnterior { get; set; } + + public string? Huella { get; set; } + + public DateTime? FechaEncadenado { get; set; } + + public string? ErrorVerifactu { get; set; } + + public int? Aplicacion { get; set; } + + public int? idAplicacion { get; set; } + + public string? OtrosDatos { get; set; } + + public int? idRegistroCorreccion { get; set; } + + public string? Agente { get; set; } + + public string? TipoLiquidacion { get; set; } +} diff --git a/bdAsegasa/db/vf_liquidacionesciasextendidas.cs b/bdAsegasa/db/vf_liquidacionesciasextendidas.cs new file mode 100644 index 0000000..fe194b9 --- /dev/null +++ b/bdAsegasa/db/vf_liquidacionesciasextendidas.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_liquidacionesciasextendidas +{ + public int idliquidacioncia { get; set; } + + public long NumeroCias { get; set; } + + public string? Cia { get; set; } + + public string? ReferenciaHP { get; set; } + + public DateOnly? Fecha { get; set; } + + public double? Importe { get; set; } + + public int? idAsiento { get; set; } + + public int? idPagoLiquidacionCia { get; set; } + + public string? Tipo { get; set; } +} diff --git a/bdAsegasa/db/vf_liquidacionesrecibosextendidas.cs b/bdAsegasa/db/vf_liquidacionesrecibosextendidas.cs new file mode 100644 index 0000000..65afa80 --- /dev/null +++ b/bdAsegasa/db/vf_liquidacionesrecibosextendidas.cs @@ -0,0 +1,193 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_liquidacionesrecibosextendidas +{ + public int idLiquidacionesCiaRecibo { get; set; } + + public int? idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + /// + /// tabla recibos + /// + public int? idReciboAsociado { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoPago { get; set; } + + /// + /// tabla remesa + /// + public int? idRemesa { get; set; } + + public int? idDuracion { get; set; } + + public int? idTipo { get; set; } + + public DateOnly? FechaExpedicion { get; set; } + + public DateOnly? FechaEfecto { get; set; } + + public DateOnly? FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public int? idCausaDevolucion { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idCausaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public DateOnly? FechaCartaRemesaCobroDirecto { get; set; } + + public DateOnly? FechaCartaDevuelto { get; set; } + + public DateOnly? FechaCartaImperativoLegal { get; set; } + + public DateOnly? FechaCartaAvisoAgente { get; set; } + + public DateOnly? FechaCartaEnvioRecibo { get; set; } + + public DateOnly? FechaImpresionTalon { get; set; } + + public DateOnly? FechaImpresionRecibo { get; set; } + + public string? Observaciones { get; set; } + + public double? PrimaNeta { get; set; } + + public double? BonificacionORecargo { get; set; } + + public double? Consorcio { get; set; } + + public double? Impuesto { get; set; } + + public double? RecargoExterno { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? PorcentajeReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? PorcentajeComisionAgente { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? AsegasaRecargoExterno { get; set; } + + public double? AsegasaComisionConsorcio { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public string? IBAN { get; set; } + + public int? idPoliza { get; set; } + + public double? BaseComisionAgente { get; set; } + + public double? PorcentajeBaseComisionAgente { get; set; } + + public double? PorcentajeComisionPrevista { get; set; } + + public double? ComisionPrevista { get; set; } + + public int? idSituacion { get; set; } + + public DateOnly? FechaRecepcionCia { get; set; } + + public string? CodigoRecibo { get; set; } + + public int? idAsientoFacturacion { get; set; } + + public int? idAsientoDevueltoBanco { get; set; } + + public DateOnly? FechaAsientoDevueltoBanco { get; set; } + + /// + /// tabla compañia + /// + public int? idCompania { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public string? CausaBaja { get; set; } + + public string? Situacion { get; set; } + + public string? TipoRecibo { get; set; } + + public string? NumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Matricula { get; set; } + + public string? Coberturas { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public string? SubAgenteSuperior { get; set; } + + public string? Oficina { get; set; } + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public DateOnly? FechaLiquidacionAgente { get; set; } + + public string? CodigoCausaDevolucion { get; set; } + + public string? DescripcionTipoLiquidacion { get; set; } + + public string? CodigoTipoLiquidacion { get; set; } + + public int? idPagoLiquidacionCia { get; set; } + + public int? idLiquidacionCia { get; set; } + + public int? NumeroGeneracion { get; set; } +} diff --git a/bdAsegasa/db/vf_polagrextendidas.cs b/bdAsegasa/db/vf_polagrextendidas.cs new file mode 100644 index 0000000..7db7779 --- /dev/null +++ b/bdAsegasa/db/vf_polagrextendidas.cs @@ -0,0 +1,143 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_polagrextendidas +{ + public int idPolizaAgrario { get; set; } + + public string? referenciaHP { get; set; } + + public DateOnly? fechaPropuesta { get; set; } + + public string? poliza { get; set; } + + public DateOnly? fechaPoliza { get; set; } + + public int? idPlanLinea { get; set; } + + public string? PlanLineaDescripcion { get; set; } + + public string? PlanLinea { get; set; } + + public int? idColectivo { get; set; } + + public string? Colectivo { get; set; } + + public int? idAgente { get; set; } + + public string? Agente { get; set; } + + public string? CodigoAgente { get; set; } + + public int? idCia { get; set; } + + public string? Compania { get; set; } + + public int? idTomador { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public int? idAsegurado { get; set; } + + public string? Asegurado { get; set; } + + public string? CIFAsegurado { get; set; } + + public int? idDomicilioAsegurado { get; set; } + + public double? hectareas { get; set; } + + public int? animales { get; set; } + + public double? descuentoBonificacion { get; set; } + + public string? directorio { get; set; } + + public bool? fraccionada { get; set; } + + public float? porcentajeAplicado { get; set; } + + public double? primaComercial { get; set; } + + public double? bonificacionRecargo { get; set; } + + public double? primaComercialNeta { get; set; } + + public double? recargoFLCCS { get; set; } + + public double? recargoPrima { get; set; } + + public double? subvencionENESA { get; set; } + + public double? subvencionCCAA { get; set; } + + public double? aCargoTomador { get; set; } + + public double? segunAgroSeguro { get; set; } + + public double? diferencia { get; set; } + + public string? observaciones { get; set; } + + public double? gastoGestionInterna { get; set; } + + public double? comisionesIncentivoAgente { get; set; } + + public double? comisionesComisionAgente { get; set; } + + public double? comisionesIncentivoAsegasa { get; set; } + + public double? comisionesComisionAsegasa { get; set; } + + public double? comisionesNIFNuevo { get; set; } + + public double? comisionesTomadorPropio { get; set; } + + public double? totalComisiones { get; set; } + + public double? previstasIncentivoAgente { get; set; } + + public double? previstasComisionAgente { get; set; } + + public double? previstasIncentivoAsegasa { get; set; } + + public double? previstasComisionAsegasa { get; set; } + + public double? previstasNIFNuevo { get; set; } + + public double? previstasTomadorPropio { get; set; } + + public double? totalPrevistas { get; set; } + + public int? idSubagente { get; set; } + + public string? emailAsegurado { get; set; } + + public string? telefono1Asegurado { get; set; } + + public string? telefono2Asegurado { get; set; } + + public int? anoContable { get; set; } + + public int? trimestreContable { get; set; } + + public string? DireccionAsegurado { get; set; } + + public string? CodigoMunicipioAsegurado { get; set; } + + public string? CodigoPostalAsegurado { get; set; } + + public string? NombreMunicipioAsegurado { get; set; } + + public string? CodigoProvinciaAsegurado { get; set; } + + public string? NombreProvinciaAsegurado { get; set; } + + public string? Grupo { get; set; } +} diff --git a/bdAsegasa/db/vf_polizasextendidas.cs b/bdAsegasa/db/vf_polizasextendidas.cs new file mode 100644 index 0000000..7df4256 --- /dev/null +++ b/bdAsegasa/db/vf_polizasextendidas.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_polizasextendidas +{ + public int idPoliza { get; set; } + + public DateTime? FechaAlta { get; set; } + + public DateOnly? FechaEnvioCompania { get; set; } + + public string? NumeroPoliza { get; set; } + + public DateOnly? FechaReciboCompania { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + /// + /// tabla agentes + /// + public int idAgente { get; set; } + + public int? idSubAgente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoCobro { get; set; } + + public string? Matricula { get; set; } + + /// + /// Tabla Modelos + /// + public int? idModelo { get; set; } + + public int NumeroSuplemento { get; set; } + + /// + /// tabla usuarios, quien da de alta + /// + public int? idUsuario { get; set; } + + public DateOnly? FechaBaja { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idCausaBaja { get; set; } + + public DateOnly? FechaIncorporacionPropuesta { get; set; } + + public bool RechazoSuplemento { get; set; } + + /// + /// Numero de poliza del multitarificador + /// + public int? idMultitarificador { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Coberturas { get; set; } + + public string? Garantias { get; set; } + + public string? Observaciones { get; set; } + + public int? idTipoPago { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? NumeroDirectorio { get; set; } + + public string? IBAN { get; set; } + + public string? DescripcionSuplemento { get; set; } + + public int? idDuracion { get; set; } + + public int? idSituacion { get; set; } + + public int? idFicheroPresupuesto { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public int? idOrigenPresupuesto { get; set; } + + public string? ReferenciaAsegasa { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + public int? PlazoRetornoComision { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public DateOnly? FechaNacimientoTomador { get; set; } + + public string? EmailTomador { get; set; } + + public string? DireccionTomador { get; set; } + + public string? CodigoPostalTomador { get; set; } + + public string? PoblacionTomador { get; set; } + + public string? ProvinciaTomador { get; set; } + + public string? CuentaContableTomador { get; set; } + + public string? CausaBaja { get; set; } + + public string? TipoPago { get; set; } + + public string? Usuario { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public string Oficina { get; set; } = null!; + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public int DocumentosPendientesSubir { get; set; } + + public int DocumentosPendientesComprobar { get; set; } + + public DateTime? FechaDocumentosSuplementoRevisado { get; set; } +} diff --git a/bdAsegasa/db/vf_polizasextendidas_obsoleta.cs b/bdAsegasa/db/vf_polizasextendidas_obsoleta.cs new file mode 100644 index 0000000..6cd385a --- /dev/null +++ b/bdAsegasa/db/vf_polizasextendidas_obsoleta.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_polizasextendidas_obsoleta +{ + public int idPoliza { get; set; } + + public DateTime? FechaAlta { get; set; } + + public DateOnly? FechaEnvioCompania { get; set; } + + public string? NumeroPoliza { get; set; } + + public DateOnly? FechaReciboCompania { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + /// + /// tabla agentes + /// + public int idAgente { get; set; } + + public int? idSubAgente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoCobro { get; set; } + + public string? Matricula { get; set; } + + /// + /// Tabla Modelos + /// + public int? idModelo { get; set; } + + public int NumeroSuplemento { get; set; } + + /// + /// tabla usuarios, quien da de alta + /// + public int? idUsuario { get; set; } + + public DateOnly? FechaBaja { get; set; } + + /// + /// Tabla enumeraciones + /// + public int? idCausaBaja { get; set; } + + public DateOnly? FechaIncorporacionPropuesta { get; set; } + + public bool RechazoSuplemento { get; set; } + + /// + /// Numero de poliza del multitarificador + /// + public int? idMultitarificador { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Coberturas { get; set; } + + public string? Garantias { get; set; } + + public string? Observaciones { get; set; } + + public int? idTipoPago { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? NumeroDirectorio { get; set; } + + public string? IBAN { get; set; } + + public string? DescripcionSuplemento { get; set; } + + public int? idDuracion { get; set; } + + public int? idSituacion { get; set; } + + public int? idFicheroPresupuesto { get; set; } + + public DateTime? FechaAceptacionPresupuesto { get; set; } + + public int? idOrigenPresupuesto { get; set; } + + public string? ReferenciaAsegasa { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + public int? PlazoRetornoComision { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public DateOnly? FechaNacimientoTomador { get; set; } + + public string? EmailTomador { get; set; } + + public string? DireccionTomador { get; set; } + + public string? CodigoPostalTomador { get; set; } + + public string? PoblacionTomador { get; set; } + + public string? ProvinciaTomador { get; set; } + + public string? CuentaContableTomador { get; set; } + + public string? CausaBaja { get; set; } + + public string? TipoPago { get; set; } + + public string? Usuario { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public string Oficina { get; set; } = null!; + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public long? DocumentosPendientesSubir { get; set; } + + public long? DocumentosPendientesComprobar { get; set; } + + public DateTime? FechaDocumentosSuplementoRevisado { get; set; } +} diff --git a/bdAsegasa/db/vf_polizassg_estadisticas.cs b/bdAsegasa/db/vf_polizassg_estadisticas.cs new file mode 100644 index 0000000..613a9f4 --- /dev/null +++ b/bdAsegasa/db/vf_polizassg_estadisticas.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_polizassg_estadisticas +{ + public int idPoliza { get; set; } + + public string? NumeroPoliza { get; set; } + + public int NumeroSuplemento { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + /// + /// tabla ramos + /// + public int idRamo { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public string? CausaBaja { get; set; } + + public bool? CausaBajaOculta { get; set; } + + public string? TipoPago { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public string Oficina { get; set; } = null!; + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } +} diff --git a/bdAsegasa/db/vf_recibos_estadisticas.cs b/bdAsegasa/db/vf_recibos_estadisticas.cs new file mode 100644 index 0000000..509ac3a --- /dev/null +++ b/bdAsegasa/db/vf_recibos_estadisticas.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_recibos_estadisticas +{ + public int idRecibo { get; set; } + + public string? CodigoRecibo { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? ComisionPrevista { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public double? TotalReciboAnulado { get; set; } + + public double? ComisionReciboPrimaNetaAnulado { get; set; } + + public double? TotalComisionAnulado { get; set; } + + public double? ComisionAgenteAnulado { get; set; } + + public double? ComisionAsegasaPrimaNetaAnulado { get; set; } + + public double? ComisionPrevistaAnulado { get; set; } + + public double? AsegasaComisionTotalAnulado { get; set; } + + public int EsRecibo { get; set; } + + public int EsAnulacion { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + /// + /// tabla ramos + /// + public int? idRamo { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public string? CausaBaja { get; set; } + + public bool? CausaBajaOculta { get; set; } + + public string? TipoRecibo { get; set; } + + public string? TipoProduccion { get; set; } + + public string? NumeroPoliza { get; set; } + + public string? CiaNumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? CodigoAgente { get; set; } + + public int? idAgente { get; set; } + + public string? Agente { get; set; } + + public string? SubAgenteSuperior { get; set; } + + public string Oficina { get; set; } = null!; + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public string? CodigoCausaDevolucion { get; set; } +} diff --git a/bdAsegasa/db/vf_recibosextendidos.cs b/bdAsegasa/db/vf_recibosextendidos.cs new file mode 100644 index 0000000..68c7899 --- /dev/null +++ b/bdAsegasa/db/vf_recibosextendidos.cs @@ -0,0 +1,194 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_recibosextendidos +{ + public int idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + /// + /// tabla recibos + /// + public int? idReciboAsociado { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoPago { get; set; } + + /// + /// tabla remesa + /// + public int? idRemesa { get; set; } + + public int? idDuracion { get; set; } + + public int idTipo { get; set; } + + public DateOnly? FechaExpedicion { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public int? idCausaDevolucion { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idCausaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public DateOnly? FechaCartaRemesaCobroDirecto { get; set; } + + public DateOnly? FechaCartaDevuelto { get; set; } + + public DateOnly? FechaCartaImperativoLegal { get; set; } + + public DateOnly? FechaCartaAvisoAgente { get; set; } + + public DateOnly? FechaCartaEnvioRecibo { get; set; } + + public DateOnly? FechaImpresionTalon { get; set; } + + public DateOnly? FechaImpresionRecibo { get; set; } + + public string? Observaciones { get; set; } + + public double? PrimaNeta { get; set; } + + public double? BonificacionORecargo { get; set; } + + public double? Consorcio { get; set; } + + public double? Impuesto { get; set; } + + public double? RecargoExterno { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? PorcentajeReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? PorcentajeComisionAgente { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? AsegasaRecargoExterno { get; set; } + + public double? AsegasaComisionConsorcio { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public string? IBAN { get; set; } + + public int idPoliza { get; set; } + + public double? BaseComisionAgente { get; set; } + + public double? PorcentajeBaseComisionAgente { get; set; } + + public double? PorcentajeComisionPrevista { get; set; } + + public double? ComisionPrevista { get; set; } + + public int? idSituacion { get; set; } + + public DateOnly? FechaRecepcionCia { get; set; } + + public string? CodigoRecibo { get; set; } + + public int? idAsientoFacturacion { get; set; } + + public int? idAsientoDevueltoBanco { get; set; } + + public DateOnly? FechaAsientoDevueltoBanco { get; set; } + + /// + /// tabla compañia + /// + public int? idCompania { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + /// + /// tabla ramos + /// + public int? idRamo { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public string? CodigoPostalTomador { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public string? CuentaContableTomador { get; set; } + + public string? CausaBaja { get; set; } + + public string? Situacion { get; set; } + + public string? TipoRecibo { get; set; } + + public string? NumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Matricula { get; set; } + + public string? Coberturas { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public double? IRPFAgente { get; set; } + + public string? SubAgenteSuperior { get; set; } + + public string Oficina { get; set; } = null!; + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public DateOnly? FechaLiquidacionAgente { get; set; } + + public string? CodigoCausaDevolucion { get; set; } + + public DateOnly? FechaRemesa { get; set; } +} diff --git a/bdAsegasa/db/vf_recibosextendidos_dc.cs b/bdAsegasa/db/vf_recibosextendidos_dc.cs new file mode 100644 index 0000000..33772b4 --- /dev/null +++ b/bdAsegasa/db/vf_recibosextendidos_dc.cs @@ -0,0 +1,176 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_recibosextendidos_dc +{ + public int idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + /// + /// tabla recibos + /// + public int? idReciboAsociado { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoPago { get; set; } + + /// + /// tabla remesa + /// + public int? idRemesa { get; set; } + + public int? idDuracion { get; set; } + + public int idTipo { get; set; } + + public DateOnly? FechaExpedicion { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public int? idCausaDevolucion { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idCausaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public DateOnly? FechaCartaRemesaCobroDirecto { get; set; } + + public DateOnly? FechaCartaDevuelto { get; set; } + + public DateOnly? FechaCartaImperativoLegal { get; set; } + + public DateOnly? FechaCartaAvisoAgente { get; set; } + + public DateOnly? FechaCartaEnvioRecibo { get; set; } + + public DateOnly? FechaImpresionTalon { get; set; } + + public DateOnly? FechaImpresionRecibo { get; set; } + + public string? Observaciones { get; set; } + + public double? PrimaNeta { get; set; } + + public double? BonificacionORecargo { get; set; } + + public double? Consorcio { get; set; } + + public double? Impuesto { get; set; } + + public double? RecargoExterno { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? PorcentajeReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? PorcentajeComisionAgente { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? AsegasaRecargoExterno { get; set; } + + public double? AsegasaComisionConsorcio { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public string? IBAN { get; set; } + + public int idPoliza { get; set; } + + public double? BaseComisionAgente { get; set; } + + public double? PorcentajeBaseComisionAgente { get; set; } + + public double? PorcentajeComisionPrevista { get; set; } + + public double? ComisionPrevista { get; set; } + + public int? idSituacion { get; set; } + + public DateOnly? FechaRecepcionCia { get; set; } + + public string? CodigoRecibo { get; set; } + + public int? idAsientoFacturacion { get; set; } + + public int? idAsientoDevueltoBanco { get; set; } + + public DateOnly? FechaAsientoDevueltoBanco { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? PlazoRetornoComision { get; set; } + + public string? CausaBaja { get; set; } + + public string? Situacion { get; set; } + + public string? TipoRecibo { get; set; } + + public string? NumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Matricula { get; set; } + + public string? Coberturas { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public DateOnly? FechaLiquidacionCia { get; set; } + + public DateOnly? FechaDescobroCia { get; set; } + + public DateOnly? FechaRemesa { get; set; } +} diff --git a/bdAsegasa/db/vf_recibosextendidos_la.cs b/bdAsegasa/db/vf_recibosextendidos_la.cs new file mode 100644 index 0000000..b4202d0 --- /dev/null +++ b/bdAsegasa/db/vf_recibosextendidos_la.cs @@ -0,0 +1,176 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_recibosextendidos_la +{ + public int idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + /// + /// tabla recibos + /// + public int? idReciboAsociado { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoPago { get; set; } + + /// + /// tabla remesa + /// + public int? idRemesa { get; set; } + + public int? idDuracion { get; set; } + + public int idTipo { get; set; } + + public DateOnly? FechaExpedicion { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public int? idCausaDevolucion { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idCausaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public DateOnly? FechaCartaRemesaCobroDirecto { get; set; } + + public DateOnly? FechaCartaDevuelto { get; set; } + + public DateOnly? FechaCartaImperativoLegal { get; set; } + + public DateOnly? FechaCartaAvisoAgente { get; set; } + + public DateOnly? FechaCartaEnvioRecibo { get; set; } + + public DateOnly? FechaImpresionTalon { get; set; } + + public DateOnly? FechaImpresionRecibo { get; set; } + + public string? Observaciones { get; set; } + + public double? PrimaNeta { get; set; } + + public double? BonificacionORecargo { get; set; } + + public double? Consorcio { get; set; } + + public double? Impuesto { get; set; } + + public double? RecargoExterno { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? PorcentajeReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? PorcentajeComisionAgente { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? AsegasaRecargoExterno { get; set; } + + public double? AsegasaComisionConsorcio { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public string? IBAN { get; set; } + + public int idPoliza { get; set; } + + public double? BaseComisionAgente { get; set; } + + public double? PorcentajeBaseComisionAgente { get; set; } + + public double? PorcentajeComisionPrevista { get; set; } + + public double? ComisionPrevista { get; set; } + + public int? idSituacion { get; set; } + + public DateOnly? FechaRecepcionCia { get; set; } + + public string? CodigoRecibo { get; set; } + + public int? idAsientoFacturacion { get; set; } + + public int? idAsientoDevueltoBanco { get; set; } + + public DateOnly? FechaAsientoDevueltoBanco { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? PlazoRetornoComision { get; set; } + + public string? CausaBaja { get; set; } + + public string? Situacion { get; set; } + + public string? TipoRecibo { get; set; } + + public string? NumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Matricula { get; set; } + + public string? Coberturas { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public DateOnly? FechaLiquidacionCia { get; set; } + + public DateOnly? FechaDescobroCia { get; set; } + + public DateOnly? FechaRemesa { get; set; } +} diff --git a/bdAsegasa/db/vf_recibosextendidos_lc.cs b/bdAsegasa/db/vf_recibosextendidos_lc.cs new file mode 100644 index 0000000..8f51e89 --- /dev/null +++ b/bdAsegasa/db/vf_recibosextendidos_lc.cs @@ -0,0 +1,176 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_recibosextendidos_lc +{ + public int idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + /// + /// tabla recibos + /// + public int? idReciboAsociado { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoPago { get; set; } + + /// + /// tabla remesa + /// + public int? idRemesa { get; set; } + + public int? idDuracion { get; set; } + + public int idTipo { get; set; } + + public DateOnly? FechaExpedicion { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public int? idCausaDevolucion { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idCausaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public DateOnly? FechaCartaRemesaCobroDirecto { get; set; } + + public DateOnly? FechaCartaDevuelto { get; set; } + + public DateOnly? FechaCartaImperativoLegal { get; set; } + + public DateOnly? FechaCartaAvisoAgente { get; set; } + + public DateOnly? FechaCartaEnvioRecibo { get; set; } + + public DateOnly? FechaImpresionTalon { get; set; } + + public DateOnly? FechaImpresionRecibo { get; set; } + + public string? Observaciones { get; set; } + + public double? PrimaNeta { get; set; } + + public double? BonificacionORecargo { get; set; } + + public double? Consorcio { get; set; } + + public double? Impuesto { get; set; } + + public double? RecargoExterno { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? PorcentajeReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? PorcentajeComisionAgente { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? AsegasaRecargoExterno { get; set; } + + public double? AsegasaComisionConsorcio { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public string? IBAN { get; set; } + + public int idPoliza { get; set; } + + public double? BaseComisionAgente { get; set; } + + public double? PorcentajeBaseComisionAgente { get; set; } + + public double? PorcentajeComisionPrevista { get; set; } + + public double? ComisionPrevista { get; set; } + + public int? idSituacion { get; set; } + + public DateOnly? FechaRecepcionCia { get; set; } + + public string? CodigoRecibo { get; set; } + + public int? idAsientoFacturacion { get; set; } + + public int? idAsientoDevueltoBanco { get; set; } + + public DateOnly? FechaAsientoDevueltoBanco { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public int? PlazoRetornoComision { get; set; } + + public string? CausaBaja { get; set; } + + public string? Situacion { get; set; } + + public string? TipoRecibo { get; set; } + + public string? NumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Matricula { get; set; } + + public string? Coberturas { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public DateOnly? FechaLiquidacionCia { get; set; } + + public DateOnly? FechaDescobroCia { get; set; } + + public DateOnly? FechaRemesa { get; set; } +} diff --git a/bdAsegasa/db/vf_recibosextendidos_ti.cs b/bdAsegasa/db/vf_recibosextendidos_ti.cs new file mode 100644 index 0000000..511ea6d --- /dev/null +++ b/bdAsegasa/db/vf_recibosextendidos_ti.cs @@ -0,0 +1,178 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_recibosextendidos_ti +{ + public int idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + /// + /// tabla recibos + /// + public int? idReciboAsociado { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoPago { get; set; } + + /// + /// tabla remesa + /// + public int? idRemesa { get; set; } + + public int? idDuracion { get; set; } + + public int idTipo { get; set; } + + public DateOnly? FechaExpedicion { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public int? idCausaDevolucion { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idCausaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public DateOnly? FechaCartaRemesaCobroDirecto { get; set; } + + public DateOnly? FechaCartaDevuelto { get; set; } + + public DateOnly? FechaCartaImperativoLegal { get; set; } + + public DateOnly? FechaCartaAvisoAgente { get; set; } + + public DateOnly? FechaCartaEnvioRecibo { get; set; } + + public DateOnly? FechaImpresionTalon { get; set; } + + public DateOnly? FechaImpresionRecibo { get; set; } + + public string? Observaciones { get; set; } + + public double? PrimaNeta { get; set; } + + public double? BonificacionORecargo { get; set; } + + public double? Consorcio { get; set; } + + public double? Impuesto { get; set; } + + public double? RecargoExterno { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? PorcentajeReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? PorcentajeComisionAgente { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? AsegasaRecargoExterno { get; set; } + + public double? AsegasaComisionConsorcio { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public string? IBAN { get; set; } + + public int idPoliza { get; set; } + + public double? BaseComisionAgente { get; set; } + + public double? PorcentajeBaseComisionAgente { get; set; } + + public double? PorcentajeComisionPrevista { get; set; } + + public double? ComisionPrevista { get; set; } + + public int? idSituacion { get; set; } + + public DateOnly? FechaRecepcionCia { get; set; } + + public string? CodigoRecibo { get; set; } + + public int? idAsientoFacturacion { get; set; } + + public int? idAsientoDevueltoBanco { get; set; } + + public DateOnly? FechaAsientoDevueltoBanco { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public string? CausaBaja { get; set; } + + public string? Situacion { get; set; } + + public string? TipoRecibo { get; set; } + + public string? NumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Matricula { get; set; } + + public string? Coberturas { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public string? SubAgenteSuperior { get; set; } + + public string Oficina { get; set; } = null!; + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public DateOnly? FechaLiquidacionAgente { get; set; } + + public string? CodigoCausaDevolucion { get; set; } + + public DateOnly? FechaLiquidacionCia { get; set; } +} diff --git a/bdAsegasa/db/vf_recibospendientesdescobro_nue.cs b/bdAsegasa/db/vf_recibospendientesdescobro_nue.cs new file mode 100644 index 0000000..f90393a --- /dev/null +++ b/bdAsegasa/db/vf_recibospendientesdescobro_nue.cs @@ -0,0 +1,181 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_recibospendientesdescobro_nue +{ + public int? idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + /// + /// tabla recibos + /// + public int? idReciboAsociado { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoPago { get; set; } + + /// + /// tabla remesa + /// + public int? idRemesa { get; set; } + + public int? idDuracion { get; set; } + + public int? idTipo { get; set; } + + public DateOnly? FechaExpedicion { get; set; } + + public DateOnly? FechaEfecto { get; set; } + + public DateOnly? FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public int? idCausaDevolucion { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idCausaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public DateOnly? FechaCartaRemesaCobroDirecto { get; set; } + + public DateOnly? FechaCartaDevuelto { get; set; } + + public DateOnly? FechaCartaImperativoLegal { get; set; } + + public DateOnly? FechaCartaAvisoAgente { get; set; } + + public DateOnly? FechaCartaEnvioRecibo { get; set; } + + public DateOnly? FechaImpresionTalon { get; set; } + + public DateOnly? FechaImpresionRecibo { get; set; } + + public string? Observaciones { get; set; } + + public double? PrimaNeta { get; set; } + + public double? BonificacionORecargo { get; set; } + + public double? Consorcio { get; set; } + + public double? Impuesto { get; set; } + + public double? RecargoExterno { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? PorcentajeReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? PorcentajeComisionAgente { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? AsegasaRecargoExterno { get; set; } + + public double? AsegasaComisionConsorcio { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public string? IBAN { get; set; } + + public int? idPoliza { get; set; } + + public double? BaseComisionAgente { get; set; } + + public double? PorcentajeBaseComisionAgente { get; set; } + + public double? PorcentajeComisionPrevista { get; set; } + + public double? ComisionPrevista { get; set; } + + public int? idSituacion { get; set; } + + public DateOnly? FechaRecepcionCia { get; set; } + + public string? CodigoRecibo { get; set; } + + public int? idAsientoFacturacion { get; set; } + + public int? idAsientoDevueltoBanco { get; set; } + + public DateOnly? FechaAsientoDevueltoBanco { get; set; } + + /// + /// tabla compañia + /// + public int? idCompania { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public string? CausaBaja { get; set; } + + public string? Situacion { get; set; } + + public string? TipoRecibo { get; set; } + + public string? NumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Matricula { get; set; } + + public string? Coberturas { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public string? SubAgenteSuperior { get; set; } + + public string? Oficina { get; set; } + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public DateOnly? FechaLiquidacionAgente { get; set; } + + public string? CodigoCausaDevolucion { get; set; } +} diff --git a/bdAsegasa/db/vf_siniestros_eiac_extendidos.cs b/bdAsegasa/db/vf_siniestros_eiac_extendidos.cs new file mode 100644 index 0000000..3355f3f --- /dev/null +++ b/bdAsegasa/db/vf_siniestros_eiac_extendidos.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_siniestros_eiac_extendidos +{ + public int idSiniestroEIAC { get; set; } + + public int? idSiniestro { get; set; } + + public int? idPoliza { get; set; } + + public string NumeroPoliza { get; set; } = null!; + + public string? NumeroSuplemento { get; set; } + + public int? idFicheroCompania { get; set; } + + public string idSiniestroEntidad { get; set; } = null!; + + public DateTime FechaDeclaracion { get; set; } + + public DateTime FechaOcurrencia { get; set; } + + public int PosicionSiniestro { get; set; } + + public string DescripcionSiniestro { get; set; } = null!; + + public int TipologiaSiniestro { get; set; } + + public double? ImporteIndemnizacion { get; set; } + + public double? ImporteReserva { get; set; } + + public int? idLugarSiniestro { get; set; } + + public int idCompania { get; set; } + + public int? SituacionAsegasa { get; set; } + + public DateTime? FechaSituacion { get; set; } + + public int? idUsuarioSituacion { get; set; } + + public DateOnly? FechaEfecto { get; set; } + + public string? Tomador { get; set; } + + public string? Compania { get; set; } + + public string? Direccion { get; set; } +} diff --git a/bdAsegasa/db/vf_siniestros_estadisticas.cs b/bdAsegasa/db/vf_siniestros_estadisticas.cs new file mode 100644 index 0000000..d309859 --- /dev/null +++ b/bdAsegasa/db/vf_siniestros_estadisticas.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_siniestros_estadisticas +{ + public int idSiniestro { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idCulpa { get; set; } + + public string? Culpa { get; set; } + + public DateOnly? FechaAccidente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTramitacion { get; set; } + + public DateOnly? FechaCierre { get; set; } + + public bool PendienteDeCobro { get; set; } + + public double? CantidadPagarAsegasa { get; set; } + + public DateTime? FechaAlta { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + /// + /// tabla ramos + /// + public int? idRamo { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public string? Oficina { get; set; } + + public string? CodigoSubAgente { get; set; } + + public string? SubAgente { get; set; } + + public long? NumeroGestiones { get; set; } +} diff --git a/bdAsegasa/db/vf_siniestrosextendidos.cs b/bdAsegasa/db/vf_siniestrosextendidos.cs new file mode 100644 index 0000000..94fafb5 --- /dev/null +++ b/bdAsegasa/db/vf_siniestrosextendidos.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vf_siniestrosextendidos +{ + public int idSiniestro { get; set; } + + /// + /// tabla polizas + /// + public int idPoliza { get; set; } + + public string? ReferenciaCompania { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idCulpa { get; set; } + + public DateOnly? FechaAccidente { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTramitacion { get; set; } + + public DateOnly? FechaCierre { get; set; } + + public bool PendienteDeCobro { get; set; } + + public double? CantidadPagarAsegasa { get; set; } + + /// + /// tabla entidades + /// + public int? idEntidadContrario { get; set; } + + public string? DanosCliente { get; set; } + + public string? DanosContrario { get; set; } + + public int? idEntidadTaller { get; set; } + + public string? Observaciones { get; set; } + + /// + /// tabla usuarios + /// + public int? idUsuarioModificador { get; set; } + + public int? idUsuarioCreador { get; set; } + + public DateOnly? FechaModificacion { get; set; } + + public string? MatriculaContrario { get; set; } + + public string? ReferenciaAsegasaHP { get; set; } + + public string? DescripcionSiniestro { get; set; } + + public string? NumeroPolizaContrario { get; set; } + + public string? CiaContrario { get; set; } + + public string? BienContrario { get; set; } + + public DateTime? FechaAlta { get; set; } + + public string? BienesAsegurados { get; set; } + + public DateOnly? FechaProximoRecordatorio { get; set; } + + public string? Compania { get; set; } + + public string? Ramo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public string? CausaBaja { get; set; } + + public string? NumeroPoliza { get; set; } + + public int? NumeroSuplemento { get; set; } + + public string? BienesAseguradosPoliza { get; set; } + + public string? Matricula { get; set; } + + public string? Agente { get; set; } + + public string? SubAgente { get; set; } + + /// + /// tabla agentes + /// + public int? idAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public DateTime? FechaAltaPoliza { get; set; } + + public string? NombreUsuario { get; set; } + + public long? NumeroGestiones { get; set; } +} diff --git a/bdAsegasa/db/vp_liquidacionesagentesrecibos.cs b/bdAsegasa/db/vp_liquidacionesagentesrecibos.cs new file mode 100644 index 0000000..ab6c8a2 --- /dev/null +++ b/bdAsegasa/db/vp_liquidacionesagentesrecibos.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vp_liquidacionesagentesrecibos +{ + public int idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public double? TotalRecibo { get; set; } + + public string? CodigoRecibo { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? NumeroPoliza { get; set; } + + public string? Matricula { get; set; } + + public DateOnly FechaLiquidacionAgente { get; set; } +} diff --git a/bdAsegasa/db/vp_liquidacionescompaniasrecibos.cs b/bdAsegasa/db/vp_liquidacionescompaniasrecibos.cs new file mode 100644 index 0000000..e35cf6a --- /dev/null +++ b/bdAsegasa/db/vp_liquidacionescompaniasrecibos.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vp_liquidacionescompaniasrecibos +{ + public int idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public double? TotalRecibo { get; set; } + + public string? CodigoRecibo { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? NumeroPoliza { get; set; } + + public string? Matricula { get; set; } + + public DateOnly FechaLiquidacionCia { get; set; } +} diff --git a/bdAsegasa/db/vp_liquidacionescompaniasrecibos_devueltos.cs b/bdAsegasa/db/vp_liquidacionescompaniasrecibos_devueltos.cs new file mode 100644 index 0000000..4ba6fbc --- /dev/null +++ b/bdAsegasa/db/vp_liquidacionescompaniasrecibos_devueltos.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vp_liquidacionescompaniasrecibos_devueltos +{ + public int idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public double? TotalRecibo { get; set; } + + public string? CodigoRecibo { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? NumeroPoliza { get; set; } + + public string? Matricula { get; set; } + + public DateOnly FechaLiquidacionDevueltoCia { get; set; } +} diff --git a/bdAsegasa/db/vp_recibosextendidos.cs b/bdAsegasa/db/vp_recibosextendidos.cs new file mode 100644 index 0000000..5c21b10 --- /dev/null +++ b/bdAsegasa/db/vp_recibosextendidos.cs @@ -0,0 +1,191 @@ +using System; +using System.Collections.Generic; +using PropertyChanged; + +namespace bdAsegasa.db; + +[AddINotifyPropertyChangedInterface] +public partial class vp_recibosextendidos +{ + public int idRecibo { get; set; } + + public string? NumeroRecibo { get; set; } + + public int? idAgente { get; set; } + + public int? idSubagente { get; set; } + + /// + /// tabla recibos + /// + public int? idReciboAsociado { get; set; } + + /// + /// tabla enumeraciones + /// + public int? idTipoPago { get; set; } + + /// + /// tabla remesa + /// + public int? idRemesa { get; set; } + + public int? idDuracion { get; set; } + + public int idTipo { get; set; } + + public DateOnly? FechaExpedicion { get; set; } + + public DateOnly FechaEfecto { get; set; } + + public DateOnly FechaVencimiento { get; set; } + + public DateOnly? FechaPago { get; set; } + + public DateOnly? FechaDevolucionBanco { get; set; } + + public int? idCausaDevolucion { get; set; } + + public DateOnly? FechaBaja { get; set; } + + public int? idCausaBaja { get; set; } + + public DateOnly? FechaFacturacion { get; set; } + + public DateOnly? FechaCartaRemesaCobroDirecto { get; set; } + + public DateOnly? FechaCartaDevuelto { get; set; } + + public DateOnly? FechaCartaImperativoLegal { get; set; } + + public DateOnly? FechaCartaAvisoAgente { get; set; } + + public DateOnly? FechaCartaEnvioRecibo { get; set; } + + public DateOnly? FechaImpresionTalon { get; set; } + + public DateOnly? FechaImpresionRecibo { get; set; } + + public string? Observaciones { get; set; } + + public double? PrimaNeta { get; set; } + + public double? BonificacionORecargo { get; set; } + + public double? Consorcio { get; set; } + + public double? Impuesto { get; set; } + + public double? RecargoExterno { get; set; } + + public double? TotalRecibo { get; set; } + + public double? ComisionReciboPrimaNeta { get; set; } + + public double? PorcentajeReciboPrimaNeta { get; set; } + + public double? TotalComision { get; set; } + + public double? PorcentajeComisionAgente { get; set; } + + public double? ComisionAgente { get; set; } + + public double? ComisionAsegasaPrimaNeta { get; set; } + + public double? AsegasaRecargoExterno { get; set; } + + public double? AsegasaComisionConsorcio { get; set; } + + public double? AsegasaComisionTotal { get; set; } + + public string? IBAN { get; set; } + + public int idPoliza { get; set; } + + public double? BaseComisionAgente { get; set; } + + public double? PorcentajeBaseComisionAgente { get; set; } + + public double? PorcentajeComisionPrevista { get; set; } + + public double? ComisionPrevista { get; set; } + + public int? idSituacion { get; set; } + + public DateOnly? FechaRecepcionCia { get; set; } + + public string? CodigoRecibo { get; set; } + + public int? idAsientoFacturacion { get; set; } + + public int? idAsientoDevueltoBanco { get; set; } + + public DateOnly? FechaAsientoDevueltoBanco { get; set; } + + public double? Sobrecomision { get; set; } + + /// + /// tabla compañia + /// + public int idCompania { get; set; } + + public string? Compania { get; set; } + + public string? CodigoCia { get; set; } + + public string? Ramo { get; set; } + + public string? FamiliaRamo { get; set; } + + public string? Tomador { get; set; } + + public string? CIFTomador { get; set; } + + public string? Telefono1Tomador { get; set; } + + public string? Telefono2Tomador { get; set; } + + public string? EmailTomador { get; set; } + + public DateOnly? FechaMandato { get; set; } + + public string? CuentaContableTomador { get; set; } + + public string? ObservacionesPoliza { get; set; } + + public string? CausaBaja { get; set; } + + public string? Situacion { get; set; } + + public string? TipoRecibo { get; set; } + + public string? TipoPago { get; set; } + + public string? NumeroPoliza { get; set; } + + public int NumeroSuplemento { get; set; } + + public string? BienesAsegurados { get; set; } + + public string? Matricula { get; set; } + + public string? Coberturas { get; set; } + + public string? CodigoAgente { get; set; } + + public string? Agente { get; set; } + + public double? IRPFAgente { get; set; } + + public string? SubAgenteSuperior { get; set; } + + public string Oficina { get; set; } = null!; + + public string? SubAgente { get; set; } + + public string? CodigoSubAgente { get; set; } + + public string? CodigoCausaDevolucion { get; set; } + + public DateOnly? FechaRemesa { get; set; } +} diff --git a/bdAsegasa/dbcontext/conexion.cs b/bdAsegasa/dbcontext/conexion.cs new file mode 100644 index 0000000..a7f575e --- /dev/null +++ b/bdAsegasa/dbcontext/conexion.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using static System.Runtime.InteropServices.JavaScript.JSType; +using tsUtilidades.Enumeraciones; +using System.Drawing.Imaging; + +namespace bdtsFactu.dbcontext +{ + public class Conexion + { + public string Nombre { get; set; } + public string Servidor { get; set; } + public int Puerto { get; set; } + + public string Database { get; set; } + public string Usuario { get; set; } + public string Contraseña { get; set; } + + + public static List ListaConexiones() + { + List lc = new List(); + lc.Add(new Conexion() { Nombre = "Producción", Servidor = "192.168.61.201", Puerto = 30002, Usuario = "asegasa", Contraseña = "tk-8Vb/#%+2ÄM", Database = "gestionasegasa" }); + lc.Add(new Conexion() { Nombre = "Producción Remoto", Servidor = "sevilla.asegasa.com", Puerto = 30002, Usuario = "asegasa", Contraseña = "tk-8Vb/#%+2ÄM", Database = "gestionasegasa" }); + return lc; + } + + internal static string ObtieneConexionDefecto(string NombreConexion="Producción") + { + try + { + // optionsBuilder.UseMySql("server=tsFactu;database=tsFactu;port=13306;uid=m3soft;pwd=Romian2023--;persistsecurityinfo=True;TreatTinyAsBoolean=True;allowuservariables=True", Microsoft.EntityFrameworkCore.ServerVersion.Parse("8.2.0-mysql")); + string cs = ""; + var lc = ListaConexiones(); + + var cn = lc.First(x => x.Nombre == NombreConexion); + + string servidor = ""; + if (Environment.MachineName.ToUpper() == "VISDIG1") + servidor = "localhost"; + else + { + servidor = cn.Servidor; + } + cs = "server=" + servidor + ";pwd=" + tsUtilidades.crypt.FEncS(cn.Contraseña, @"[JO1]", @"[JD1]", -875421649) + ";port=" + cn.Puerto.ToString() + ";uid=" + cn.Usuario + ";database=" + cn.Database + cs; + return cs; + } + // End If + catch (Exception ex) + { + throw new Exception(ex.Message, ex); + } + } + } + +} diff --git a/bdAsegasa/dbcontext/gestionasegasaContext.cs b/bdAsegasa/dbcontext/gestionasegasaContext.cs new file mode 100644 index 0000000..762bb4f --- /dev/null +++ b/bdAsegasa/dbcontext/gestionasegasaContext.cs @@ -0,0 +1,6610 @@ +using System; +using System.Collections.Generic; +using Microsoft.EntityFrameworkCore; +using bdAsegasa.db; + +namespace bdAsegasa.dbcontext; + +public partial class gestionasegasaContext : DbContext +{ + public gestionasegasaContext(DbContextOptions options) + : base(options) + { + } + + public virtual DbSet accionessiniestros_eiac { get; set; } + + public virtual DbSet actassiniestrosagrario { get; set; } + + public virtual DbSet actualizacioneshp { get; set; } + + public virtual DbSet actualizacionessiniestros_eiac { get; set; } + + public virtual DbSet agentes { get; set; } + + public virtual DbSet agentes_subagentes { get; set; } + + public virtual DbSet amortizacionrecibos { get; set; } + + public virtual DbSet aplicacionesasientos { get; set; } + + public virtual DbSet apuntes { get; set; } + + public virtual DbSet apuntesmodelo { get; set; } + + public virtual DbSet asientos { get; set; } + + public virtual DbSet asientosmodelos { get; set; } + + public virtual DbSet autorizacionesgrupos { get; set; } + + public virtual DbSet autorizacionesusuarios { get; set; } + + public virtual DbSet avant2__agentes { get; set; } + + public virtual DbSet avant2__sso { get; set; } + + public virtual DbSet avant2__suborganizaciones { get; set; } + + public virtual DbSet axa__tractores_temp1 { get; set; } + + public virtual DbSet axa__tractores_temp2 { get; set; } + + public virtual DbSet axa__tractores_temp3 { get; set; } + + public virtual DbSet axa__tractores_temp4 { get; set; } + + public virtual DbSet bancos { get; set; } + + public virtual DbSet bloqueos { get; set; } + + public virtual DbSet cajas { get; set; } + + public virtual DbSet caser__autologin { get; set; } + + public virtual DbSet caser__autologin__agentes { get; set; } + + public virtual DbSet caser__marcas { get; set; } + + public virtual DbSet caser__modelos { get; set; } + + public virtual DbSet caser__tipos_combustible { get; set; } + + public virtual DbSet caser__tipos_vehiculos { get; set; } + + public virtual DbSet caser__versiones { get; set; } + + public virtual DbSet celdasinformescontables { get; set; } + + public virtual DbSet certificados { get; set; } + + public virtual DbSet codigospostales { get; set; } + + public virtual DbSet colectivos { get; set; } + + public virtual DbSet comarcas { get; set; } + + public virtual DbSet comisionesagentes { get; set; } + + public virtual DbSet comisionescompanias { get; set; } + + public virtual DbSet comisionlineacompania { get; set; } + + public virtual DbSet companias { get; set; } + + public virtual DbSet conceptosapuntes { get; set; } + + public virtual DbSet conciliacionesbancarias { get; set; } + + public virtual DbSet conexiones { get; set; } + + public virtual DbSet conexionesbd { get; set; } + + public virtual DbSet correos { get; set; } + + public virtual DbSet cuentas { get; set; } + + public virtual DbSet cuentasceldasinformescontables { get; set; } + + public virtual DbSet cuentascorreo { get; set; } + + public virtual DbSet departamentos { get; set; } + + public virtual DbSet departamentoscontactocompanias { get; set; } + + public virtual DbSet departamentosmiembros { get; set; } + + public virtual DbSet destinos { get; set; } + + public virtual DbSet detallesamortizacionrecibos { get; set; } + + public virtual DbSet direcciones { get; set; } + + public virtual DbSet documentosasolicitar { get; set; } + + public virtual DbSet documentospolizasagrario { get; set; } + + public virtual DbSet documentospolizassg { get; set; } + + public virtual DbSet documentossiniestros { get; set; } + + public virtual DbSet documentosvarios { get; set; } + + public virtual DbSet ejercicioscontables { get; set; } + + public virtual DbSet empresascontables { get; set; } + + public virtual DbSet entidades { get; set; } + + public virtual DbSet entidades_tokens { get; set; } + + public virtual DbSet entidadespolizas { get; set; } + + public virtual DbSet entidadesrelacionadas { get; set; } + + public virtual DbSet enumeraciones { get; set; } + + public virtual DbSet epiban { get; set; } + + public virtual DbSet estadossiniestros_eiac { get; set; } + + public virtual DbSet excepcionesciasramos { get; set; } + + public virtual DbSet expedientesagentes { get; set; } + + public virtual DbSet expedientespolizas { get; set; } + + public virtual DbSet expedientesrecibos { get; set; } + + public virtual DbSet expedientessiniestros_eiac { get; set; } + + public virtual DbSet extractosbancarios { get; set; } + + public virtual DbSet ficheros { get; set; } + + public virtual DbSet ficherosadjuntos { get; set; } + + public virtual DbSet ficheroscompanias { get; set; } + + public virtual DbSet ficherosconfiguracion { get; set; } + + public virtual DbSet gestionespolizasagrario { get; set; } + + public virtual DbSet gestionespolizassg { get; set; } + + public virtual DbSet gestionesrecibos { get; set; } + + public virtual DbSet gestionessiniestros { get; set; } + + public virtual DbSet gestionesvarias { get; set; } + + public virtual DbSet grupobd { get; set; } + + public virtual DbSet gruposenumeraciones { get; set; } + + public virtual DbSet gruposmenus { get; set; } + + public virtual DbSet gruposusuarios { get; set; } + + public virtual DbSet historicocomisiones { get; set; } + + public virtual DbSet incentivos { get; set; } + + public virtual DbSet informescontables { get; set; } + + public virtual DbSet liquidacionesagenterecibos { get; set; } + + public virtual DbSet liquidacionesagentes { get; set; } + + public virtual DbSet liquidacionescompanias { get; set; } + + public virtual DbSet liquidacionescompaniasrecibos { get; set; } + + public virtual DbSet liquidacionesviajes { get; set; } + + public virtual DbSet logs { get; set; } + + public virtual DbSet mensajes { get; set; } + + public virtual DbSet menus { get; set; } + + public virtual DbSet modificacionespolizasagrario { get; set; } + + public virtual DbSet movimientosbancarios { get; set; } + + public virtual DbSet municipios { get; set; } + + public virtual DbSet notificaciones { get; set; } + + public virtual DbSet pagosliquidacionescias { get; set; } + + public virtual DbSet pagossiniestros_eiac { get; set; } + + public virtual DbSet pagostelematicos { get; set; } + + public virtual DbSet permisos { get; set; } + + public virtual DbSet personasdecontactoagentes { get; set; } + + public virtual DbSet personasdecontactocompanias { get; set; } + + public virtual DbSet personasdecontactoentidades { get; set; } + + public virtual DbSet peticionescontrasena { get; set; } + + public virtual DbSet peticionesverifactu { get; set; } + + public virtual DbSet planeslineas { get; set; } + + public virtual DbSet plantillas { get; set; } + + public virtual DbSet polizas_avant2 { get; set; } + + public virtual DbSet polizas_avant2_agente3 { get; set; } + + public virtual DbSet polizas_avant2_ramos { get; set; } + + public virtual DbSet polizasagrario { get; set; } + + public virtual DbSet polizassg { get; set; } + + public virtual DbSet procesos { get; set; } + + public virtual DbSet provincias { get; set; } + + public virtual DbSet ramos { get; set; } + + public virtual DbSet ramosdgs { get; set; } + + public virtual DbSet ramosdgscompania { get; set; } + + public virtual DbSet recibos { get; set; } + + public virtual DbSet registrosactualizados { get; set; } + + public virtual DbSet registrosverifactu { get; set; } + + public virtual DbSet regularizacion { get; set; } + + public virtual DbSet regularizacionespagosagentes { get; set; } + + public virtual DbSet remesas { get; set; } + + public virtual DbSet seriesfacturas { get; set; } + + public virtual DbSet sesiones { get; set; } + + public virtual DbSet siniestros { get; set; } + + public virtual DbSet siniestros_eiac { get; set; } + + public virtual DbSet subagentes { get; set; } + + public virtual DbSet tiposgestionsiniestros { get; set; } + + public virtual DbSet usuarios { get; set; } + + public virtual DbSet v_act_apuntes { get; set; } + + public virtual DbSet v_act_entidades { get; set; } + + public virtual DbSet v_act_polizassg { get; set; } + + public virtual DbSet v_act_recibos { get; set; } + + public virtual DbSet v_apuntesagrupados { get; set; } + + public virtual DbSet v_apuntesextendidos { get; set; } + + public virtual DbSet v_codigosrecibos { get; set; } + + public virtual DbSet v_descobro_cia { get; set; } + + public virtual DbSet v_devolucion_cia { get; set; } + + public virtual DbSet v_documentos_pendientes_comprobacion { get; set; } + + public virtual DbSet v_documentos_pendientes_subir { get; set; } + + public virtual DbSet v_documentospendientes { get; set; } + + public virtual DbSet v_lc_agrupadas_cia { get; set; } + + public virtual DbSet v_liquidacion_agente { get; set; } + + public virtual DbSet v_liquidacion_cia { get; set; } + + public virtual DbSet v_liquidacion_cia_devuelto { get; set; } + + public virtual DbSet v_liquidacionescompaniasrecibostipo { get; set; } + + public virtual DbSet v_numero_gestiones_siniestros { get; set; } + + public virtual DbSet v_recibos_liquidacionagentes { get; set; } + + public virtual DbSet v_recibospendientesdescobro_1 { get; set; } + + public virtual DbSet v_recibospendientesdescobro_2 { get; set; } + + public virtual DbSet v_registrostablas { get; set; } + + public virtual DbSet v_tomadores { get; set; } + + public virtual DbSet v_ultima_liquidacion_agente { get; set; } + + public virtual DbSet v_ultima_liquidacion_cia { get; set; } + + public virtual DbSet vf_cuentas { get; set; } + + public virtual DbSet vf_documentospolizassgextendidas { get; set; } + + public virtual DbSet vf_ficherosreducidos { get; set; } + + public virtual DbSet vf_historicocomisiones { get; set; } + + public virtual DbSet vf_liquidacionesagentes_estadisticas { get; set; } + + public virtual DbSet vf_liquidacionesagentesagrarios_estadisticas { get; set; } + + public virtual DbSet vf_liquidacionesagentesverifactu { get; set; } + + public virtual DbSet vf_liquidacionesciasextendidas { get; set; } + + public virtual DbSet vf_liquidacionesrecibosextendidas { get; set; } + + public virtual DbSet vf_polagrextendidas { get; set; } + + public virtual DbSet vf_polizasextendidas { get; set; } + + public virtual DbSet vf_polizasextendidas_obsoleta { get; set; } + + public virtual DbSet vf_polizassg_estadisticas { get; set; } + + public virtual DbSet vf_recibos_estadisticas { get; set; } + + public virtual DbSet vf_recibosextendidos { get; set; } + + public virtual DbSet vf_recibosextendidos_dc { get; set; } + + public virtual DbSet vf_recibosextendidos_la { get; set; } + + public virtual DbSet vf_recibosextendidos_lc { get; set; } + + public virtual DbSet vf_recibosextendidos_ti { get; set; } + + public virtual DbSet vf_recibospendientesdescobro_nue { get; set; } + + public virtual DbSet vf_siniestros_eiac_extendidos { get; set; } + + public virtual DbSet vf_siniestros_estadisticas { get; set; } + + public virtual DbSet vf_siniestrosextendidos { get; set; } + + public virtual DbSet vp_liquidacionesagentesrecibos { get; set; } + + public virtual DbSet vp_liquidacionescompaniasrecibos { get; set; } + + public virtual DbSet vp_liquidacionescompaniasrecibos_devueltos { get; set; } + + public virtual DbSet vp_recibosextendidos { get; set; } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + modelBuilder + .UseCollation("utf8_general_ci") + .HasCharSet("utf8"); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idAccion).HasName("PRIMARY"); + + entity.HasIndex(e => e.idSiniestroEIAC, "FK_accionessiniestroseiac_siniestroseiac_idx"); + + entity.HasIndex(e => new { e.idSiniestroEIAC, e.NumeroOrden }, "UQ_idSiniestro_NumeroOrden").IsUnique(); + + entity.Property(e => e.idAccion).HasColumnType("int(11)"); + entity.Property(e => e.AccionSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.DescripcionAccion).HasMaxLength(255); + entity.Property(e => e.FechaAccion).HasColumnType("datetime"); + entity.Property(e => e.NumeroOrden).HasColumnType("int(11)"); + entity.Property(e => e.SituacionAccion).HasColumnType("int(11)"); + entity.Property(e => e.idSiniestroEIAC).HasColumnType("int(11)"); + + entity.HasOne(d => d.idSiniestroEIACNavigation).WithMany(p => p.accionessiniestros_eiac) + .HasForeignKey(d => d.idSiniestroEIAC) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("FK_accionessiniestroseiac_siniestroseiac"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idActa).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.idCausaSiniestro, "actassiniestrosagrario_enumeraciones_idx"); + + entity.HasIndex(e => e.idPolizaAgrario, "actassiniestrosagrario_polizasagrario_idx"); + + entity.Property(e => e.idActa).HasColumnType("int(11)"); + entity.Property(e => e.NumeroActa).HasMaxLength(30); + entity.Property(e => e.NumeroSiniestro).HasMaxLength(30); + entity.Property(e => e.NumeroSiniestroAgroseguro).HasMaxLength(30); + entity.Property(e => e.idCausaSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.idPolizaAgrario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCausaSiniestroNavigation).WithMany(p => p.actassiniestrosagrario) + .HasForeignKey(d => d.idCausaSiniestro) + .HasConstraintName("actassiniestrosagrario_enumeraciones"); + + entity.HasOne(d => d.idPolizaAgrarioNavigation).WithMany(p => p.actassiniestrosagrario) + .HasForeignKey(d => d.idPolizaAgrario) + .HasConstraintName("actassiniestrosagrario_polizasagrario"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idActualizacionHP).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.Aplicacion, e.idAplicacion }, "Aplicacion_id").IsUnique(); + + entity.HasIndex(e => e.FechaUltimaActualizacion, "FechaUltimaActualizacion"); + + entity.Property(e => e.idActualizacionHP).HasColumnType("int(11)"); + entity.Property(e => e.Aplicacion).HasMaxLength(20); + entity.Property(e => e.ExpresionBusqueda).HasMaxLength(100); + entity.Property(e => e.FechaUltimaActualizacion).HasColumnType("datetime"); + entity.Property(e => e.FechaUltimaComprobacion).HasColumnType("datetime"); + entity.Property(e => e.idAplicacion).HasMaxLength(45); + entity.Property(e => e.sha1).HasMaxLength(40); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idActualizacion).HasName("PRIMARY"); + + entity.HasIndex(e => e.idUsuarioVisto, "fk_actualizacionessiniestors_usuarios_idx"); + + entity.HasIndex(e => e.idFicheroCompania, "fk_actualizacionessiniestros_ficheroscompania_idx"); + + entity.HasIndex(e => e.idSiniestroEIAC, "fk_actualizacionessiniestroseiac_siniestroseiac_idx"); + + entity.Property(e => e.idActualizacion).HasColumnType("int(11)"); + entity.Property(e => e.Fecha).HasColumnType("datetime"); + entity.Property(e => e.FechaVisto).HasColumnType("datetime"); + entity.Property(e => e.idFicheroCompania).HasColumnType("int(11)"); + entity.Property(e => e.idSiniestroEIAC).HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioVisto).HasColumnType("int(11)"); + + entity.HasOne(d => d.idFicheroCompaniaNavigation).WithMany(p => p.actualizacionessiniestros_eiac) + .HasForeignKey(d => d.idFicheroCompania) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("fk_actualizacionessiniestros_ficheroscompania"); + + entity.HasOne(d => d.idSiniestroEIACNavigation).WithMany(p => p.actualizacionessiniestros_eiac) + .HasForeignKey(d => d.idSiniestroEIAC) + .HasConstraintName("fk_actualizacionessiniestroseiac_siniestroseiac"); + + entity.HasOne(d => d.idUsuarioVistoNavigation).WithMany(p => p.actualizacionessiniestros_eiac) + .HasForeignKey(d => d.idUsuarioVisto) + .HasConstraintName("fk_actualizacionessiniestors_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idAgente).HasName("PRIMARY"); + + entity.HasIndex(e => e.idFormaPago, "agentes_02formadepago_idx"); + + entity.HasIndex(e => e.idRuta, "agentes_04rutas_idx"); + + entity.HasIndex(e => e.idDireccion, "agentes_direcciones_idx"); + + entity.HasIndex(e => e.idInspector, "agentes_inspector_idx"); + + entity.HasIndex(e => e.idSuborganizacion, "fk_agentes_idSuborganizacion"); + + entity.Property(e => e.idAgente).HasColumnType("int(10)"); + entity.Property(e => e.CIF).HasMaxLength(10); + entity.Property(e => e.Clave).HasMaxLength(20); + entity.Property(e => e.Codigo).HasMaxLength(20); + entity.Property(e => e.CuentaContableC).HasMaxLength(45); + entity.Property(e => e.CuentaContableR).HasMaxLength(45); + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.Fax).HasMaxLength(20); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.MapeoAllianz).HasMaxLength(45); + entity.Property(e => e.MapeoCaser).HasMaxLength(45); + entity.Property(e => e.MapeoPelayo).HasMaxLength(45); + entity.Property(e => e.Nombre).HasMaxLength(100); + entity.Property(e => e.NumeroColegiado).HasMaxLength(20); + entity.Property(e => e.Observaciones).HasMaxLength(200); + entity.Property(e => e.Telefono1).HasMaxLength(20); + entity.Property(e => e.Telefono2).HasMaxLength(20); + entity.Property(e => e.codigoUsuarioAvant2).HasMaxLength(64); + entity.Property(e => e.contrasenaAvant2).HasMaxLength(64); + entity.Property(e => e.hashContrasena).HasMaxLength(40); + entity.Property(e => e.idDireccion) + .HasComment("tabla direcciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idFormaPago) + .HasComment("enumeraciones Formas de pago") + .HasColumnType("int(11)"); + entity.Property(e => e.idInspector) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idRuta) + .HasComment("enumeraciones rutas") + .HasColumnType("int(11)"); + entity.Property(e => e.idSuborganizacion).HasColumnType("int(11) unsigned"); + + entity.HasOne(d => d.idDireccionNavigation).WithMany(p => p.agentes) + .HasForeignKey(d => d.idDireccion) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("agentes_direcciones"); + + entity.HasOne(d => d.idFormaPagoNavigation).WithMany(p => p.agentesidFormaPagoNavigation) + .HasForeignKey(d => d.idFormaPago) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("agentes_02formadepago"); + + entity.HasOne(d => d.idInspectorNavigation).WithMany(p => p.agentes) + .HasForeignKey(d => d.idInspector) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("agentes_inspector"); + + entity.HasOne(d => d.idRutaNavigation).WithMany(p => p.agentesidRutaNavigation) + .HasForeignKey(d => d.idRuta) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("agentes_04rutas"); + + entity.HasOne(d => d.idSuborganizacionNavigation).WithMany(p => p.agentes) + .HasForeignKey(d => d.idSuborganizacion) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("fk_agentes_idSuborganizacion"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("agentes_subagentes"); + + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.agente).HasMaxLength(20); + entity.Property(e => e.clave).HasMaxLength(45); + entity.Property(e => e.codigoUsuarioAvant2).HasMaxLength(64); + entity.Property(e => e.contrasenaAvant2).HasMaxLength(64); + entity.Property(e => e.id).HasMaxLength(25); + entity.Property(e => e.idSuborganizacion).HasColumnType("int(11) unsigned"); + entity.Property(e => e.nombre).HasMaxLength(303); + entity.Property(e => e.subagente).HasMaxLength(4); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idAmortizacion).HasName("PRIMARY"); + + entity.HasIndex(e => e.idMotivoBaja, "amortizacionesrecibos_01_enumeraciones_idx"); + + entity.HasIndex(e => e.idEmpresa, "amortizacionesrecibos_02_enumeraciones_idx"); + + entity.HasIndex(e => e.FechaAlta, "amortizacionesrecibos_fechaalta"); + + entity.HasIndex(e => e.idRecibo, "amortizacionrecibos_recibos_idx"); + + entity.Property(e => e.idAmortizacion).HasColumnType("int(11)"); + entity.Property(e => e.NumeroCuenta) + .HasMaxLength(10) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Observaciones) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idEmpresa).HasColumnType("int(11)"); + entity.Property(e => e.idMotivoBaja).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idEmpresaNavigation).WithMany(p => p.amortizacionrecibosidEmpresaNavigation) + .HasForeignKey(d => d.idEmpresa) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("amortizacionesrecibos_02_enumeraciones"); + + entity.HasOne(d => d.idMotivoBajaNavigation).WithMany(p => p.amortizacionrecibosidMotivoBajaNavigation) + .HasForeignKey(d => d.idMotivoBaja) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("amortizacionesrecibos_01_enumeraciones_motivobaja"); + + entity.HasOne(d => d.idReciboNavigation).WithMany(p => p.amortizacionrecibos) + .HasForeignKey(d => d.idRecibo) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("amortizacionesrecibos_recibos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idAplicacionAsiento).HasName("PRIMARY"); + + entity.HasIndex(e => e.idAsiento, "asientos_idx"); + + entity.HasIndex(e => e.idAplicacionAsiento, "idAplicacionAsiento_UNIQUE").IsUnique(); + + entity.HasIndex(e => new { e.Tipo, e.idAplicacion }, "idAplicacion_Tipo"); + + entity.Property(e => e.idAplicacionAsiento).HasColumnType("int(11)"); + entity.Property(e => e.Tipo).HasColumnType("int(11)"); + entity.Property(e => e.idAplicacion).HasColumnType("int(11)"); + entity.Property(e => e.idAsiento).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAsientoNavigation).WithMany(p => p.aplicacionesasientos) + .HasForeignKey(d => d.idAsiento) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("asientos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idApunte).HasName("PRIMARY"); + + entity.HasIndex(e => e.idAsiento, "apuntes_asientos_idx"); + + entity.HasIndex(e => e.idConcepto, "apuntes_conceptosapuntes_idx"); + + entity.HasIndex(e => e.idConciliacion, "apuntes_conciliacionesbancarias_idx"); + + entity.HasIndex(e => e.idCuenta, "apuntes_cuentas_idx"); + + entity.HasIndex(e => new { e.NumeroDocumento, e.TipoDocumento }, "idx_documentos"); + + entity.Property(e => e.idApunte).HasColumnType("int(11)"); + entity.Property(e => e.Concepto).HasMaxLength(200); + entity.Property(e => e.FechaPunteo).HasColumnType("datetime"); + entity.Property(e => e.NumeroDocumento).HasMaxLength(30); + entity.Property(e => e.TipoDocumento).HasColumnType("int(11)"); + entity.Property(e => e.idAsiento).HasColumnType("int(11)"); + entity.Property(e => e.idConcepto).HasColumnType("int(11)"); + entity.Property(e => e.idConciliacion).HasColumnType("int(11)"); + entity.Property(e => e.idCuenta) + .HasComment("tabla cuentas") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idAsientoNavigation).WithMany(p => p.apuntes) + .HasForeignKey(d => d.idAsiento) + .HasConstraintName("apuntes_asientos"); + + entity.HasOne(d => d.idConceptoNavigation).WithMany(p => p.apuntes) + .HasForeignKey(d => d.idConcepto) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("apuntes_conceptosapuntes"); + + entity.HasOne(d => d.idConciliacionNavigation).WithMany(p => p.apuntes) + .HasForeignKey(d => d.idConciliacion) + .HasConstraintName("apuntes_conciliacionesbancarias"); + + entity.HasOne(d => d.idCuentaNavigation).WithMany(p => p.apuntes) + .HasForeignKey(d => d.idCuenta) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("apuntes_cuentas"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idApunteModelo).HasName("PRIMARY"); + + entity.HasIndex(e => e.idAsientoModelo, "apuntesmodelos_asientosmodelos_idx"); + + entity.HasIndex(e => e.idConcepto, "apuntesmodelos_conceptosapuntes_idx"); + + entity.Property(e => e.idApunteModelo).HasColumnType("int(11)"); + entity.Property(e => e.Concepto).HasMaxLength(200); + entity.Property(e => e.NumeroCuenta).HasMaxLength(10); + entity.Property(e => e.NumeroDocumento).HasMaxLength(30); + entity.Property(e => e.Orden).HasColumnType("int(11)"); + entity.Property(e => e.TipoDocumento).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoModelo).HasColumnType("int(11)"); + entity.Property(e => e.idConcepto).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAsientoModeloNavigation).WithMany(p => p.apuntesmodelo) + .HasForeignKey(d => d.idAsientoModelo) + .HasConstraintName("apuntesmodelos_asientosmodelos"); + + entity.HasOne(d => d.idConceptoNavigation).WithMany(p => p.apuntesmodelo) + .HasForeignKey(d => d.idConcepto) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("apuntesmodelos_conceptosapuntes"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idAsiento).HasName("PRIMARY"); + + entity.HasIndex(e => e.idAsientoModelo, "asientos_asientosmodelo_idx"); + + entity.HasIndex(e => e.idEjercicio, "asientos_ejercicioscontables_idx"); + + entity.HasIndex(e => new { e.idEjercicio, e.NumeroAsiento }, "asientos_numeroasiento").IsUnique(); + + entity.HasIndex(e => e.idUsuario, "asientos_usuarios_idx"); + + entity.Property(e => e.idAsiento).HasColumnType("int(11)"); + entity.Property(e => e.FechaIntroduccion).HasColumnType("datetime"); + entity.Property(e => e.FechaPunteo).HasColumnType("datetime"); + entity.Property(e => e.NumeroAsiento).HasColumnType("int(11)"); + entity.Property(e => e.Tipo).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoModelo).HasColumnType("int(11)"); + entity.Property(e => e.idEjercicio).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAsientoModeloNavigation).WithMany(p => p.asientos) + .HasForeignKey(d => d.idAsientoModelo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("asientos_asientosmodelo"); + + entity.HasOne(d => d.idEjercicioNavigation).WithMany(p => p.asientos) + .HasForeignKey(d => d.idEjercicio) + .HasConstraintName("asientos_ejercicioscontables"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.asientos) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("asientos_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idAsientoModelo).HasName("PRIMARY"); + + entity.HasIndex(e => e.Codigo, "Codigo_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.Descripcion, "Descripcion_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idUsuario, "asientosmodelos_usuarios_idx"); + + entity.Property(e => e.idAsientoModelo).HasColumnType("int(11)"); + entity.Property(e => e.Codigo).HasMaxLength(6); + entity.Property(e => e.Descripcion).HasMaxLength(100); + entity.Property(e => e.FechaIntroduccion).HasColumnType("datetime"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.asientosmodelos) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("asientosmodelos_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idAutorizaciongrupo).HasName("PRIMARY"); + + entity.HasIndex(e => e.idGrupo, "autorizacionesgrupos_gruposusuarios_idx"); + + entity.HasIndex(e => new { e.idPermiso, e.idGrupo }, "autorizacionesgrupos_permisos_idx").IsUnique(); + + entity.Property(e => e.idAutorizaciongrupo).HasColumnType("int(11)"); + entity.Property(e => e.idGrupo).HasColumnType("int(11)"); + entity.Property(e => e.idPermiso).HasColumnType("int(11)"); + + entity.HasOne(d => d.idGrupoNavigation).WithMany(p => p.autorizacionesgrupos) + .HasForeignKey(d => d.idGrupo) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("autorizacionesgrupos_gruposusuarios"); + + entity.HasOne(d => d.idPermisoNavigation).WithMany(p => p.autorizacionesgrupos) + .HasForeignKey(d => d.idPermiso) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("autorizacionesgrupos_permisos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idAutorizaciones).HasName("PRIMARY"); + + entity.HasIndex(e => e.idUsuario, "autorizaciones_grupos_idx"); + + entity.HasIndex(e => new { e.idPermiso, e.idUsuario }, "autorizacionesusuarios_permisos_idx").IsUnique(); + + entity.Property(e => e.idAutorizaciones).HasColumnType("int(11)"); + entity.Property(e => e.idPermiso).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idPermisoNavigation).WithMany(p => p.autorizacionesusuarios) + .HasForeignKey(d => d.idPermiso) + .HasConstraintName("autorizacionesusuarios_permisos"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.autorizacionesusuarios) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("autorizacionesusuarios_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.id).HasName("PRIMARY"); + + entity.HasIndex(e => e.id_suborganizacion, "FK_id_suborganizacion"); + + entity.HasIndex(e => new { e.codigoAgente, e.codigoSubAgente }, "unique_Agente_SubAgente").IsUnique(); + + entity.Property(e => e.id).HasColumnType("int(11) unsigned"); + entity.Property(e => e.codigoAgente) + .HasMaxLength(12) + .HasDefaultValueSql("''"); + entity.Property(e => e.codigoSubAgente) + .HasMaxLength(4) + .HasDefaultValueSql("''"); + entity.Property(e => e.codigoUsuarioAvant2) + .HasMaxLength(64) + .HasDefaultValueSql("''"); + entity.Property(e => e.contraseñaAvant2) + .HasMaxLength(64) + .HasDefaultValueSql("''"); + entity.Property(e => e.id_suborganizacion).HasColumnType("int(11) unsigned"); + entity.Property(e => e.nombreAgente) + .HasMaxLength(120) + .HasDefaultValueSql("''"); + + entity.HasOne(d => d.id_suborganizacionNavigation).WithMany(p => p.avant2__agentes) + .HasForeignKey(d => d.id_suborganizacion) + .HasConstraintName("FK_id_suborganizacion"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.id).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.idSubagente, "FK_idSubagente"); + + entity.HasIndex(e => e.idAgente, "index_id_agente"); + + entity.Property(e => e.id).HasColumnType("int(11) unsigned"); + entity.Property(e => e.creacion) + .HasDefaultValueSql("CURRENT_TIMESTAMP") + .HasColumnType("datetime"); + entity.Property(e => e.idAgente).HasColumnType("int(10)"); + entity.Property(e => e.idSubagente).HasColumnType("int(10)"); + entity.Property(e => e.token) + .HasMaxLength(64) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + + entity.HasOne(d => d.idAgenteNavigation).WithMany(p => p.avant2__sso) + .HasForeignKey(d => d.idAgente) + .HasConstraintName("FK_idAgente"); + + entity.HasOne(d => d.idSubagenteNavigation).WithMany(p => p.avant2__sso) + .HasForeignKey(d => d.idSubagente) + .HasConstraintName("FK_idSubagente"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.id).HasName("PRIMARY"); + + entity.Property(e => e.id).HasColumnType("int(11) unsigned"); + entity.Property(e => e.codigo) + .HasMaxLength(64) + .HasDefaultValueSql("''"); + entity.Property(e => e.descripcion) + .HasMaxLength(64) + .HasDefaultValueSql("''"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("axa__tractores_temp1"); + + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.DescripcionSuplemento).HasMaxLength(300); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.Garantias).HasMaxLength(300); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroDirectorio).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(300); + entity.Property(e => e.ReferenciaAsegasa).HasMaxLength(20); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idModelo) + .HasComment("Tabla Modelos") + .HasColumnType("int(11)"); + entity.Property(e => e.idMultitarificador) + .HasComment("Numero de poliza del multitarificador") + .HasColumnType("int(11)"); + entity.Property(e => e.idOrigenPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tabla usuarios, quien da de alta") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("axa__tractores_temp2"); + + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.DescripcionSuplemento).HasMaxLength(300); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.Garantias).HasMaxLength(300); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroDirectorio).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(300); + entity.Property(e => e.ReferenciaAsegasa).HasMaxLength(20); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idModelo) + .HasComment("Tabla Modelos") + .HasColumnType("int(11)"); + entity.Property(e => e.idMultitarificador) + .HasComment("Numero de poliza del multitarificador") + .HasColumnType("int(11)"); + entity.Property(e => e.idOrigenPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tabla usuarios, quien da de alta") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("axa__tractores_temp3"); + + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.DescripcionSuplemento).HasMaxLength(300); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.Garantias).HasMaxLength(300); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroDirectorio).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(300); + entity.Property(e => e.ReferenciaAsegasa).HasMaxLength(20); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idModelo) + .HasComment("Tabla Modelos") + .HasColumnType("int(11)"); + entity.Property(e => e.idMultitarificador) + .HasComment("Numero de poliza del multitarificador") + .HasColumnType("int(11)"); + entity.Property(e => e.idOrigenPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tabla usuarios, quien da de alta") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("axa__tractores_temp4"); + + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.DescripcionSuplemento).HasMaxLength(300); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.Garantias).HasMaxLength(300); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroDirectorio).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(300); + entity.Property(e => e.ReferenciaAsegasa).HasMaxLength(20); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idModelo) + .HasComment("Tabla Modelos") + .HasColumnType("int(11)"); + entity.Property(e => e.idMultitarificador) + .HasComment("Numero de poliza del multitarificador") + .HasColumnType("int(11)"); + entity.Property(e => e.idOrigenPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tabla usuarios, quien da de alta") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.Codigo).HasName("PRIMARY"); + + entity.Property(e => e.Codigo) + .HasMaxLength(4) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.BIC) + .HasMaxLength(11) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Nombre) + .HasMaxLength(145) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idBloqueo).HasName("PRIMARY"); + + entity.HasIndex(e => e.idSesion, "bloqueos_sesiones_idx"); + + entity.Property(e => e.idBloqueo).HasColumnType("int(11)"); + entity.Property(e => e.Aplicacion).HasMaxLength(40); + entity.Property(e => e.idRegistroBloqueado) + .HasMaxLength(45) + .HasDefaultValueSql("'0'"); + entity.Property(e => e.idSesion).HasColumnType("int(11)"); + + entity.HasOne(d => d.idSesionNavigation).WithMany(p => p.bloqueos) + .HasForeignKey(d => d.idSesion) + .HasConstraintName("bloqueos_sesiones"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idCaja).HasName("PRIMARY"); + + entity.HasIndex(e => e.idPermiso, "cajas_permisos_idx"); + + entity.Property(e => e.idCaja).HasColumnType("int(11)"); + entity.Property(e => e.Codigo).HasMaxLength(10); + entity.Property(e => e.Contador).HasColumnType("int(11)"); + entity.Property(e => e.CuentaContable).HasMaxLength(10); + entity.Property(e => e.Descripcion).HasMaxLength(100); + entity.Property(e => e.IBAN).HasMaxLength(24); + entity.Property(e => e.SufijoBancario).HasMaxLength(3); + entity.Property(e => e.Tipo).HasColumnType("int(11)"); + entity.Property(e => e.idPermiso).HasColumnType("int(11)"); + + entity.HasOne(d => d.idPermisoNavigation).WithMany(p => p.cajas) + .HasForeignKey(d => d.idPermiso) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("cajas_permisos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.id).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.claveagencia, e.subagencia }, "codigo").IsUnique(); + + entity.HasIndex(e => e.csb, "uq_csb").IsUnique(); + + entity.Property(e => e.id).HasColumnType("int(11) unsigned"); + entity.Property(e => e.claveagencia).HasMaxLength(12); + entity.Property(e => e.csb).HasMaxLength(4); + entity.Property(e => e.distribuidor).HasMaxLength(12); + entity.Property(e => e.nivel).HasMaxLength(1); + entity.Property(e => e.oficina).HasMaxLength(4); + entity.Property(e => e.produccionenvigor).HasMaxLength(8); + entity.Property(e => e.puntodeventa).HasMaxLength(64); + entity.Property(e => e.subagencia).HasMaxLength(4); + entity.Property(e => e.terminal).HasMaxLength(4); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("caser__autologin__agentes"); + + entity.Property(e => e.agente).HasMaxLength(20); + entity.Property(e => e.csb).HasMaxLength(4); + entity.Property(e => e.distribuidor).HasMaxLength(12); + entity.Property(e => e.nivel).HasMaxLength(1); + entity.Property(e => e.nombre).HasMaxLength(303); + entity.Property(e => e.oficina).HasMaxLength(4); + entity.Property(e => e.produccionenvigor).HasMaxLength(8); + entity.Property(e => e.subagente).HasMaxLength(4); + entity.Property(e => e.terminal).HasMaxLength(4); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.id).HasName("PRIMARY"); + + entity.HasIndex(e => e.MARCA, "MARCA_UNIQUE").IsUnique(); + + entity.Property(e => e.id) + .ValueGeneratedNever() + .HasColumnType("int(11)"); + entity.Property(e => e.FECHA_ACTUALIZACION).HasColumnType("datetime"); + entity.Property(e => e.FILLER).HasMaxLength(10); + entity.Property(e => e.MARCA).HasMaxLength(40); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.id).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.MARCA, e.MODELO }, "MODELO").IsUnique(); + + entity.Property(e => e.id).HasColumnType("int(11)"); + entity.Property(e => e.FECHA_ACTUALIZACION).HasColumnType("datetime"); + entity.Property(e => e.FILLER).HasMaxLength(10); + entity.Property(e => e.MARCA).HasMaxLength(40); + entity.Property(e => e.MODELO).HasMaxLength(80); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.id).HasName("PRIMARY"); + + entity.HasIndex(e => e.COMBUSTIBLE, "COMBUSTIBLE_UNIQUE").IsUnique(); + + entity.Property(e => e.id).HasColumnType("int(11)"); + entity.Property(e => e.CODIGO).HasMaxLength(2); + entity.Property(e => e.COMBUSTIBLE).HasMaxLength(20); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.id).HasName("PRIMARY"); + + entity.HasIndex(e => e.DESC_CLASE, "DESC_CLASE_UNIQUE").IsUnique(); + + entity.Property(e => e.id) + .ValueGeneratedNever() + .HasColumnType("int(11)"); + entity.Property(e => e.CATEGORIA).HasMaxLength(10); + entity.Property(e => e.CLASE_VEHICULO).HasMaxLength(10); + entity.Property(e => e.COD_TIPO_VEHICULO).HasMaxLength(10); + entity.Property(e => e.DENOMINACION).HasMaxLength(80); + entity.Property(e => e.DESC_CLASE).HasMaxLength(60); + entity.Property(e => e.FECHA_ACTUALIZACION).HasColumnType("datetime"); + entity.Property(e => e.FILLER).HasMaxLength(10); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.id).HasName("PRIMARY"); + + entity.HasIndex(e => e.MARCA, "MARCA"); + + entity.HasIndex(e => new { e.MARCA, e.MODELO }, "MODELO"); + + entity.Property(e => e.id).HasColumnType("int(11)"); + entity.Property(e => e.CAJA).HasMaxLength(40); + entity.Property(e => e.CERRAMIENTO).HasMaxLength(40); + entity.Property(e => e.CHASIS).HasMaxLength(40); + entity.Property(e => e.CILINDRADA).HasColumnType("int(11)"); + entity.Property(e => e.CLASE_VEHICULO).HasMaxLength(10); + entity.Property(e => e.COD_PROHIBICION).HasMaxLength(10); + entity.Property(e => e.COD_TIPO_VEHICULO).HasMaxLength(10); + entity.Property(e => e.COD_VEHICULO).HasMaxLength(20); + entity.Property(e => e.COMBUSTIBLE).HasMaxLength(2); + entity.Property(e => e.FECHA_ACTUALIZACION).HasColumnType("datetime"); + entity.Property(e => e.FECHA_LANZAMIENTO).HasColumnType("int(11)"); + entity.Property(e => e.FILLER).HasMaxLength(10); + entity.Property(e => e.LONGITUD).HasMaxLength(40); + entity.Property(e => e.MARCA).HasMaxLength(40); + entity.Property(e => e.MODELO).HasMaxLength(80); + entity.Property(e => e.PLAZAS).HasColumnType("int(11)"); + entity.Property(e => e.PMA).HasColumnType("int(11)"); + entity.Property(e => e.POTENCIA).HasColumnType("int(11)"); + entity.Property(e => e.PUERTAS).HasColumnType("int(11)"); + entity.Property(e => e.TARA).HasColumnType("int(11)"); + entity.Property(e => e.TECHO).HasMaxLength(40); + entity.Property(e => e.TIPO_VEHICULO).HasMaxLength(60); + entity.Property(e => e.VERSION).HasMaxLength(80); + entity.Property(e => e.VOLUMEN).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idCelda).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.idInformeContable, e.Hoja, e.Fila, e.Columna }, "celda").IsUnique(); + + entity.HasIndex(e => e.idInformeContable, "celdasinformescontables_informescontables_idx"); + + entity.Property(e => e.idCelda).HasColumnType("int(11)"); + entity.Property(e => e.Columna).HasMaxLength(4); + entity.Property(e => e.Fila).HasColumnType("int(11)"); + entity.Property(e => e.Hoja).HasColumnType("int(11)"); + entity.Property(e => e.NombreCampo).HasMaxLength(45); + entity.Property(e => e.Observaciones).HasMaxLength(100); + entity.Property(e => e.idInformeContable).HasColumnType("int(11)"); + + entity.HasOne(d => d.idInformeContableNavigation).WithMany(p => p.celdasinformescontables) + .HasForeignKey(d => d.idInformeContable) + .HasConstraintName("celdasinformescontables_informescontables"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idCertificado).HasName("PRIMARY"); + + entity.Property(e => e.idCertificado).HasColumnType("int(11)"); + entity.Property(e => e.CERT_ID).HasMaxLength(40); + entity.Property(e => e.CIF).HasMaxLength(20); + entity.Property(e => e.Codigo).HasMaxLength(20); + entity.Property(e => e.ContenedorClaves).HasColumnType("mediumblob"); + entity.Property(e => e.FechaCaducidad).HasColumnType("datetime"); + entity.Property(e => e.FechaCreacion).HasColumnType("datetime"); + entity.Property(e => e.FechaValidez).HasColumnType("datetime"); + entity.Property(e => e.Observaciones).HasMaxLength(255); + entity.Property(e => e.Tipo).HasMaxLength(20); + entity.Property(e => e.Titulo).HasMaxLength(64); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idCodigoPostal).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.CodigoPostal, e.CodigoMunicipio }, "codigopostal_codigomunicipio").IsUnique(); + + entity.HasIndex(e => e.CodigoMunicipio, "codigospostales_municipios_idx"); + + entity.Property(e => e.idCodigoPostal).HasColumnType("int(11)"); + entity.Property(e => e.CodigoMunicipio).HasMaxLength(10); + entity.Property(e => e.CodigoPostal).HasMaxLength(10); + entity.Property(e => e.DescripcionAdicional).HasMaxLength(60); + + entity.HasOne(d => d.CodigoMunicipioNavigation).WithMany(p => p.codigospostales) + .HasForeignKey(d => d.CodigoMunicipio) + .HasConstraintName("cp_municipios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idColectivo).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.Property(e => e.idColectivo).HasColumnType("int(11)"); + entity.Property(e => e.descripcion) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.numeroOrden) + .HasMaxLength(4) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.referenciaHP) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.CodigoComarca).HasName("PRIMARY"); + + entity.HasIndex(e => e.CodigoProvincia, "CodigoProvincia"); + + entity.Property(e => e.CodigoComarca).HasMaxLength(6); + entity.Property(e => e.CodigoProvincia).HasMaxLength(2); + entity.Property(e => e.Nombre).HasMaxLength(80); + + entity.HasOne(d => d.CodigoProvinciaNavigation).WithMany(p => p.comarcas) + .HasForeignKey(d => d.CodigoProvincia) + .HasConstraintName("comarcas_provincias"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idComisionAgente).HasName("PRIMARY"); + + entity.HasIndex(e => e.idAgente, "comisionesagentes_agentes_idx"); + + entity.HasIndex(e => e.idCompania, "comisionesagentes_compañias_idx"); + + entity.HasIndex(e => e.idRamo, "comisionesagentes_ramos_idx"); + + entity.Property(e => e.idComisionAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idCompania).HasColumnType("int(11)"); + entity.Property(e => e.idRamo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAgenteNavigation).WithMany(p => p.comisionesagentes) + .HasForeignKey(d => d.idAgente) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("comisionesagentes_agentes"); + + entity.HasOne(d => d.idCompaniaNavigation).WithMany(p => p.comisionesagentes) + .HasForeignKey(d => d.idCompania) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("comisionesagentes_compañias"); + + entity.HasOne(d => d.idRamoNavigation).WithMany(p => p.comisionesagentes) + .HasForeignKey(d => d.idRamo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("comisionesagentes_ramos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idComisionCompania).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCompania, "comisionescompanias_companias_idx"); + + entity.HasIndex(e => e.idRamo, "comisionescompañias_idx1"); + + entity.HasIndex(e => e.idComisionCompania, "idComisionCompañia_UNIQUE").IsUnique(); + + entity.Property(e => e.idComisionCompania).HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañias") + .HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idCompaniaNavigation).WithMany(p => p.comisionescompanias) + .HasForeignKey(d => d.idCompania) + .HasConstraintName("comisionescompanias_companias"); + + entity.HasOne(d => d.idRamoNavigation).WithMany(p => p.comisionescompanias) + .HasForeignKey(d => d.idRamo) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("comisionescompañias_ramos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idComisionLineaCompania).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCompania, "comisionlineacompania_compania_idx"); + + entity.Property(e => e.idComisionLineaCompania).HasColumnType("int(11)"); + entity.Property(e => e.codigoASEGASA).HasMaxLength(45); + entity.Property(e => e.idCompania).HasColumnType("int(11)"); + entity.Property(e => e.planLinea).HasMaxLength(45); + + entity.HasOne(d => d.idCompaniaNavigation).WithMany(p => p.comisionlineacompania) + .HasForeignKey(d => d.idCompania) + .HasConstraintName("comisionlineacompania_compania"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idCompania).HasName("PRIMARY"); + + entity.HasIndex(e => e.CodigoDGS, "CodigoDGS_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.Codigo, "Codigo_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idDireccion, "compañias_direcciones_idx"); + + entity.HasIndex(e => e.idTipoCobro, "compañias_formacobro_idx"); + + entity.HasIndex(e => e.idTipoRedondeo, "compañias_tiporedondeo_idx"); + + entity.HasIndex(e => e.idUsuarioRevisor, "compañias_usuariorevisor_idx"); + + entity.HasIndex(e => e.idCompania, "idCompañia_UNIQUE").IsUnique(); + + entity.Property(e => e.idCompania).HasColumnType("int(11)"); + entity.Property(e => e.CBSB).HasMaxLength(20); + entity.Property(e => e.CIF).HasMaxLength(20); + entity.Property(e => e.Codigo).HasMaxLength(20); + entity.Property(e => e.CodigoAgrario).HasMaxLength(20); + entity.Property(e => e.CodigoAsegasa).HasMaxLength(20); + entity.Property(e => e.CodigoDGS).HasMaxLength(10); + entity.Property(e => e.Consorcio).HasComment("tabla enumeraciones"); + entity.Property(e => e.Contrasenna).HasMaxLength(45); + entity.Property(e => e.CuentaAlCobro).HasMaxLength(45); + entity.Property(e => e.CuentaRecargosExternos).HasMaxLength(45); + entity.Property(e => e.DiaPlazoRetornoComision).HasColumnType("int(11)"); + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.Fax).HasMaxLength(20); + entity.Property(e => e.FormaLiquidacion).HasColumnType("int(11)"); + entity.Property(e => e.IBANCobros1).HasMaxLength(45); + entity.Property(e => e.IBANCobros2).HasMaxLength(45); + entity.Property(e => e.IBANCobros3).HasMaxLength(45); + entity.Property(e => e.IBANCobros4).HasMaxLength(45); + entity.Property(e => e.IBANLiquidacion).HasMaxLength(45); + entity.Property(e => e.Nombre).HasMaxLength(100); + entity.Property(e => e.NumeroDiasLimiteFBCartera) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.NumeroDiasLimiteFBEmision) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.NumeroDiasLimiteRemesa) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(200); + entity.Property(e => e.PlazoRetornoComision).HasColumnType("int(11)"); + entity.Property(e => e.Sufijo).HasMaxLength(45); + entity.Property(e => e.Telefono1).HasMaxLength(20); + entity.Property(e => e.Telefono2).HasMaxLength(20); + entity.Property(e => e.Usuario).HasMaxLength(45); + entity.Property(e => e.emailLiquidacion).HasMaxLength(100); + entity.Property(e => e.idDireccion).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones\n") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoRedondeo) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioRevisor).HasColumnType("int(11)"); + + entity.HasOne(d => d.idDireccionNavigation).WithMany(p => p.companias) + .HasForeignKey(d => d.idDireccion) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("compañias_direcciones"); + + entity.HasOne(d => d.idTipoCobroNavigation).WithMany(p => p.companiasidTipoCobroNavigation) + .HasForeignKey(d => d.idTipoCobro) + .HasConstraintName("compañias_formacobro"); + + entity.HasOne(d => d.idTipoRedondeoNavigation).WithMany(p => p.companiasidTipoRedondeoNavigation) + .HasForeignKey(d => d.idTipoRedondeo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("compañias_tiporedondeo"); + + entity.HasOne(d => d.idUsuarioRevisorNavigation).WithMany(p => p.companias) + .HasForeignKey(d => d.idUsuarioRevisor) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("compañias_usuariorevisor"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idConcepto).HasName("PRIMARY"); + + entity.HasIndex(e => e.Codigo, "Codigo_UNIQUE").IsUnique(); + + entity.Property(e => e.idConcepto).HasColumnType("int(11)"); + entity.Property(e => e.Codigo).HasMaxLength(10); + entity.Property(e => e.Concepto).HasMaxLength(200); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idconciliacion).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCaja, "conciliacionesbancaras_cajas_idx"); + + entity.HasIndex(e => e.idUsuario, "conciliacionesbancarias_usuarios_idx"); + + entity.Property(e => e.idconciliacion) + .ValueGeneratedNever() + .HasColumnType("int(11)"); + entity.Property(e => e.FechaConciliacion).HasColumnType("datetime"); + entity.Property(e => e.idCaja).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCajaNavigation).WithMany(p => p.conciliacionesbancarias) + .HasForeignKey(d => d.idCaja) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("conciliacionesbancaras_cajas"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.conciliacionesbancarias) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("conciliacionesbancarias_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idConexion).HasName("PRIMARY"); + + entity.HasIndex(e => e.idMysql, "idMysql_UNIQUE").IsUnique(); + + entity.Property(e => e.idConexion).HasColumnType("int(11)"); + entity.Property(e => e.FechaHora).HasColumnType("datetime"); + entity.Property(e => e.Usuario).HasMaxLength(30); + entity.Property(e => e.idMysql).HasColumnType("int(11)"); + entity.Property(e => e.ip).HasMaxLength(100); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idconexionesbd).HasName("PRIMARY"); + + entity.HasIndex(e => e.idgrupobd, "idGrupobd"); + + entity.Property(e => e.idconexionesbd).HasColumnType("int(11)"); + entity.Property(e => e.Esquema) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Password) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.PuertoLocal).HasColumnType("int(11)"); + entity.Property(e => e.PuertoRemoto).HasColumnType("int(11)"); + entity.Property(e => e.ServidorLocal) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.ServidorRemoto) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Usuario) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idgrupobd).HasColumnType("int(11)"); + + entity.HasOne(d => d.idgrupobdNavigation).WithMany(p => p.conexionesbd) + .HasForeignKey(d => d.idgrupobd) + .HasConstraintName("Conexionesbd_Grupobd"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idcorreo).HasName("PRIMARY"); + + entity.HasIndex(e => e.FechaAnulacion, "FechaAnulacion"); + + entity.HasIndex(e => e.FechaAvisoError, "FechaAvisoError"); + + entity.HasIndex(e => e.FechaEnvio, "FechaEnvio"); + + entity.HasIndex(e => e.FechaUltimoIntento, "FechaUltimoIntento"); + + entity.HasIndex(e => e.Asunto, "IN_Asunto"); + + entity.HasIndex(e => new { e.CodigoAplicacion, e.idAplicacion }, "aplicacion"); + + entity.HasIndex(e => e.idcuenta, "correos_cuentas"); + + entity.HasIndex(e => e.idFicheroAdjunto, "correos_ficheros"); + + entity.Property(e => e.idcorreo).HasColumnType("int(11)"); + entity.Property(e => e.CodigoAplicacion).HasMaxLength(30); + entity.Property(e => e.Copia).HasMaxLength(255); + entity.Property(e => e.CopiaOculta).HasMaxLength(255); + entity.Property(e => e.DescripcionError).HasMaxLength(255); + entity.Property(e => e.Destinatario).HasMaxLength(255); + entity.Property(e => e.DireccionRespuesta).HasMaxLength(255); + entity.Property(e => e.FechaAnulacion).HasColumnType("datetime"); + entity.Property(e => e.FechaAvisoError).HasColumnType("datetime"); + entity.Property(e => e.FechaCreacion).HasColumnType("datetime"); + entity.Property(e => e.FechaEnvio).HasColumnType("datetime"); + entity.Property(e => e.FechaUltimoIntento).HasColumnType("datetime"); + entity.Property(e => e.Remitente).HasMaxLength(255); + entity.Property(e => e.RutaFicheroAdjunto).HasMaxLength(255); + entity.Property(e => e.idAplicacion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroAdjunto).HasColumnType("int(11)"); + entity.Property(e => e.idcuenta).HasColumnType("int(11)"); + + entity.HasOne(d => d.idFicheroAdjuntoNavigation).WithMany(p => p.correos) + .HasForeignKey(d => d.idFicheroAdjunto) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("correos_ficheros"); + + entity.HasOne(d => d.idcuentaNavigation).WithMany(p => p.correos) + .HasForeignKey(d => d.idcuenta) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("correos_cuentas"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idCuenta).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.NumeroCuenta, e.idEjercicio }, "NumeroCuenta_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idEjercicio, "cuentas_ejercicioscontables_idx"); + + entity.HasIndex(e => e.idEmpresaAmortizacion, "cuentas_enumeraciones_01_Empresa_idx"); + + entity.HasIndex(e => e.idCuenta, "idCuenta_UNIQUE").IsUnique(); + + entity.Property(e => e.idCuenta).HasColumnType("int(11)"); + entity.Property(e => e.Denominacion) + .HasMaxLength(150) + .HasDefaultValueSql("'0'"); + entity.Property(e => e.Mote).HasMaxLength(40); + entity.Property(e => e.NumeroCuenta).HasMaxLength(10); + entity.Property(e => e.Observaciones).HasMaxLength(200); + entity.Property(e => e.idEjercicio).HasColumnType("int(11)"); + entity.Property(e => e.idEmpresaAmortizacion).HasColumnType("int(11)"); + + entity.HasOne(d => d.idEjercicioNavigation).WithMany(p => p.cuentas) + .HasForeignKey(d => d.idEjercicio) + .HasConstraintName("cuentas_ejercicioscontables"); + + entity.HasOne(d => d.idEmpresaAmortizacionNavigation).WithMany(p => p.cuentas) + .HasForeignKey(d => d.idEmpresaAmortizacion) + .HasConstraintName("cuentas_enumeraciones_01_Empresa"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idCuenta).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCelda, "cuentasceldasinformescontables_celdasinformescontables_idx"); + + entity.Property(e => e.idCuenta).HasColumnType("int(11)"); + entity.Property(e => e.Factor).HasColumnType("int(11)"); + entity.Property(e => e.NumeroCuenta).HasMaxLength(8); + entity.Property(e => e.idCelda).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCeldaNavigation).WithMany(p => p.cuentasceldasinformescontables) + .HasForeignKey(d => d.idCelda) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("cuentasceldasinformescontables_celdasinformescontables"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idCuenta).HasName("PRIMARY"); + + entity.HasIndex(e => e.Codigo, "Codigo_UNIQUE").IsUnique(); + + entity.Property(e => e.idCuenta).HasColumnType("int(11)"); + entity.Property(e => e.Codigo) + .HasMaxLength(20) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.CuentaCorreo) + .HasMaxLength(255) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.FechaAvisoCaducidadCredenciales).HasColumnType("datetime"); + entity.Property(e => e.ParametroConexion1).HasMaxLength(100); + entity.Property(e => e.ParametroConexion2).HasMaxLength(100); + entity.Property(e => e.Password) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Puerto).HasColumnType("int(11)"); + entity.Property(e => e.Remitente) + .HasMaxLength(255) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.ResponderA).HasMaxLength(255); + entity.Property(e => e.ServidorSMTP) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idDepartamentos).HasName("PRIMARY"); + + entity.HasIndex(e => e.idUsuarioResponsable, "departamentos_usuarios_idx"); + + entity.Property(e => e.idDepartamentos).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion).HasMaxLength(100); + entity.Property(e => e.idUsuarioResponsable).HasColumnType("int(11)"); + + entity.HasOne(d => d.idUsuarioResponsableNavigation).WithMany(p => p.departamentos) + .HasForeignKey(d => d.idUsuarioResponsable) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("departamentos_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idDepartamentosContactoCompania).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCompania, "departamentoscontactoscompania_compania_idx"); + + entity.HasIndex(e => e.idDepartamento, "departamentoscontactoscompanias_EnumeracionesDepartamentos_idx"); + + entity.Property(e => e.idDepartamentosContactoCompania).HasColumnType("int(11)"); + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.Telefono).HasMaxLength(45); + entity.Property(e => e.idCompania).HasColumnType("int(11)"); + entity.Property(e => e.idDepartamento).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCompaniaNavigation).WithMany(p => p.departamentoscontactocompanias) + .HasForeignKey(d => d.idCompania) + .HasConstraintName("departamentoscontactoscompania_compania"); + + entity.HasOne(d => d.idDepartamentoNavigation).WithMany(p => p.departamentoscontactocompanias) + .HasForeignKey(d => d.idDepartamento) + .HasConstraintName("departamentoscontactoscompanias_EnumeracionesDepartamentos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idDepartamentosMiembros).HasName("PRIMARY"); + + entity.HasIndex(e => e.idDepartamento, "departamentosmiembros_departamentos_idx"); + + entity.HasIndex(e => e.idPuesto, "departamentosmiembros_idx"); + + entity.HasIndex(e => e.idUsuario, "departamentosmiembros_usuarios_idx"); + + entity.Property(e => e.idDepartamentosMiembros).HasColumnType("int(11)"); + entity.Property(e => e.idDepartamento).HasColumnType("int(11)"); + entity.Property(e => e.idPuesto).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idDepartamentoNavigation).WithMany(p => p.departamentosmiembros) + .HasForeignKey(d => d.idDepartamento) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("departamentosmiembros_departamentos"); + + entity.HasOne(d => d.idPuestoNavigation).WithMany(p => p.departamentosmiembros) + .HasForeignKey(d => d.idPuesto) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("departamentosmiembros"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.departamentosmiembros) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("departamentosmiembros_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idDestinos).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.idLiquidacionViaje, "destinos_liquidacionesviajes_idx"); + + entity.Property(e => e.idDestinos).HasColumnType("int(11)"); + entity.Property(e => e.Concepto) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Lugar) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idLiquidacionViaje).HasColumnType("int(11)"); + + entity.HasOne(d => d.idLiquidacionViajeNavigation).WithMany(p => p.destinos) + .HasForeignKey(d => d.idLiquidacionViaje) + .HasConstraintName("destinos_liquidacionesviajes"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idDetalle).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.FechaAplicacion, "detallesamortizacionrecibos_FechaAplicacion"); + + entity.HasIndex(e => e.idAmortizacion, "detallesamortizacionrecibos_amortizacionrecibos_idx"); + + entity.Property(e => e.idDetalle).HasColumnType("int(11)"); + entity.Property(e => e.FechaAplicacion).HasColumnType("datetime"); + entity.Property(e => e.Mes).HasColumnType("int(11)"); + entity.Property(e => e.idAmortizacion).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAmortizacionNavigation).WithMany(p => p.detallesamortizacionrecibos) + .HasForeignKey(d => d.idAmortizacion) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("detallesamortizacionrecibos_amortizacionrecibos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idDireccion).HasName("PRIMARY"); + + entity.HasIndex(e => e.idEntidad, "direcciones_entidades_idx"); + + entity.HasIndex(e => e.CodigoMunicipio, "direcciones_municipios_idx"); + + entity.HasIndex(e => e.idTipo, "direcciones_tipos_idx"); + + entity.HasIndex(e => e.idDireccion, "idDireccion_UNIQUE").IsUnique(); + + entity.Property(e => e.idDireccion).HasColumnType("int(11)"); + entity.Property(e => e.CodigoMunicipio).HasMaxLength(10); + entity.Property(e => e.CodigoPostal).HasMaxLength(10); + entity.Property(e => e.Direccion).HasMaxLength(200); + entity.Property(e => e.idEntidad).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + + entity.HasOne(d => d.CodigoMunicipioNavigation).WithMany(p => p.direcciones) + .HasForeignKey(d => d.CodigoMunicipio) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("direcciones_municipios"); + + entity.HasOne(d => d.idEntidadNavigation).WithMany(p => p.direcciones) + .HasForeignKey(d => d.idEntidad) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("direcciones_entidades"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.direcciones) + .HasForeignKey(d => d.idTipo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("direcciones_tipos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idDocumento).HasName("PRIMARY"); + + entity.HasIndex(e => e.idRamo, "documentosasolicitar_ramos_idx"); + + entity.HasIndex(e => e.SolicitarAAgente, "documentosasolicitar_solicitaraagente"); + + entity.HasIndex(e => e.idTipo, "documentosasolicitar_tipo_idx"); + + entity.HasIndex(e => new { e.idRamo, e.idTipo }, "documentosasolicitar_tipo_ramos_unq").IsUnique(); + + entity.Property(e => e.idDocumento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(100); + entity.Property(e => e.idRamo).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idRamoNavigation).WithMany(p => p.documentosasolicitar) + .HasForeignKey(d => d.idRamo) + .HasConstraintName("documentosasolicitar_ramos"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.documentosasolicitar) + .HasForeignKey(d => d.idTipo) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("documentosasolicitar_tipo"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idDocumento).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.idFichero, "documentospolizas_ficheros_idx"); + + entity.HasIndex(e => e.idPoliza, "documentospolizasagrario_idx"); + + entity.HasIndex(e => e.idUsuarioAdjuntaFichero, "documentospolizasagrario_usuarios_idx"); + + entity.Property(e => e.idDocumento).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion) + .HasMaxLength(225) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Fecha).HasColumnType("datetime"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioAdjuntaFichero).HasColumnType("int(11)"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.documentospolizasagrario) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("documentospolizasagrario_ficheros"); + + entity.HasOne(d => d.idPolizaNavigation).WithMany(p => p.documentospolizasagrario) + .HasForeignKey(d => d.idPoliza) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("documentospolizasagrario"); + + entity.HasOne(d => d.idUsuarioAdjuntaFicheroNavigation).WithMany(p => p.documentospolizasagrario) + .HasForeignKey(d => d.idUsuarioAdjuntaFichero) + .HasConstraintName("documentospolizasagrario_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idDocumento).HasName("PRIMARY"); + + entity.HasIndex(e => e.idPoliza, "documentosp_polizassg_idx"); + + entity.HasIndex(e => e.idUsuarioAdjuntaFichero, "documentospolizas_02_usuarios_idx"); + + entity.HasIndex(e => e.idCorreoAsegasa, "documentospolizas_correos_idx"); + + entity.HasIndex(e => e.idDocumentoASolicitar, "documentospolizas_documentosasolicitar_idx"); + + entity.HasIndex(e => e.FechaComprobacion, "documentospolizas_fechacomprobacion"); + + entity.HasIndex(e => e.idFichero, "documentospolizas_ficheos_idx"); + + entity.HasIndex(e => e.Obligatorio, "documentospolizas_obligatorio"); + + entity.HasIndex(e => e.idRecibo, "documentospolizas_recibos_idx"); + + entity.HasIndex(e => e.idUsuarioComprueba, "documentospolizas_usuarios_idx"); + + entity.Property(e => e.idDocumento).HasColumnType("int(11)"); + entity.Property(e => e.Codigo).HasMaxLength(45); + entity.Property(e => e.Descripcion).HasMaxLength(225); + entity.Property(e => e.Fecha).HasColumnType("datetime"); + entity.Property(e => e.FechaComprobacion).HasColumnType("datetime"); + entity.Property(e => e.Hash).HasMaxLength(40); + entity.Property(e => e.Tipo).HasColumnType("int(11)"); + entity.Property(e => e.idCorreoAsegasa).HasColumnType("int(11)"); + entity.Property(e => e.idDocumentoASolicitar).HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioAdjuntaFichero).HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioComprueba).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCorreoAsegasaNavigation).WithMany(p => p.documentospolizassg) + .HasForeignKey(d => d.idCorreoAsegasa) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("documentospolizas_correos"); + + entity.HasOne(d => d.idDocumentoASolicitarNavigation).WithMany(p => p.documentospolizassg) + .HasForeignKey(d => d.idDocumentoASolicitar) + .HasConstraintName("documentospolizas_documentosasolicitar"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.documentospolizassg) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("documentospolizas_ficheos"); + + entity.HasOne(d => d.idPolizaNavigation).WithMany(p => p.documentospolizassg) + .HasForeignKey(d => d.idPoliza) + .HasConstraintName("documentospolizas_polizassg"); + + entity.HasOne(d => d.idReciboNavigation).WithMany(p => p.documentospolizassg) + .HasForeignKey(d => d.idRecibo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("documentospolizas_recibos"); + + entity.HasOne(d => d.idUsuarioAdjuntaFicheroNavigation).WithMany(p => p.documentospolizassgidUsuarioAdjuntaFicheroNavigation) + .HasForeignKey(d => d.idUsuarioAdjuntaFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("documentospolizas_02_usuarios"); + + entity.HasOne(d => d.idUsuarioCompruebaNavigation).WithMany(p => p.documentospolizassgidUsuarioCompruebaNavigation) + .HasForeignKey(d => d.idUsuarioComprueba) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("documentospolizas_01_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idDocumento).HasName("PRIMARY"); + + entity.HasIndex(e => e.idSiniestro, "documentossiniestros_siniestros_idx"); + + entity.Property(e => e.idDocumento).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion).HasMaxLength(225); + entity.Property(e => e.Fecha).HasColumnType("datetime"); + entity.Property(e => e.NombreFichero).HasMaxLength(100); + entity.Property(e => e.idSiniestro).HasColumnType("int(11)"); + + entity.HasOne(d => d.idSiniestroNavigation).WithMany(p => p.documentossiniestros) + .HasForeignKey(d => d.idSiniestro) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("documentossiniestros_siniestros"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idDocumentosVarios).HasName("PRIMARY"); + + entity.HasIndex(e => e.idEstado, "DocumentosVarios_estado_idx"); + + entity.HasIndex(e => e.idFichero, "DocumentosVarios_ficheros_idx"); + + entity.HasIndex(e => e.idTipo, "DocumentosVarios_tipo_idx"); + + entity.HasIndex(e => e.idUsuarioRevisor, "DocumentosVarios_usuario_idx"); + + entity.Property(e => e.idDocumentosVarios).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion).HasMaxLength(100); + entity.Property(e => e.FechaEmision).HasColumnType("datetime"); + entity.Property(e => e.FechaModificacion).HasColumnType("datetime"); + entity.Property(e => e.FechaRevision).HasColumnType("datetime"); + entity.Property(e => e.idEstado).HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioRevisor).HasColumnType("int(11)"); + + entity.HasOne(d => d.idEstadoNavigation).WithMany(p => p.documentosvariosidEstadoNavigation) + .HasForeignKey(d => d.idEstado) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("DocumentosVarios_estado"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.documentosvarios) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("DocumentosVarios_ficheros"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.documentosvariosidTipoNavigation) + .HasForeignKey(d => d.idTipo) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("DocumentosVarios_tipo"); + + entity.HasOne(d => d.idUsuarioRevisorNavigation).WithMany(p => p.documentosvarios) + .HasForeignKey(d => d.idUsuarioRevisor) + .HasConstraintName("DocumentosVarios_usuario"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idEjercicio).HasName("PRIMARY"); + + entity.HasIndex(e => e.Descripcion, "Descripcion_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idEmpresa, "ejercicioscontables_empresascontables_idx"); + + entity.Property(e => e.idEjercicio).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion).HasMaxLength(40); + entity.Property(e => e.NivelesCuentas).HasMaxLength(20); + entity.Property(e => e.idEmpresa).HasColumnType("int(11)"); + + entity.HasOne(d => d.idEmpresaNavigation).WithMany(p => p.ejercicioscontables) + .HasForeignKey(d => d.idEmpresa) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("ejercicioscontables_empresascontables"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idEmpresaContable).HasName("PRIMARY"); + + entity.HasIndex(e => e.RazonSocial, "idx_Nombre").IsUnique(); + + entity.Property(e => e.idEmpresaContable).HasColumnType("int(11)"); + entity.Property(e => e.FechaBaja).HasColumnType("datetime"); + entity.Property(e => e.RazonSocial).HasMaxLength(45); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idEntidad).HasName("PRIMARY"); + + entity.HasIndex(e => e.CIF, "entidades_CIF").IsUnique(); + + entity.HasIndex(e => e.idDireccionPrincipal, "entidades_DireccionPrincipal_idx"); + + entity.HasIndex(e => e.idSexo, "entidades_SexoEnumeraciones_idx"); + + entity.HasIndex(e => e.idTipoPago, "entidades_TipoPagoEnumeraciones_idx"); + + entity.HasIndex(e => e.idEntidad, "identidades_UNIQUE").IsUnique(); + + entity.Property(e => e.idEntidad).HasColumnType("int(11)"); + entity.Property(e => e.AfiliacionSeguridadSocial).HasMaxLength(20); + entity.Property(e => e.Apellidos).HasMaxLength(100); + entity.Property(e => e.Avisos).HasMaxLength(45); + entity.Property(e => e.CIF).HasMaxLength(20); + entity.Property(e => e.CuentaContable).HasMaxLength(45); + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.EstadoCivil).HasMaxLength(45); + entity.Property(e => e.FechaAltaServiciosWeb).HasColumnType("datetime"); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Nombre).HasMaxLength(100); + entity.Property(e => e.Observacion).HasMaxLength(200); + entity.Property(e => e.RazonSocial).HasMaxLength(100); + entity.Property(e => e.SHA1Passwd).HasMaxLength(40); + entity.Property(e => e.Situacion).HasMaxLength(100); + entity.Property(e => e.Telefono1).HasMaxLength(20); + entity.Property(e => e.Telefono2).HasMaxLength(20); + entity.Property(e => e.idDireccionPrincipal).HasColumnType("int(11)"); + entity.Property(e => e.idSexo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + + entity.HasOne(d => d.idDireccionPrincipalNavigation).WithMany(p => p.entidades) + .HasForeignKey(d => d.idDireccionPrincipal) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("entidades_DireccionPrincipal"); + + entity.HasOne(d => d.idSexoNavigation).WithMany(p => p.entidadesidSexoNavigation) + .HasForeignKey(d => d.idSexo) + .HasConstraintName("entidades_sexoEnumeraciones"); + + entity.HasOne(d => d.idTipoPagoNavigation).WithMany(p => p.entidadesidTipoPagoNavigation) + .HasForeignKey(d => d.idTipoPago) + .HasConstraintName("entidades_TipoPagoEnumeraciones"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.id).HasName("PRIMARY"); + + entity + .HasCharSet("utf8mb4") + .UseCollation("utf8mb4_bin"); + + entity.HasIndex(e => e.idEntidad, "FK_idEntidad"); + + entity.Property(e => e.id).HasColumnType("int(11) unsigned"); + entity.Property(e => e.creacion) + .HasDefaultValueSql("CURRENT_TIMESTAMP") + .HasColumnType("datetime"); + entity.Property(e => e.idEntidad).HasColumnType("int(11)"); + entity.Property(e => e.token) + .HasMaxLength(64) + .HasDefaultValueSql("''"); + + entity.HasOne(d => d.idEntidadNavigation).WithMany(p => p.entidades_tokens) + .HasForeignKey(d => d.idEntidad) + .HasConstraintName("FK_idEntidad"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idEntidadPoliza).HasName("PRIMARY"); + + entity.HasIndex(e => e.EsTomador, "entidadPoliza_TipoPolizaEnumeraciones_idx"); + + entity.HasIndex(e => e.idEntidad, "entidadPoliza_entidad_idx"); + + entity.HasIndex(e => e.idPoliza, "entidadesPolizas_polizas_idx"); + + entity.HasIndex(e => new { e.idPoliza, e.idEntidad }, "entidades_polizas_unico").IsUnique(); + + entity.HasIndex(e => e.idDireccion, "entidadespoliza_direccion_idx"); + + entity.Property(e => e.idEntidadPoliza).HasColumnType("int(11)"); + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.EsTomador).HasComment("tabla enumeraciones"); + entity.Property(e => e.Observaciones).HasMaxLength(70); + entity.Property(e => e.Telefono1).HasMaxLength(20); + entity.Property(e => e.Telefono2).HasMaxLength(20); + entity.Property(e => e.idDireccion).HasColumnType("int(11)"); + entity.Property(e => e.idEntidad) + .HasComment("tabla entidad") + .HasColumnType("int(11)"); + entity.Property(e => e.idPoliza) + .HasComment("tabla polizas") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idDireccionNavigation).WithMany(p => p.entidadespolizas) + .HasForeignKey(d => d.idDireccion) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("entidadespolizas_direccion"); + + entity.HasOne(d => d.idEntidadNavigation).WithMany(p => p.entidadespolizas) + .HasForeignKey(d => d.idEntidad) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("entidadespolizas_entidades"); + + entity.HasOne(d => d.idPolizaNavigation).WithMany(p => p.entidadespolizas) + .HasForeignKey(d => d.idPoliza) + .HasConstraintName("entidadespolizas_polizassg"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idEntidadRelacionada).HasName("PRIMARY"); + + entity.HasIndex(e => e.idEntidadPadre, "entidadesrelacionadas_01_entidadespadre_idx"); + + entity.HasIndex(e => e.idEntidadHijo, "entidadesrelacionadas_02_entidadeshijo_idx"); + + entity.Property(e => e.idEntidadRelacionada).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(80); + entity.Property(e => e.idEntidadHijo).HasColumnType("int(11)"); + entity.Property(e => e.idEntidadPadre).HasColumnType("int(11)"); + + entity.HasOne(d => d.idEntidadHijoNavigation).WithMany(p => p.entidadesrelacionadasidEntidadHijoNavigation) + .HasForeignKey(d => d.idEntidadHijo) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("entidadesrelacionadas_02_entidadeshijo"); + + entity.HasOne(d => d.idEntidadPadreNavigation).WithMany(p => p.entidadesrelacionadasidEntidadPadreNavigation) + .HasForeignKey(d => d.idEntidadPadre) + .HasConstraintName("entidadesrelacionadas_01_entidadespadre"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idEnumeracion).HasName("PRIMARY"); + + entity.HasIndex(e => e.Codigo, "Codigo_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idGrupoEnumeracion, "enumeraciones_gruposenumeraciones_idx"); + + entity.Property(e => e.idEnumeracion).HasColumnType("int(10)"); + entity.Property(e => e.Codigo).HasMaxLength(40); + entity.Property(e => e.Descripcion).HasMaxLength(200); + entity.Property(e => e.Fecha1).HasColumnType("datetime"); + entity.Property(e => e.Fecha2).HasColumnType("datetime"); + entity.Property(e => e.Fecha3).HasColumnType("datetime"); + entity.Property(e => e.Fecha4).HasColumnType("datetime"); + entity.Property(e => e.Orden).HasColumnType("int(11)"); + entity.Property(e => e.ValorAlfabetico1).HasMaxLength(40); + entity.Property(e => e.ValorAlfabetico2).HasMaxLength(40); + entity.Property(e => e.ValorAlfabetico3).HasMaxLength(40); + entity.Property(e => e.ValorAlfabetico4).HasMaxLength(40); + entity.Property(e => e.ValorAlfabeticoLargo).HasMaxLength(255); + entity.Property(e => e.idGrupoEnumeracion).HasColumnType("int(11)"); + + entity.HasOne(d => d.idGrupoEnumeracionNavigation).WithMany(p => p.enumeraciones) + .HasForeignKey(d => d.idGrupoEnumeracion) + .HasConstraintName("enumeraciones_gruposenumeraciones"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("epiban"); + + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.identidad) + .HasComment("tabla entidad") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idEstado).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.idSiniestroEIAC, e.NumeroOrden }, "UQ_idsiniestro_numeroorden").IsUnique(); + + entity.HasIndex(e => e.idSiniestroEIAC, "fk_estadossiniestroseiac_siniestroseiac_idx"); + + entity.Property(e => e.idEstado).HasColumnType("int(11)"); + entity.Property(e => e.DescripcionSituacion).HasMaxLength(45); + entity.Property(e => e.NumeroOrden).HasColumnType("int(11)"); + entity.Property(e => e.SituacionSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.idSiniestroEIAC).HasColumnType("int(11)"); + + entity.HasOne(d => d.idSiniestroEIACNavigation).WithMany(p => p.estadossiniestros_eiac) + .HasForeignKey(d => d.idSiniestroEIAC) + .HasConstraintName("fk_estadossiniestroseiac_siniestroseiac"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idExcepcion).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCompania, "excepcionesciasramos_companias_idx"); + + entity.HasIndex(e => e.idRamo, "excepcionesciasramos_ramos_idx"); + + entity.Property(e => e.idExcepcion).HasColumnType("int(11)"); + entity.Property(e => e.NumeroDiasRemesaPago).HasColumnType("int(11)"); + entity.Property(e => e.idCompania).HasColumnType("int(11)"); + entity.Property(e => e.idRamo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCompaniaNavigation).WithMany(p => p.excepcionesciasramos) + .HasForeignKey(d => d.idCompania) + .HasConstraintName("excepcionesciasramos_companias"); + + entity.HasOne(d => d.idRamoNavigation).WithMany(p => p.excepcionesciasramos) + .HasForeignKey(d => d.idRamo) + .HasConstraintName("excepcionesciasramos_ramos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idExpediente).HasName("PRIMARY"); + + entity.HasIndex(e => e.idAgente, "expedientes_agentes_idx"); + + entity.HasIndex(e => e.idFichero, "expedientesagentes_ficheros_idx"); + + entity.HasIndex(e => e.idUsuario, "expedientesagentes_usuarios_idx"); + + entity.Property(e => e.idExpediente).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion).HasMaxLength(225); + entity.Property(e => e.Fecha).HasColumnType("datetime"); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAgenteNavigation).WithMany(p => p.expedientesagentes) + .HasForeignKey(d => d.idAgente) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("expedientesagentes_agentes"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.expedientesagentes) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("expedientesagentes_ficheros"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.expedientesagentes) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("expedientesagentes_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idExpedientePoliza).HasName("PRIMARY"); + + entity.HasIndex(e => e.idTipo, "expedientespolizas_enumeraciones_idx"); + + entity.HasIndex(e => e.idPoliza, "expedientespolizas_polizassg_idx"); + + entity.HasIndex(e => e.idExpedientePoliza, "idExpedientePoliza_UNIQUE").IsUnique(); + + entity.Property(e => e.idExpedientePoliza).HasColumnType("int(11)"); + entity.Property(e => e.FechaHora).HasColumnType("datetime"); + entity.Property(e => e.Valor1Alfabetico).HasMaxLength(200); + entity.Property(e => e.Valor2Alfabetico).HasMaxLength(200); + entity.Property(e => e.Valor3Alfabetico).HasMaxLength(200); + entity.Property(e => e.Valor3Numerico).HasMaxLength(200); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idTipo) + .HasComment("tabla ") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idPolizaNavigation).WithMany(p => p.expedientespolizas) + .HasForeignKey(d => d.idPoliza) + .HasConstraintName("expedientespolizas_polizassg"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.expedientespolizas) + .HasForeignKey(d => d.idTipo) + .HasConstraintName("expedientespolizas_enumeraciones"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idExpedienteRecibo).HasName("PRIMARY"); + + entity.HasIndex(e => e.idTipo, "expedientesrecibos_enumeraciones_idx"); + + entity.HasIndex(e => e.idRecibo, "expedientesrecibos_recibos_idx"); + + entity.HasIndex(e => e.idExpedienteRecibo, "idExpedientePoliza_UNIQUE").IsUnique(); + + entity.Property(e => e.idExpedienteRecibo).HasColumnType("int(11)"); + entity.Property(e => e.FechaHora).HasColumnType("datetime"); + entity.Property(e => e.Valor1Alfabetico).HasMaxLength(200); + entity.Property(e => e.Valor2Alfabetico).HasMaxLength(200); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idTipo) + .HasComment("tabla ") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idReciboNavigation).WithMany(p => p.expedientesrecibos) + .HasForeignKey(d => d.idRecibo) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("expedientesrecibos_recibos"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.expedientesrecibos) + .HasForeignKey(d => d.idTipo) + .HasConstraintName("expedientesrecibos_enumeraciones"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idExpedienteEIAC).HasName("PRIMARY"); + + entity.HasIndex(e => e.idSiniestroEIAC, "fk_expedientessiniestroseiac_siniestroseiac_idx"); + + entity.Property(e => e.idExpedienteEIAC).HasColumnType("int(11)"); + entity.Property(e => e.EstadoExpediente).HasColumnType("int(11)"); + entity.Property(e => e.FechaFin).HasColumnType("datetime"); + entity.Property(e => e.FechaInicio).HasColumnType("datetime"); + entity.Property(e => e.NumeroExpediente).HasMaxLength(30); + entity.Property(e => e.NumeroOrden).HasColumnType("int(11)"); + entity.Property(e => e.idSiniestroEIAC).HasColumnType("int(11)"); + + entity.HasOne(d => d.idSiniestroEIACNavigation).WithMany(p => p.expedientessiniestros_eiac) + .HasForeignKey(d => d.idSiniestroEIAC) + .HasConstraintName("fk_expedientessiniestroseiac_siniestroseiac"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idExtracto).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCaja, "extracto_cajas_idx"); + + entity.HasIndex(e => e.idUsuario, "extracto_usuarios_idx"); + + entity.Property(e => e.idExtracto).HasColumnType("int(11)"); + entity.Property(e => e.FechaLectura).HasColumnType("datetime"); + entity.Property(e => e.idCaja).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCajaNavigation).WithMany(p => p.extractosbancarios) + .HasForeignKey(d => d.idCaja) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("extracto_cajas"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.extractosbancarios) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("extracto_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idFichero).HasName("PRIMARY"); + + entity.HasIndex(e => e.Descripcion, "Descripcion"); + + entity.HasIndex(e => e.Fecha, "Fecha"); + + entity.HasIndex(e => e.NombreFichero, "NombreFichero"); + + entity.HasIndex(e => e.idTipo, "fichero_tipo"); + + entity.HasIndex(e => new { e.idAplicacion, e.idTipo }, "idAplicacion"); + + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion) + .HasMaxLength(80) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Fecha).HasColumnType("datetime"); + entity.Property(e => e.NombreFichero) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Observaciones) + .HasMaxLength(255) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idAplicacion).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.ficheros) + .HasForeignKey(d => d.idTipo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("ficheros_tipo"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idFicheroAdjunto).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.idCorreo, "ficherosadjuntos_correos_idx"); + + entity.HasIndex(e => e.idFichero, "ficherosadjuntos_ficheros_idx"); + + entity.Property(e => e.idFicheroAdjunto).HasColumnType("int(11)"); + entity.Property(e => e.idCorreo).HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCorreoNavigation).WithMany(p => p.ficherosadjuntos) + .HasForeignKey(d => d.idCorreo) + .HasConstraintName("ficherosadjuntos_correos"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.ficherosadjuntos) + .HasForeignKey(d => d.idFichero) + .HasConstraintName("ficherosadjuntos_ficheros"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idFichero).HasName("PRIMARY"); + + entity.HasIndex(e => e.FechaError, "fechaerror_idx"); + + entity.HasIndex(e => e.FechaProcesado, "fechaprocesado_idx"); + + entity.HasIndex(e => e.SHA1, "ficheroscompanias_SHA1"); + + entity.HasIndex(e => e.idCompania, "ficheroscompanias_companias_idx"); + + entity.HasIndex(e => e.idUsuario, "ficheroscompanias_usuarios_idx"); + + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.FechaCreacion).HasColumnType("datetime"); + entity.Property(e => e.FechaError).HasColumnType("datetime"); + entity.Property(e => e.FechaProcesado).HasColumnType("datetime"); + entity.Property(e => e.NombreFichero).HasMaxLength(100); + entity.Property(e => e.Observaciones).HasMaxLength(100); + entity.Property(e => e.SHA1).HasMaxLength(40); + entity.Property(e => e.Tipo).HasColumnType("int(11)"); + entity.Property(e => e.Version).HasMaxLength(10); + entity.Property(e => e.idCompania).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCompaniaNavigation).WithMany(p => p.ficheroscompanias) + .HasForeignKey(d => d.idCompania) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("ficheroscompanias_companias"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.ficheroscompanias) + .HasForeignKey(d => d.idUsuario) + .HasConstraintName("ficheroscompanias_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idFicheroConfiguracion).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.Codigo, e.idUsuario, e.Descripcion }, "Codigo").IsUnique(); + + entity.Property(e => e.idFicheroConfiguracion).HasColumnType("int(11)"); + entity.Property(e => e.Codigo).HasMaxLength(100); + entity.Property(e => e.Configuracion).HasColumnType("mediumblob"); + entity.Property(e => e.Descripcion).HasMaxLength(100); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idGestionPoliza).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.idGestionVarias, "gestionespolizasagrario_gestionesvarias_idx"); + + entity.HasIndex(e => e.idPoliza, "gestionespolizasagrario_polizasagrario_idx"); + + entity.HasIndex(e => e.idTipo, "gestionespolizassg_01_tipos_idx"); + + entity.HasIndex(e => e.idUsuario, "gestionespolizassg_usuarios_idx"); + + entity.HasIndex(e => e.idGestionPoliza, "idGestionPoliza_UNIQUE").IsUnique(); + + entity.Property(e => e.idGestionPoliza).HasColumnType("int(11)"); + entity.Property(e => e.Fecha).HasColumnType("datetime"); + entity.Property(e => e.GestionesRealizadas) + .HasColumnType("mediumtext") + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Observaciones) + .HasMaxLength(500) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idGestionVarias).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idGestionVariasNavigation).WithMany(p => p.gestionespolizasagrario) + .HasForeignKey(d => d.idGestionVarias) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionespolizasagrario_gestionesvarias"); + + entity.HasOne(d => d.idPolizaNavigation).WithMany(p => p.gestionespolizasagrario) + .HasForeignKey(d => d.idPoliza) + .HasConstraintName("gestionespolizasagrario_polizasagrario"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.gestionespolizasagrario) + .HasForeignKey(d => d.idTipo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionespolizasagrario_01_tipos"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.gestionespolizasagrario) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionespolizasagrario_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idGestionPoliza).HasName("PRIMARY"); + + entity.HasIndex(e => e.idGestionVarias, "gestionespolizassg_gestionesvarias_idx"); + + entity.HasIndex(e => e.idPoliza, "gestionespolizassg_polizassg_idx"); + + entity.HasIndex(e => e.idUsuario, "gestionpolizassg_usuarios_idx"); + + entity.HasIndex(e => e.idTipo, "gestionspolizassg_01_tipos_idx"); + + entity.HasIndex(e => e.idGestionPoliza, "idGestionPoliza_UNIQUE").IsUnique(); + + entity.Property(e => e.idGestionPoliza).HasColumnType("int(11)"); + entity.Property(e => e.Fecha).HasColumnType("datetime"); + entity.Property(e => e.GestionesRealizadas).HasColumnType("mediumtext"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.idGestionVarias).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tablas usuarios") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idGestionVariasNavigation).WithMany(p => p.gestionespolizassg) + .HasForeignKey(d => d.idGestionVarias) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionespolizassg_gestionesvarias"); + + entity.HasOne(d => d.idPolizaNavigation).WithMany(p => p.gestionespolizassg) + .HasForeignKey(d => d.idPoliza) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("gestionespolizassg_recibos"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.gestionespolizassg) + .HasForeignKey(d => d.idTipo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionespolizassg_01_tipos"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.gestionespolizassg) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionespolizassg_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idGestionRecibo).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCorreo, "gestionesrecibos_correos_idx"); + + entity.HasIndex(e => e.idFichero, "gestionesrecibos_ficheros_idx"); + + entity.HasIndex(e => e.idMensaje, "gestionesrecibos_mensajes_idx"); + + entity.HasIndex(e => e.idRecibo, "gestionesrecibos_recibos_idx"); + + entity.HasIndex(e => e.idUsuario, "gestionrecibos_usuarios_idx"); + + entity.HasIndex(e => e.idGestionRecibo, "idGestionRecibo_UNIQUE").IsUnique(); + + entity.Property(e => e.idGestionRecibo).HasColumnType("int(11)"); + entity.Property(e => e.Fecha).HasColumnType("datetime"); + entity.Property(e => e.FormaComunicacion).HasColumnType("int(11)"); + entity.Property(e => e.GestionesRealizadas).HasColumnType("mediumtext"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.Tipo).HasColumnType("int(11)"); + entity.Property(e => e.idCorreo).HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idMensaje).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tablas usuarios") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idCorreoNavigation).WithMany(p => p.gestionesrecibos) + .HasForeignKey(d => d.idCorreo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionesrecibos_correos"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.gestionesrecibos) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionesrecibos_ficheros"); + + entity.HasOne(d => d.idMensajeNavigation).WithMany(p => p.gestionesrecibos) + .HasForeignKey(d => d.idMensaje) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionesrecibos_mensajes"); + + entity.HasOne(d => d.idReciboNavigation).WithMany(p => p.gestionesrecibos) + .HasForeignKey(d => d.idRecibo) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("gestionesrecibos_recibos"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.gestionesrecibos) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionesrecibos_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idGestionSiniestro).HasName("PRIMARY"); + + entity.HasIndex(e => e.idTipo, "gestionessiniestros_enumeraciones_idx"); + + entity.HasIndex(e => e.idFichero, "gestionessiniestros_ficheros_idx"); + + entity.HasIndex(e => e.idSiniestro, "gestionessiniestros_siniestros_idx"); + + entity.HasIndex(e => e.idUsuarioCreador, "gestionessiniestros_usuariocreador_idx"); + + entity.HasIndex(e => e.idUsuarioModificador, "gestionessiniestros_usuariomodificador_idx"); + + entity.HasIndex(e => e.idGestionSiniestro, "idGestionSiniestro_UNIQUE").IsUnique(); + + entity.Property(e => e.idGestionSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.FechaIntroduccion).HasColumnType("datetime"); + entity.Property(e => e.FechaModificacion).HasColumnType("datetime"); + entity.Property(e => e.GestionesRealizadas).HasMaxLength(500); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.idTipo) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioCreador).HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioModificador).HasColumnType("int(11)"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.gestionessiniestros) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionessiniestros_ficheros"); + + entity.HasOne(d => d.idSiniestroNavigation).WithMany(p => p.gestionessiniestros) + .HasForeignKey(d => d.idSiniestro) + .HasConstraintName("gestionessiniestros_siniestros"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.gestionessiniestros) + .HasForeignKey(d => d.idTipo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionessiniestros_tiposgestionsiniestros"); + + entity.HasOne(d => d.idUsuarioCreadorNavigation).WithMany(p => p.gestionessiniestrosidUsuarioCreadorNavigation) + .HasForeignKey(d => d.idUsuarioCreador) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionessiniestros_usuariocreador"); + + entity.HasOne(d => d.idUsuarioModificadorNavigation).WithMany(p => p.gestionessiniestrosidUsuarioModificadorNavigation) + .HasForeignKey(d => d.idUsuarioModificador) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionessiniestros_usuariomodificador"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idGestion).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.idTipo, "gestionesvarias_01_tipo_idx"); + + entity.HasIndex(e => e.idCorreo, "gestionesvarias_correos_idx"); + + entity.HasIndex(e => e.idFichero, "gestionesvarias_ficheros_idx"); + + entity.Property(e => e.idGestion).HasColumnType("int(11)"); + entity.Property(e => e.Descripción) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.FechaCreacion).HasColumnType("datetime"); + entity.Property(e => e.FechaProcesado).HasColumnType("datetime"); + entity.Property(e => e.Parametros) + .HasMaxLength(100) + .UseCollation("utf8_general_ci"); + entity.Property(e => e.idAplicacion).HasColumnType("int(11)"); + entity.Property(e => e.idCorreo).HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCorreoNavigation).WithMany(p => p.gestionesvarias) + .HasForeignKey(d => d.idCorreo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionesvarias_correos"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.gestionesvarias) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("gestionesvarias_ficheros"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.gestionesvarias) + .HasForeignKey(d => d.idTipo) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("gestionesvarias_01_tipo"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idGrupoBD).HasName("PRIMARY"); + + entity.HasIndex(e => e.Descripcion, "Descripcion_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idGrupoBD, "idgrupobd").IsUnique(); + + entity.Property(e => e.idGrupoBD).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idGrupoEnumeracion).HasName("PRIMARY"); + + entity.Property(e => e.idGrupoEnumeracion).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion) + .HasMaxLength(60) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Grupo) + .HasMaxLength(20) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idGruposMenus).HasName("PRIMARY"); + + entity.HasIndex(e => e.Descripcion, "Descripcion_UNIQUE").IsUnique(); + + entity.Property(e => e.idGruposMenus).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idGrupo).HasName("PRIMARY"); + + entity.HasIndex(e => e.Descripcion, "Descripcion_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idGrupoMenu, "GrupoUsuarios_GrupoMenus_idx"); + + entity.Property(e => e.idGrupo).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idGrupoMenu).HasColumnType("int(11)"); + + entity.HasOne(d => d.idGrupoMenuNavigation).WithMany(p => p.gruposusuarios) + .HasForeignKey(d => d.idGrupoMenu) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("GrupoUsuarios_GrupoMenus"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idHistoricoComisiones).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCodigoAgente, "historicoComisiones_agente_idx"); + + entity.HasIndex(e => e.idPolizaAgrario, "historicomisiones_polizasagrario_idx"); + + entity.Property(e => e.idHistoricoComisiones).HasColumnType("int(11)"); + entity.Property(e => e.Ano).HasColumnType("int(11)"); + entity.Property(e => e.Fase).HasMaxLength(10); + entity.Property(e => e.Mes).HasColumnType("int(11)"); + entity.Property(e => e.dia).HasColumnType("int(11)"); + entity.Property(e => e.idCodigoAgente).HasColumnType("int(11)"); + entity.Property(e => e.idPolizaAgrario).HasColumnType("int(11)"); + entity.Property(e => e.nombreFichero).HasMaxLength(200); + entity.Property(e => e.numeroLiquidacion).HasMaxLength(200); + + entity.HasOne(d => d.idCodigoAgenteNavigation).WithMany(p => p.historicocomisiones) + .HasForeignKey(d => d.idCodigoAgente) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("historicoComisiones_agente"); + + entity.HasOne(d => d.idPolizaAgrarioNavigation).WithMany(p => p.historicocomisiones) + .HasForeignKey(d => d.idPolizaAgrario) + .HasConstraintName("historicomisiones_polizasagrario"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idIncentivo).HasName("PRIMARY"); + + entity.HasIndex(e => e.idAgente, "incentivos_agentes_idx"); + + entity.HasIndex(e => e.idCompania, "incentivos_companias_idx"); + + entity.Property(e => e.idIncentivo).HasColumnType("int(11)"); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idCompania).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAgenteNavigation).WithMany(p => p.incentivos) + .HasForeignKey(d => d.idAgente) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("incentivos_agentes"); + + entity.HasOne(d => d.idCompaniaNavigation).WithMany(p => p.incentivos) + .HasForeignKey(d => d.idCompania) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("incentivos_companias"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idInforme).HasName("PRIMARY"); + + entity.HasIndex(e => e.Codigo, "Codigo_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.Descripcion, "Descripcion_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idFichero, "informescontables_ficheros_idx"); + + entity.Property(e => e.idInforme).HasColumnType("int(11)"); + entity.Property(e => e.Codigo).HasMaxLength(10); + entity.Property(e => e.Descripcion).HasMaxLength(100); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.informescontables) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("informescontables_ficheros"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idliquidacionesagenterecibo).HasName("PRIMARY"); + + entity.HasIndex(e => e.idLiquidacionesAgente, "liquidacionesagenterecibos_liquidacionesagente_idx"); + + entity.HasIndex(e => e.idRecibo, "liquidacionesagenterecibos_recibos_idx"); + + entity.HasIndex(e => e.idRegularizacion, "liquidacionesagentesrecibos_regularizacionespagoagentes_idx"); + + entity.Property(e => e.idliquidacionesagenterecibo).HasColumnType("int(11)"); + entity.Property(e => e.Importe).HasDefaultValueSql("'0'"); + entity.Property(e => e.idLiquidacionesAgente).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idRegularizacion).HasColumnType("int(11)"); + + entity.HasOne(d => d.idLiquidacionesAgenteNavigation).WithMany(p => p.liquidacionesagenterecibos) + .HasForeignKey(d => d.idLiquidacionesAgente) + .HasConstraintName("liquidacionesagenterecibos_liquidacionesagente"); + + entity.HasOne(d => d.idReciboNavigation).WithMany(p => p.liquidacionesagenterecibos) + .HasForeignKey(d => d.idRecibo) + .HasConstraintName("liquidacionesagenterecibos_recibos"); + + entity.HasOne(d => d.idRegularizacionNavigation).WithMany(p => p.liquidacionesagenterecibos) + .HasForeignKey(d => d.idRegularizacion) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("liquidacionesagentesrecibos_regularizacionespagoagentes"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idLiquidacionAgente).HasName("PRIMARY"); + + entity.HasIndex(e => e.NumeroFactura, "NumeroFactura_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idSerieFactura, "liquidacioensagentes_seriesfacturas_idx"); + + entity.HasIndex(e => e.idAgente, "liquidacionesagentes_agentes_idx"); + + entity.HasIndex(e => e.idAsiento, "liquidacionesagentes_asientos_idx"); + + entity.HasIndex(e => e.IdCorreo, "liquidacionesagentes_correos_idx"); + + entity.HasIndex(e => new { e.Fecha, e.ReferenciaHP }, "liquidacionesagentes_fecha"); + + entity.HasIndex(e => e.idFicheroSEPA, "liquidacionesagentes_ficheros_idx"); + + entity.HasIndex(e => e.idLiquidacionRectificativa, "liquidacionesagentes_liquidacionrectificativa_idx"); + + entity.HasIndex(e => e.idTipoLiquidacion, "liquidacionesagentes_tipo_idx"); + + entity.Property(e => e.idLiquidacionAgente).HasColumnType("int(11)"); + entity.Property(e => e.BrutoComisiones).HasColumnType("int(11)"); + entity.Property(e => e.CIF).HasMaxLength(10); + entity.Property(e => e.IdCorreo).HasColumnType("int(11)"); + entity.Property(e => e.NumeroFactura).HasMaxLength(16); + entity.Property(e => e.NumeroGeneracion).HasColumnType("int(11)"); + entity.Property(e => e.RazonSocial).HasMaxLength(100); + entity.Property(e => e.ReferenciaHP).HasMaxLength(10); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsiento).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroSEPA).HasColumnType("int(11)"); + entity.Property(e => e.idLiquidacionRectificativa).HasColumnType("int(11)"); + entity.Property(e => e.idSerieFactura).HasColumnType("int(11)"); + entity.Property(e => e.idTipoLiquidacion).HasColumnType("int(11)"); + + entity.HasOne(d => d.IdCorreoNavigation).WithMany(p => p.liquidacionesagentes) + .HasForeignKey(d => d.IdCorreo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("liquidacionesagentes_correos"); + + entity.HasOne(d => d.idAgenteNavigation).WithMany(p => p.liquidacionesagentes) + .HasForeignKey(d => d.idAgente) + .HasConstraintName("liquidacionesagentes_agentes"); + + entity.HasOne(d => d.idAsientoNavigation).WithMany(p => p.liquidacionesagentes) + .HasForeignKey(d => d.idAsiento) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("liquidacionesagentes_asientos"); + + entity.HasOne(d => d.idFicheroSEPANavigation).WithMany(p => p.liquidacionesagentes) + .HasForeignKey(d => d.idFicheroSEPA) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("liquidacionesagentes_ficheros"); + + entity.HasOne(d => d.idLiquidacionRectificativaNavigation).WithMany(p => p.InverseidLiquidacionRectificativaNavigation) + .HasForeignKey(d => d.idLiquidacionRectificativa) + .HasConstraintName("liquidacionesagentes_liquidacionrectificativa"); + + entity.HasOne(d => d.idSerieFacturaNavigation).WithMany(p => p.liquidacionesagentes) + .HasForeignKey(d => d.idSerieFactura) + .HasConstraintName("liquidacioensagentes_seriesfacturas"); + + entity.HasOne(d => d.idTipoLiquidacionNavigation).WithMany(p => p.liquidacionesagentes) + .HasForeignKey(d => d.idTipoLiquidacion) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("liquidacionesagentes_tipo"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idLiquidacionCia).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.Fecha, e.ReferenciaHP }, "liquidacionescompanias_Fecha"); + + entity.HasIndex(e => e.idAsiento, "liquidacionescompanias_asientos_idx"); + + entity.HasIndex(e => e.idPagoLiquidacionCia, "liquidacionescompanias_pagosliquidacionescia_idx"); + + entity.HasIndex(e => e.idTipoLiquidacion, "liquidacionescompanias_tipo_idx"); + + entity.Property(e => e.idLiquidacionCia).HasColumnType("int(11)"); + entity.Property(e => e.NumeroGeneracion).HasColumnType("int(11)"); + entity.Property(e => e.ReferenciaHP).HasMaxLength(10); + entity.Property(e => e.idAsiento).HasColumnType("int(11)"); + entity.Property(e => e.idPagoLiquidacionCia).HasColumnType("int(11)"); + entity.Property(e => e.idTipoLiquidacion).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAsientoNavigation).WithMany(p => p.liquidacionescompanias) + .HasForeignKey(d => d.idAsiento) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("liquidacionescompanias_asientos"); + + entity.HasOne(d => d.idPagoLiquidacionCiaNavigation).WithMany(p => p.liquidacionescompanias) + .HasForeignKey(d => d.idPagoLiquidacionCia) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("liquidacionescompanias_pagosliquidacionescia"); + + entity.HasOne(d => d.idTipoLiquidacionNavigation).WithMany(p => p.liquidacionescompanias) + .HasForeignKey(d => d.idTipoLiquidacion) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("liquidacionescompanias_tipo"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idLiquidacionesCiaRecibo).HasName("PRIMARY"); + + entity.HasIndex(e => e.idLiquidacionCia, "liquidacionescompañiasrecibos_liquidacionescompañias_idx"); + + entity.HasIndex(e => e.idRecibo, "liquidacionescompañiasrecibos_recibos_idx"); + + entity.Property(e => e.idLiquidacionesCiaRecibo).HasColumnType("int(11)"); + entity.Property(e => e.Importe).HasDefaultValueSql("'0'"); + entity.Property(e => e.idLiquidacionCia).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idLiquidacionCiaNavigation).WithMany(p => p.liquidacionescompaniasrecibos) + .HasForeignKey(d => d.idLiquidacionCia) + .HasConstraintName("liquidacionescompañiasrecibos_liquidacionescompañias"); + + entity.HasOne(d => d.idReciboNavigation).WithMany(p => p.liquidacionescompaniasrecibos) + .HasForeignKey(d => d.idRecibo) + .HasConstraintName("liquidacionescompañiasrecibos_recibos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idLiquidacionesViajes).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.ConCargoA, "liquidacionesviajes_concargoa_idx"); + + entity.HasIndex(e => e.idUsuario, "liquidacionesviajes_usuarios_idx"); + + entity.Property(e => e.idLiquidacionesViajes).HasColumnType("int(11)"); + entity.Property(e => e.ConCargoA).HasColumnType("int(11)"); + entity.Property(e => e.FechaIntroduccion).HasColumnType("datetime"); + entity.Property(e => e.FechaLlegada).HasColumnType("datetime"); + entity.Property(e => e.FechaSalida).HasColumnType("datetime"); + entity.Property(e => e.Informe) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.ConCargoANavigation).WithMany(p => p.liquidacionesviajes) + .HasForeignKey(d => d.ConCargoA) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("liquidacionesviajes_concargoa"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.liquidacionesviajes) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("liquidacionesviajes_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idLog).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.Aplicacion, e.Tipo }, "Aplicacion"); + + entity.HasIndex(e => new { e.id, e.Aplicacion }, "id"); + + entity.HasIndex(e => e.idLog, "idLog").IsUnique(); + + entity.HasIndex(e => e.idRelacionado, "idRelacionado"); + + entity.Property(e => e.idLog).HasColumnType("int(11)"); + entity.Property(e => e.Aplicacion).HasMaxLength(50); + entity.Property(e => e.FechaHora).HasColumnType("datetime"); + entity.Property(e => e.Tabla).HasMaxLength(50); + entity.Property(e => e.Tipo).HasMaxLength(20); + entity.Property(e => e.Usuario).HasMaxLength(50); + entity.Property(e => e.id).HasColumnType("int(11)"); + entity.Property(e => e.idConexion).HasColumnType("int(11)"); + entity.Property(e => e.idRelacionado).HasColumnType("int(11)"); + entity.Property(e => e.ip).HasMaxLength(100); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idMensaje).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.Aplicacion, e.idAplicacion }, "AplicacionId"); + + entity.HasIndex(e => e.idUsuario, "mensajes_usuarios_idx"); + + entity.Property(e => e.idMensaje).HasColumnType("int(11)"); + entity.Property(e => e.Aplicacion).HasMaxLength(20); + entity.Property(e => e.Cuenta).HasMaxLength(40); + entity.Property(e => e.Destinatario).HasMaxLength(40); + entity.Property(e => e.FechaAnulacion).HasColumnType("datetime"); + entity.Property(e => e.FechaAvisoError).HasColumnType("datetime"); + entity.Property(e => e.FechaCreacion).HasColumnType("datetime"); + entity.Property(e => e.FechaEnvio).HasColumnType("datetime"); + entity.Property(e => e.FechaUltimoIntento).HasColumnType("datetime"); + entity.Property(e => e.Mensaje).HasMaxLength(512); + entity.Property(e => e.Remitente).HasMaxLength(40); + entity.Property(e => e.RespuestaServicio).HasMaxLength(1024); + entity.Property(e => e.idAplicacion).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.mensajes) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("mensajes_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idMenus).HasName("PRIMARY"); + + entity.HasIndex(e => e.idGrupoMenu, "idGrupoMenu"); + + entity.HasIndex(e => e.idPermiso, "menus_permisos_idx"); + + entity.Property(e => e.idMenus).HasColumnType("int(11)"); + entity.Property(e => e.Accion) + .HasMaxLength(500) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Ayuda) + .HasMaxLength(255) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Orden).HasColumnType("int(11)"); + entity.Property(e => e.Texto) + .HasMaxLength(60) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idGrupoMenu).HasColumnType("int(11)"); + entity.Property(e => e.idMenuPadre).HasColumnType("int(11)"); + entity.Property(e => e.idPermiso).HasColumnType("int(11)"); + + entity.HasOne(d => d.idGrupoMenuNavigation).WithMany(p => p.menus) + .HasForeignKey(d => d.idGrupoMenu) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("Menus_GruposMenus"); + + entity.HasOne(d => d.idPermisoNavigation).WithMany(p => p.menus) + .HasForeignKey(d => d.idPermiso) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("menus_permisos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idModificacionPolizasAgrario).HasName("PRIMARY"); + + entity.HasIndex(e => e.idTipoModificacion, "modificaciones_enumeraciones_idx"); + + entity.HasIndex(e => e.idLinea, "modificaciones_planeslineas_idx"); + + entity.HasIndex(e => e.idPolizaAgrario, "modificacionespolizasagrario_polizasagrario_idx"); + + entity.Property(e => e.idModificacionPolizasAgrario).HasColumnType("int(11)"); + entity.Property(e => e.idLinea).HasColumnType("int(11)"); + entity.Property(e => e.idPolizaAgrario).HasColumnType("int(11)"); + entity.Property(e => e.idTipoModificacion).HasColumnType("int(11)"); + + entity.HasOne(d => d.idLineaNavigation).WithMany(p => p.modificacionespolizasagrario) + .HasForeignKey(d => d.idLinea) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("modificaciones_planeslineas"); + + entity.HasOne(d => d.idPolizaAgrarioNavigation).WithMany(p => p.modificacionespolizasagrario) + .HasForeignKey(d => d.idPolizaAgrario) + .HasConstraintName("modificacionespolizasagrario_polizasagrario"); + + entity.HasOne(d => d.idTipoModificacionNavigation).WithMany(p => p.modificacionespolizasagrario) + .HasForeignKey(d => d.idTipoModificacion) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("modificaciones_enumeraciones"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idMovimientoBancario).HasName("PRIMARY"); + + entity.HasIndex(e => e.idConciliacion, "movimientosbancarios_conciliacionesbancarias_idx"); + + entity.HasIndex(e => e.idExtractoBancario, "movimientosbancarios_extractosbancarios_idx"); + + entity.Property(e => e.idMovimientoBancario) + .ValueGeneratedNever() + .HasColumnType("int(11)"); + entity.Property(e => e.CodigoConcepto).HasMaxLength(2); + entity.Property(e => e.ConceptoPropio).HasMaxLength(3); + entity.Property(e => e.Detalle).HasMaxLength(500); + entity.Property(e => e.NumeroDocumento).HasMaxLength(10); + entity.Property(e => e.ReferenciaBanco).HasMaxLength(12); + entity.Property(e => e.idConciliacion).HasColumnType("int(11)"); + entity.Property(e => e.idExtractoBancario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idConciliacionNavigation).WithMany(p => p.movimientosbancarios) + .HasForeignKey(d => d.idConciliacion) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("movimientosbancarios_conciliacionesbancarias"); + + entity.HasOne(d => d.idExtractoBancarioNavigation).WithMany(p => p.movimientosbancarios) + .HasForeignKey(d => d.idExtractoBancario) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("movimientosbancarios_extractosbancarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.CodigoMunicipio).HasName("PRIMARY"); + + entity.HasIndex(e => e.CodigoComarca, "municipios_comarcas_idx"); + + entity.HasIndex(e => e.CodigoProvincia, "municipios_provincias_idx"); + + entity.Property(e => e.CodigoMunicipio).HasMaxLength(10); + entity.Property(e => e.CodigoComarca).HasMaxLength(6); + entity.Property(e => e.CodigoProvincia).HasMaxLength(2); + entity.Property(e => e.DC).HasMaxLength(2); + entity.Property(e => e.Nombre).HasMaxLength(80); + + entity.HasOne(d => d.CodigoComarcaNavigation).WithMany(p => p.municipios) + .HasForeignKey(d => d.CodigoComarca) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("municipios_comarcas"); + + entity.HasOne(d => d.CodigoProvinciaNavigation).WithMany(p => p.municipios) + .HasForeignKey(d => d.CodigoProvincia) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("municipios_provincias"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idNotificacion).HasName("PRIMARY"); + + entity.HasIndex(e => e.FechaNotificado, "idx_FechaNotificado"); + + entity.HasIndex(e => e.idFichero, "notificaciones_ficheros_idx"); + + entity.Property(e => e.idNotificacion).HasColumnType("int(11)"); + entity.Property(e => e.Descripcion).HasMaxLength(255); + entity.Property(e => e.FechaCreacion).HasColumnType("datetime"); + entity.Property(e => e.FechaNotificado).HasColumnType("datetime"); + entity.Property(e => e.Tipo).HasColumnType("int(11)"); + entity.Property(e => e.TipoEntidad).HasColumnType("int(11)"); + entity.Property(e => e.idEntidad).HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.notificaciones) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("notificaciones_ficheros"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idPago).HasName("PRIMARY"); + + entity.HasIndex(e => e.FechaPago, "FechaPago"); + + entity.HasIndex(e => e.idAsiento, "pagosliquidacionescia_asientos_idx"); + + entity.HasIndex(e => e.idCia, "pagosliquidacionescia_companias_idx"); + + entity.HasIndex(e => e.idCorreo, "pagosliquidacionescia_correos_idx"); + + entity.HasIndex(e => e.idFicheroSEPA, "pagosliquidacionescia_ficheros_idx"); + + entity.Property(e => e.idPago).HasColumnType("int(11)"); + entity.Property(e => e.DescripcionRegularizacion).HasMaxLength(255); + entity.Property(e => e.FechaCreacion).HasColumnType("datetime"); + entity.Property(e => e.FechaPago).HasColumnType("datetime"); + entity.Property(e => e.idAsiento).HasColumnType("int(11)"); + entity.Property(e => e.idCia).HasColumnType("int(11)"); + entity.Property(e => e.idCorreo).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroSEPA).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAsientoNavigation).WithMany(p => p.pagosliquidacionescias) + .HasForeignKey(d => d.idAsiento) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("pagosliquidacionescias_asientos"); + + entity.HasOne(d => d.idCiaNavigation).WithMany(p => p.pagosliquidacionescias) + .HasForeignKey(d => d.idCia) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("pagosliquidacionescias_cias"); + + entity.HasOne(d => d.idCorreoNavigation).WithMany(p => p.pagosliquidacionescias) + .HasForeignKey(d => d.idCorreo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("pagosliquidacionescias_correos"); + + entity.HasOne(d => d.idFicheroSEPANavigation).WithMany(p => p.pagosliquidacionescias) + .HasForeignKey(d => d.idFicheroSEPA) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("pagosliquidacionescias_ficheros"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idPago).HasName("PRIMARY"); + + entity.HasIndex(e => new { e.idSiniestroEIAC, e.NumeroOrden }, "UQ_idSiniestro_NumeroOrden").IsUnique(); + + entity.HasIndex(e => e.idTipoPago, "fk_pagossiniestroseiac_enumeracinoes_idx"); + + entity.HasIndex(e => e.idSiniestroEIAC, "fk_pagossiniestroseiac_siniestroseiac_idx"); + + entity.Property(e => e.idPago).HasColumnType("int(11)"); + entity.Property(e => e.DescripcionPago).HasMaxLength(255); + entity.Property(e => e.FechaLiquidacion).HasColumnType("datetime"); + entity.Property(e => e.FechaPago).HasColumnType("datetime"); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.NumeroOrden).HasColumnType("int(11)"); + entity.Property(e => e.idSiniestroEIAC).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + + entity.HasOne(d => d.idSiniestroEIACNavigation).WithMany(p => p.pagossiniestros_eiac) + .HasForeignKey(d => d.idSiniestroEIAC) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("fk_pagossiniestroseiac_siniestroseiac"); + + entity.HasOne(d => d.idTipoPagoNavigation).WithMany(p => p.pagossiniestros_eiac) + .HasForeignKey(d => d.idTipoPago) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("fk_pagossiniestroseiac_enumeracinoes"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idPago).HasName("PRIMARY"); + + entity.HasIndex(e => e.FechaPagoRecibo, "FechaPagoRecibo"); + + entity.HasIndex(e => e.idEmailAvisoAPagador, "idEmailAvisoAPagador"); + + entity.HasIndex(e => e.idEmailAvisoContabilidad, "idEmailAvisoContabilidad"); + + entity.HasIndex(e => e.idRecibo, "pagostelematicos_recibos_idx"); + + entity.Property(e => e.idPago).HasColumnType("int(11)"); + entity.Property(e => e.CodigoConfirmacionPago).HasMaxLength(45); + entity.Property(e => e.DNI).HasMaxLength(20); + entity.Property(e => e.EmailConfirmacionPago).HasMaxLength(200); + entity.Property(e => e.FechaConfirmacionPasarela).HasColumnType("datetime"); + entity.Property(e => e.FechaCreacion).HasColumnType("datetime"); + entity.Property(e => e.FechaErrorPasarela).HasColumnType("datetime"); + entity.Property(e => e.FechaPagoRecibo).HasColumnType("datetime"); + entity.Property(e => e.OrigenPago).HasColumnType("int(11)"); + entity.Property(e => e.Referencia).HasMaxLength(100); + entity.Property(e => e.RespuestaPasarela).HasMaxLength(4096); + entity.Property(e => e.Telefono).HasMaxLength(20); + entity.Property(e => e.idEmailAvisoAPagador).HasColumnType("int(11)"); + entity.Property(e => e.idEmailAvisoContabilidad).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idReciboNavigation).WithMany(p => p.pagostelematicos) + .HasForeignKey(d => d.idRecibo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("pagostelematicos_recibos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idPermiso).HasName("PRIMARY"); + + entity.HasIndex(e => e.CodigoPermiso, "CodigoPermiso_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.Descripcion, "Descripcion_UNIQUE").IsUnique(); + + entity.Property(e => e.idPermiso).HasColumnType("int(11)"); + entity.Property(e => e.CodigoPermiso) + .HasMaxLength(50) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Descripcion) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idpersonadecontactoAgentes).HasName("PRIMARY"); + + entity.HasIndex(e => e.idpersonadecontactoAgentes, "idpersonadecontactoAgentes_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idAgente, "personasdecontacto_agentes_idx"); + + entity.HasIndex(e => e.idCargo, "personasdecontacto_cargo_idx"); + + entity.Property(e => e.idpersonadecontactoAgentes).HasColumnType("int(11)"); + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.Nombre).HasMaxLength(80); + entity.Property(e => e.Telefono1).HasMaxLength(20); + entity.Property(e => e.Telefono2).HasMaxLength(20); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idCargo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAgenteNavigation).WithMany(p => p.personasdecontactoagentes) + .HasForeignKey(d => d.idAgente) + .HasConstraintName("personasdecontacto_agentes"); + + entity.HasOne(d => d.idCargoNavigation).WithMany(p => p.personasdecontactoagentes) + .HasForeignKey(d => d.idCargo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("personasdecontacto_cargo"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idPersonasdecontactoCompanias).HasName("PRIMARY"); + + entity.HasIndex(e => e.idPersonasdecontactoCompanias, "idPersonasdecontactoCompañia_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idCompania, "personasdecontactocompañia_idx"); + + entity.Property(e => e.idPersonasdecontactoCompanias).HasColumnType("int(11)"); + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.Nombre).HasMaxLength(80); + entity.Property(e => e.Telefono1).HasMaxLength(20); + entity.Property(e => e.Telefono2).HasMaxLength(20); + entity.Property(e => e.departamento).HasMaxLength(100); + entity.Property(e => e.idCargo).HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla Compañia") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idCompaniaNavigation).WithMany(p => p.personasdecontactocompanias) + .HasForeignKey(d => d.idCompania) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("personasdecontactocompañia"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idPersonasdeContactoEntidades).HasName("PRIMARY"); + + entity.HasIndex(e => e.idPersonasdeContactoEntidades, "idPersonasdecontactoEntidad_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idEntidad, "personasdecontactoEntidad_idx"); + + entity.Property(e => e.idPersonasdeContactoEntidades).HasColumnType("int(11)"); + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.Nombre).HasMaxLength(80); + entity.Property(e => e.Telefono1).HasMaxLength(20); + entity.Property(e => e.Telefono2).HasMaxLength(20); + entity.Property(e => e.departamento).HasMaxLength(100); + entity.Property(e => e.idCargo).HasColumnType("int(11)"); + entity.Property(e => e.idEntidad) + .HasComment("tabla Entidad") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idEntidadNavigation).WithMany(p => p.personasdecontactoentidades) + .HasForeignKey(d => d.idEntidad) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("personasdecontactoEntidad"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idpeticionescontrasena).HasName("PRIMARY"); + + entity.Property(e => e.idpeticionescontrasena).HasColumnType("int(11)"); + entity.Property(e => e.ContrasenaProvisional).HasMaxLength(45); + entity.Property(e => e.DNI).HasMaxLength(45); + entity.Property(e => e.FechaCambio).HasColumnType("datetime"); + entity.Property(e => e.FechaExpiracion).HasColumnType("datetime"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idPeticion).HasName("PRIMARY"); + + entity.Property(e => e.idPeticion).HasColumnType("int(11)"); + entity.Property(e => e.CSV).HasMaxLength(64); + entity.Property(e => e.Estado).HasColumnType("int(11)"); + entity.Property(e => e.FechaHoraPeticion).HasColumnType("datetime"); + entity.Property(e => e.FechaHoraRespuesta).HasColumnType("datetime"); + entity.Property(e => e.Peticion).HasColumnType("mediumblob"); + entity.Property(e => e.Respuesta).HasColumnType("mediumblob"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idPlanLineas).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.idPlanLineas, "idPlanLineas_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idGrupo, "planeslineas_enumeraciones_idx"); + + entity.Property(e => e.idPlanLineas).HasColumnType("int(11)"); + entity.Property(e => e.anoContabilidad).HasColumnType("int(11)"); + entity.Property(e => e.descripcion) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idGrupo).HasColumnType("int(11)"); + entity.Property(e => e.planLinea) + .HasMaxLength(10) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.trimestreContabilidad).HasColumnType("int(11)"); + + entity.HasOne(d => d.idGrupoNavigation).WithMany(p => p.planeslineas) + .HasForeignKey(d => d.idGrupo) + .HasConstraintName("planeslineas_enumeraciones_01_Grupo"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idPlantilla).HasName("PRIMARY"); + + entity.HasIndex(e => e.Codigo, "Codigo_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.Descripcion, "DescripcionPlantilla_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idFichero, "plantillas_ficheros_idx"); + + entity.HasIndex(e => e.idGrupo, "plantillas_grupo_idx"); + + entity.HasIndex(e => e.idPermiso, "plantillas_permisos_idx"); + + entity.HasIndex(e => e.idTipo, "plantillas_tipo_idx"); + + entity.Property(e => e.idPlantilla).HasColumnType("int(11)"); + entity.Property(e => e.Codigo) + .HasMaxLength(30) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Descripcion) + .HasMaxLength(80) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Observaciones) + .HasMaxLength(255) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.TipoListado).HasDefaultValueSql("b'0'"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idGrupo).HasColumnType("int(11)"); + entity.Property(e => e.idPermiso).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.plantillas) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("plantillas_ficheros"); + + entity.HasOne(d => d.idGrupoNavigation).WithMany(p => p.plantillasidGrupoNavigation) + .HasForeignKey(d => d.idGrupo) + .HasConstraintName("plantillas_grupo"); + + entity.HasOne(d => d.idPermisoNavigation).WithMany(p => p.plantillas) + .HasForeignKey(d => d.idPermiso) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("plantillas_permisos"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.plantillasidTipoNavigation) + .HasForeignKey(d => d.idTipo) + .HasConstraintName("plantillas_tipo"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("polizas_avant2"); + + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.DescripcionSuplemento).HasMaxLength(300); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.FechaDocumentosSuplementoRevisado).HasColumnType("datetime"); + entity.Property(e => e.FechaModificacion).HasColumnType("datetime"); + entity.Property(e => e.Garantias).HasMaxLength(300); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroDirectorio).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(300); + entity.Property(e => e.ReferenciaAsegasa).HasMaxLength(20); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idModelo) + .HasComment("Tabla Modelos") + .HasColumnType("int(11)"); + entity.Property(e => e.idMultitarificador) + .HasComment("Numero de poliza del multitarificador") + .HasColumnType("int(11)"); + entity.Property(e => e.idOrigenPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tabla usuarios, quien da de alta") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("polizas_avant2_agente3"); + + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.DescripcionSuplemento).HasMaxLength(300); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.FechaDocumentosSuplementoRevisado).HasColumnType("datetime"); + entity.Property(e => e.FechaModificacion).HasColumnType("datetime"); + entity.Property(e => e.Garantias).HasMaxLength(300); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroDirectorio).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(300); + entity.Property(e => e.ReferenciaAsegasa).HasMaxLength(20); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idModelo) + .HasComment("Tabla Modelos") + .HasColumnType("int(11)"); + entity.Property(e => e.idMultitarificador) + .HasComment("Numero de poliza del multitarificador") + .HasColumnType("int(11)"); + entity.Property(e => e.idOrigenPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tabla usuarios, quien da de alta") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("polizas_avant2_ramos"); + + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.DescripcionSuplemento).HasMaxLength(300); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.FechaDocumentosSuplementoRevisado).HasColumnType("datetime"); + entity.Property(e => e.FechaModificacion).HasColumnType("datetime"); + entity.Property(e => e.Garantias).HasMaxLength(300); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroDirectorio).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(300); + entity.Property(e => e.ReferenciaAsegasa).HasMaxLength(20); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idModelo) + .HasComment("Tabla Modelos") + .HasColumnType("int(11)"); + entity.Property(e => e.idMultitarificador) + .HasComment("Numero de poliza del multitarificador") + .HasColumnType("int(11)"); + entity.Property(e => e.idOrigenPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tabla usuarios, quien da de alta") + .HasColumnType("int(11)"); + entity.Property(e => e.ramos_Descripcion) + .HasMaxLength(150) + .HasColumnName("ramos.Descripcion"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idPolizaAgrario).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.idAgente, "polizasagrario_Agente_idx"); + + entity.HasIndex(e => e.idCia, "polizasagrario_cia_idx"); + + entity.HasIndex(e => e.idColectivo, "polizasagrario_colectivos_idx"); + + entity.HasIndex(e => e.idDomicilioAsegurado, "polizasagrario_direcciones_01_Asegurado_idx"); + + entity.HasIndex(e => e.idTomador, "polizasagrario_entidades_01_Tomador_idx"); + + entity.HasIndex(e => e.idAsegurado, "polizasagrario_entidades_02_asegurado_idx"); + + entity.HasIndex(e => e.idPlanLinea, "polizasagrario_planeslineas_idx"); + + entity.HasIndex(e => e.idSubagente, "polizasagrario_subagente_idx"); + + entity.Property(e => e.idPolizaAgrario).HasColumnType("int(11)"); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.IBAN2).HasMaxLength(45); + entity.Property(e => e.IBAN3).HasMaxLength(45); + entity.Property(e => e.agenciaCompania).HasMaxLength(45); + entity.Property(e => e.animales).HasColumnType("int(11)"); + entity.Property(e => e.anoContable).HasColumnType("int(11)"); + entity.Property(e => e.directorio) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.emailAsegurado) + .HasMaxLength(150) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsegurado).HasColumnType("int(11)"); + entity.Property(e => e.idCia).HasColumnType("int(11)"); + entity.Property(e => e.idColectivo).HasColumnType("int(11)"); + entity.Property(e => e.idDomicilioAsegurado).HasColumnType("int(11)"); + entity.Property(e => e.idPlanLinea).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTomador).HasColumnType("int(11)"); + entity.Property(e => e.observaciones) + .HasMaxLength(250) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.poliza) + .HasMaxLength(20) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.referenciaHP) + .HasMaxLength(10) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.telefono1Asegurado) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.telefono2Asegurado) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.trimestreContable).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAgenteNavigation).WithMany(p => p.polizasagrario) + .HasForeignKey(d => d.idAgente) + .HasConstraintName("polizasagrario_Agente"); + + entity.HasOne(d => d.idAseguradoNavigation).WithMany(p => p.polizasagrarioidAseguradoNavigation) + .HasForeignKey(d => d.idAsegurado) + .HasConstraintName("polizasagrario_entidades_02_asegurado"); + + entity.HasOne(d => d.idCiaNavigation).WithMany(p => p.polizasagrario) + .HasForeignKey(d => d.idCia) + .HasConstraintName("polizasagrario_cia"); + + entity.HasOne(d => d.idColectivoNavigation).WithMany(p => p.polizasagrario) + .HasForeignKey(d => d.idColectivo) + .HasConstraintName("polizasagrario_colectivos"); + + entity.HasOne(d => d.idDomicilioAseguradoNavigation).WithMany(p => p.polizasagrario) + .HasForeignKey(d => d.idDomicilioAsegurado) + .HasConstraintName("polizasagrario_direcciones_01_Asegurado"); + + entity.HasOne(d => d.idPlanLineaNavigation).WithMany(p => p.polizasagrario) + .HasForeignKey(d => d.idPlanLinea) + .HasConstraintName("polizasagrario_planeslineas"); + + entity.HasOne(d => d.idSubagenteNavigation).WithMany(p => p.polizasagrario) + .HasForeignKey(d => d.idSubagente) + .HasConstraintName("polizasagrario_subagente"); + + entity.HasOne(d => d.idTomadorNavigation).WithMany(p => p.polizasagrarioidTomadorNavigation) + .HasForeignKey(d => d.idTomador) + .HasConstraintName("polizasagrario_entidades_01_Tomador"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idPoliza).HasName("PRIMARY"); + + entity.HasIndex(e => e.idDuracion, "polizassg_03_Duracion_idx"); + + entity.HasIndex(e => e.idSituacion, "polizassg_04_situacion_idx"); + + entity.HasIndex(e => e.idCausaBaja, "polizassg_CausaBajaEnumeraciones_idx"); + + entity.HasIndex(e => e.FechaAceptacionPresupuesto, "polizassg_FechaAceptacionPresupuesto"); + + entity.HasIndex(e => e.ReferenciaAsegasa, "polizassg_ReferenciaAsegasa").IsUnique(); + + entity.HasIndex(e => e.idTipoCobro, "polizassg_TipoCobroEnumeraciones_idx"); + + entity.HasIndex(e => e.idAgente, "polizassg_agentes_idx"); + + entity.HasIndex(e => e.idCompania, "polizassg_compañia_idx"); + + entity.HasIndex(e => e.FechaBaja, "polizassg_fechabaja"); + + entity.HasIndex(e => e.idFicheroPresupuesto, "polizassg_ficheros_idx"); + + entity.HasIndex(e => e.idOrigenPresupuesto, "polizassg_idOrigenPresupuesto"); + + entity.HasIndex(e => new { e.NumeroPoliza, e.NumeroSuplemento, e.idCompania }, "polizassg_numeropoliza").IsUnique(); + + entity.HasIndex(e => e.idRamoDGSCia, "polizassg_ramodgscia_idx"); + + entity.HasIndex(e => e.idRamo, "polizassg_ramos_idx"); + + entity.HasIndex(e => e.idSubAgente, "polizassg_subagentes_idx"); + + entity.HasIndex(e => e.idTipoPago, "polizassg_tipopago_idx"); + + entity.HasIndex(e => e.idUsuario, "polizassg_usuarios_idx"); + + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.DescripcionSuplemento).HasMaxLength(300); + entity.Property(e => e.DocsPendientesComprobar).HasColumnType("int(11)"); + entity.Property(e => e.DocsPendientesSubir).HasColumnType("int(11)"); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.FechaDocumentosSuplementoRevisado).HasColumnType("datetime"); + entity.Property(e => e.FechaModificacion).HasColumnType("datetime"); + entity.Property(e => e.Garantias).HasMaxLength(300); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroDirectorio).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(300); + entity.Property(e => e.ReferenciaAsegasa).HasMaxLength(20); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idModelo) + .HasComment("Tabla Modelos") + .HasColumnType("int(11)"); + entity.Property(e => e.idMultitarificador) + .HasComment("Numero de poliza del multitarificador") + .HasColumnType("int(11)"); + entity.Property(e => e.idOrigenPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idRamoDGSCia).HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tabla usuarios, quien da de alta") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idAgenteNavigation).WithMany(p => p.polizassg) + .HasForeignKey(d => d.idAgente) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("polizassg_agentes"); + + entity.HasOne(d => d.idCausaBajaNavigation).WithMany(p => p.polizassgidCausaBajaNavigation) + .HasForeignKey(d => d.idCausaBaja) + .HasConstraintName("polizassg_00_CausaBaja"); + + entity.HasOne(d => d.idCompaniaNavigation).WithMany(p => p.polizassg) + .HasForeignKey(d => d.idCompania) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("polizassg_compañias"); + + entity.HasOne(d => d.idDuracionNavigation).WithMany(p => p.polizassgidDuracionNavigation) + .HasForeignKey(d => d.idDuracion) + .HasConstraintName("polizassg_03_Duracion"); + + entity.HasOne(d => d.idFicheroPresupuestoNavigation).WithMany(p => p.polizassg) + .HasForeignKey(d => d.idFicheroPresupuesto) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("polizassg_ficheros"); + + entity.HasOne(d => d.idRamoNavigation).WithMany(p => p.polizassg) + .HasForeignKey(d => d.idRamo) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("polizassg_ramos"); + + entity.HasOne(d => d.idRamoDGSCiaNavigation).WithMany(p => p.polizassg) + .HasForeignKey(d => d.idRamoDGSCia) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("polizassg_ramodgscia"); + + entity.HasOne(d => d.idSituacionNavigation).WithMany(p => p.polizassgidSituacionNavigation) + .HasForeignKey(d => d.idSituacion) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("polizassg_04_situacion"); + + entity.HasOne(d => d.idSubAgenteNavigation).WithMany(p => p.polizassg) + .HasForeignKey(d => d.idSubAgente) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("polizassg_subagentes"); + + entity.HasOne(d => d.idTipoCobroNavigation).WithMany(p => p.polizassgidTipoCobroNavigation) + .HasForeignKey(d => d.idTipoCobro) + .HasConstraintName("polizassg_01_tipocobro"); + + entity.HasOne(d => d.idTipoPagoNavigation).WithMany(p => p.polizassgidTipoPagoNavigation) + .HasForeignKey(d => d.idTipoPago) + .HasConstraintName("polizassg_02_tipopago"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.polizassg) + .HasForeignKey(d => d.idUsuario) + .HasConstraintName("polizassg_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idProceso).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.idTipo, "procesos_01_Tipo_idx"); + + entity.HasIndex(e => e.idSubtipo, "procesos_02_SubTipo_idx"); + + entity.HasIndex(e => e.idFichero, "procesos_permisos_idx"); + + entity.HasIndex(e => e.idPermiso, "procesos_permisos_idx1"); + + entity.Property(e => e.idProceso).HasColumnType("int(11)"); + entity.Property(e => e.Accion) + .HasMaxLength(512) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Descripcion) + .HasMaxLength(255) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Observaciones) + .HasMaxLength(512) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Orden) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idPermiso).HasColumnType("int(11)"); + entity.Property(e => e.idSubtipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.procesos) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("procesos_ficheros"); + + entity.HasOne(d => d.idPermisoNavigation).WithMany(p => p.procesos) + .HasForeignKey(d => d.idPermiso) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("procesos_permisos"); + + entity.HasOne(d => d.idSubtipoNavigation).WithMany(p => p.procesosidSubtipoNavigation) + .HasForeignKey(d => d.idSubtipo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("procesos_02_SubTipo"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.procesosidTipoNavigation) + .HasForeignKey(d => d.idTipo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("procesos_01_Tipo"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.CodigoProvincia).HasName("PRIMARY"); + + entity.Property(e => e.CodigoProvincia).HasMaxLength(2); + entity.Property(e => e.ComunidadAutonoma).HasMaxLength(45); + entity.Property(e => e.Nombre).HasMaxLength(80); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idRamo).HasName("PRIMARY"); + + entity.HasIndex(e => e.Codigo, "Codigo_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idRamo, "idRamo_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idFamiliaDGS, "ramos_familia_DGS_idx"); + + entity.HasIndex(e => e.idFamiliaRamo, "ramos_familia_idx"); + + entity.Property(e => e.idRamo).HasColumnType("int(11)"); + entity.Property(e => e.Codigo).HasMaxLength(10); + entity.Property(e => e.CodigoDireccionGeneralSeguros).HasMaxLength(45); + entity.Property(e => e.Descripcion).HasMaxLength(150); + entity.Property(e => e.DescripcionAbreviada).HasMaxLength(45); + entity.Property(e => e.DestinatariosCorreosDocumentacion).HasMaxLength(200); + entity.Property(e => e.Observacion).HasMaxLength(100); + entity.Property(e => e.Situacion).HasMaxLength(45); + entity.Property(e => e.idFamiliaDGS).HasColumnType("int(11)"); + entity.Property(e => e.idFamiliaRamo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idFamiliaDGSNavigation).WithMany(p => p.ramosidFamiliaDGSNavigation) + .HasForeignKey(d => d.idFamiliaDGS) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("ramos_familia_DGS"); + + entity.HasOne(d => d.idFamiliaRamoNavigation).WithMany(p => p.ramosidFamiliaRamoNavigation) + .HasForeignKey(d => d.idFamiliaRamo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("ramos_familia"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idRamoDGS).HasName("PRIMARY"); + + entity.HasIndex(e => e.Clave, "Clave_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.Descripcion, "Descripcion_UNIQUE").IsUnique(); + + entity.Property(e => e.idRamoDGS).HasColumnType("int(11)"); + entity.Property(e => e.Clave).HasMaxLength(10); + entity.Property(e => e.Descripcion).HasMaxLength(80); + entity.Property(e => e.Detalle).HasMaxLength(4); + entity.Property(e => e.Grupo).HasMaxLength(4); + entity.Property(e => e.Ramo).HasMaxLength(4); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idRamoDGSCompania).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCompania, "ramosdgscompania_companias_idx"); + + entity.HasIndex(e => e.idRamoAsegasa, "ramosdgscompania_ramos_idx"); + + entity.HasIndex(e => e.idRamoDGS, "ramosdgscompania_ramosdgs_idx"); + + entity.HasIndex(e => new { e.idRamoDGS, e.idCompania, e.CodigoEntidad, e.CodigoModalidad }, "ramosdgscompania_unico").IsUnique(); + + entity.Property(e => e.idRamoDGSCompania).HasColumnType("int(11)"); + entity.Property(e => e.CodigoEntidad).HasMaxLength(20); + entity.Property(e => e.CodigoModalidad).HasMaxLength(20); + entity.Property(e => e.DescripcionModalidad).HasMaxLength(80); + entity.Property(e => e.DescripcionRamo).HasMaxLength(80); + entity.Property(e => e.idCompania).HasColumnType("int(11)"); + entity.Property(e => e.idRamoAsegasa).HasColumnType("int(11)"); + entity.Property(e => e.idRamoDGS).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCompaniaNavigation).WithMany(p => p.ramosdgscompania) + .HasForeignKey(d => d.idCompania) + .HasConstraintName("ramosdgscompania_companias"); + + entity.HasOne(d => d.idRamoAsegasaNavigation).WithMany(p => p.ramosdgscompania) + .HasForeignKey(d => d.idRamoAsegasa) + .HasConstraintName("ramosdgscompania_ramos"); + + entity.HasOne(d => d.idRamoDGSNavigation).WithMany(p => p.ramosdgscompania) + .HasForeignKey(d => d.idRamoDGS) + .HasConstraintName("ramosdgscompania_ramosdgs"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idRecibo).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCausaDevolucion, "recibos_05_CausaDevolucionBanco_idx"); + + entity.HasIndex(e => e.idSituacion, "recibos_07_situacion_idx"); + + entity.HasIndex(e => e.idCausaBaja, "recibos_CausaBaja_idx"); + + entity.HasIndex(e => e.CodigoRecibo, "recibos_CodigoRecibo").IsUnique(); + + entity.HasIndex(e => e.FechaEfecto, "recibos_FechaEfecto"); + + entity.HasIndex(e => e.FechaFacturacion, "recibos_FechaFacturacion"); + + entity.HasIndex(e => e.FechaRecepcionCia, "recibos_FechaRecepcionCia"); + + entity.HasIndex(e => e.FechaVencimiento, "recibos_FechaVencimiento"); + + entity.HasIndex(e => e.idAgente, "recibos_agentes_idx"); + + entity.HasIndex(e => e.idAsientoDevueltoBanco, "recibos_asientoDevueltoBanco_idx"); + + entity.HasIndex(e => e.idAsientoFacturacion, "recibos_asientoFacturacion_idx"); + + entity.HasIndex(e => e.idDuracion, "recibos_duracionEnumeraciones_idx"); + + entity.HasIndex(e => e.idFicheroCompania, "recibos_ficheroscompania_idx"); + + entity.HasIndex(e => e.idUsuario, "recibos_idUsuario_idx"); + + entity.HasIndex(e => e.NumeroRecibo, "recibos_numerorecibo"); + + entity.HasIndex(e => e.idPoliza, "recibos_polizas_idx"); + + entity.HasIndex(e => e.idReciboAsociado, "recibos_recibosasociados_idx"); + + entity.HasIndex(e => e.idRemesa, "recibos_remesas_idx"); + + entity.HasIndex(e => e.idSubagente, "recibos_subagentes_idx"); + + entity.HasIndex(e => e.idTipo, "recibos_tipoEnumeraciones_idx"); + + entity.HasIndex(e => e.idTipoPago, "recibos_tipoPagoEnumeraciones_idx"); + + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.ComisionPrevistaAsegasa).HasDefaultValueSql("'0'"); + entity.Property(e => e.FechaModificacion).HasColumnType("datetime"); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Libre1).HasDefaultValueSql("'0'"); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.OrigenRecibo).HasColumnType("int(11)"); + entity.Property(e => e.Sobrecomision).HasDefaultValueSql("'0'"); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoDevueltoBanco).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoFacturacion).HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja).HasColumnType("int(11)"); + entity.Property(e => e.idCausaDevolucion).HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroCompania).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idReciboAsociado) + .HasComment("tabla recibos ") + .HasColumnType("int(11)"); + entity.Property(e => e.idRemesa) + .HasComment("tabla remesa") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAgenteNavigation).WithMany(p => p.recibos) + .HasForeignKey(d => d.idAgente) + .HasConstraintName("recibos_agentes"); + + entity.HasOne(d => d.idAsientoDevueltoBancoNavigation).WithMany(p => p.recibosidAsientoDevueltoBancoNavigation) + .HasForeignKey(d => d.idAsientoDevueltoBanco) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("recibos_asientoDevueltoBanco"); + + entity.HasOne(d => d.idAsientoFacturacionNavigation).WithMany(p => p.recibosidAsientoFacturacionNavigation) + .HasForeignKey(d => d.idAsientoFacturacion) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("recibos_asientoFacturacion"); + + entity.HasOne(d => d.idCausaBajaNavigation).WithMany(p => p.recibosidCausaBajaNavigation) + .HasForeignKey(d => d.idCausaBaja) + .HasConstraintName("recibos_04_CausaBaja"); + + entity.HasOne(d => d.idCausaDevolucionNavigation).WithMany(p => p.recibosidCausaDevolucionNavigation) + .HasForeignKey(d => d.idCausaDevolucion) + .HasConstraintName("recibos_05_CausaDevolucionBanco"); + + entity.HasOne(d => d.idDuracionNavigation).WithMany(p => p.recibosidDuracionNavigation) + .HasForeignKey(d => d.idDuracion) + .HasConstraintName("recibos_00_Duracion"); + + entity.HasOne(d => d.idFicheroCompaniaNavigation).WithMany(p => p.recibos) + .HasForeignKey(d => d.idFicheroCompania) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("recibos_ficheroscompania"); + + entity.HasOne(d => d.idPolizaNavigation).WithMany(p => p.recibos) + .HasForeignKey(d => d.idPoliza) + .HasConstraintName("recibos_polizas"); + + entity.HasOne(d => d.idReciboAsociadoNavigation).WithMany(p => p.InverseidReciboAsociadoNavigation) + .HasForeignKey(d => d.idReciboAsociado) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("recibos_recibosasociados"); + + entity.HasOne(d => d.idRemesaNavigation).WithMany(p => p.recibos) + .HasForeignKey(d => d.idRemesa) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("recibos_remesas"); + + entity.HasOne(d => d.idSituacionNavigation).WithMany(p => p.recibosidSituacionNavigation) + .HasForeignKey(d => d.idSituacion) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("recibos_07_situacion"); + + entity.HasOne(d => d.idSubagenteNavigation).WithMany(p => p.recibos) + .HasForeignKey(d => d.idSubagente) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("recibos_subagentes"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.recibosidTipoNavigation) + .HasForeignKey(d => d.idTipo) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("recibos_02_Tipo"); + + entity.HasOne(d => d.idTipoPagoNavigation).WithMany(p => p.recibosidTipoPagoNavigation) + .HasForeignKey(d => d.idTipoPago) + .HasConstraintName("recibos_03_TipoPago"); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.recibos) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("recibos_idUsuario"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idRegistro).HasName("PRIMARY"); + + entity.HasIndex(e => e.FechaProcesadoEnHP, "FechaProcesadoEnHP"); + + entity.HasIndex(e => e.idAplicacion, "idAplicacion"); + + entity.HasIndex(e => e.idFicheroCompania, "registrosactualizados_ficheroscompanias_idx"); + + entity.Property(e => e.idRegistro).HasColumnType("int(11)"); + entity.Property(e => e.FechaCreacion).HasColumnType("datetime"); + entity.Property(e => e.FechaErrorEnHP).HasColumnType("datetime"); + entity.Property(e => e.FechaProcesadoEnHP).HasColumnType("datetime"); + entity.Property(e => e.MacroAct).HasMaxLength(20); + entity.Property(e => e.MensajeError).HasMaxLength(100); + entity.Property(e => e.NumeroGeneracion).HasColumnType("int(11)"); + entity.Property(e => e.Tipo).HasMaxLength(40); + entity.Property(e => e.idAplicacion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroCompania).HasColumnType("int(11)"); + + entity.HasOne(d => d.idFicheroCompaniaNavigation).WithMany(p => p.registrosactualizados) + .HasForeignKey(d => d.idFicheroCompania) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("registrosactualizados_ficheroscompanias"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idRegistro).HasName("PRIMARY"); + + entity.HasIndex(e => e.idAplicacion, "registrosverifactu_facturas_idx"); + + entity.HasIndex(e => e.idRegistroAnterior, "registrosverifactu_idRegistroAnterior").IsUnique(); + + entity.HasIndex(e => e.Operacion, "registrosverifactu_operacion"); + + entity.HasIndex(e => e.idRegistroCorreccion, "registrosverifactu_registrocorreccion").IsUnique(); + + entity.HasIndex(e => e.idRespuestaVerifactu, "registrosverifactu_respuestaverifactu_idx"); + + entity.Property(e => e.idRegistro).HasColumnType("int(11)"); + entity.Property(e => e.Aplicacion).HasColumnType("int(11)"); + entity.Property(e => e.ErrorVerifactu).HasMaxLength(500); + entity.Property(e => e.Estado).HasColumnType("int(11)"); + entity.Property(e => e.FechaEncadenado).HasColumnType("datetime"); + entity.Property(e => e.FechaGeneracion).HasColumnType("datetime"); + entity.Property(e => e.Huella).HasMaxLength(64); + entity.Property(e => e.Operacion).HasColumnType("int(11)"); + entity.Property(e => e.OtrosDatos).HasMaxLength(200); + entity.Property(e => e.TipoFactura).HasColumnType("int(11)"); + entity.Property(e => e.idAplicacion).HasColumnType("int(11)"); + entity.Property(e => e.idRegistroAnterior).HasColumnType("int(11)"); + entity.Property(e => e.idRegistroCorreccion).HasColumnType("int(11)"); + entity.Property(e => e.idRespuestaVerifactu).HasColumnType("int(11)"); + + entity.HasOne(d => d.idRegistroAnteriorNavigation).WithOne(p => p.InverseidRegistroAnteriorNavigation) + .HasForeignKey(d => d.idRegistroAnterior) + .HasConstraintName("registrosverifactu_registroverifactuanterior"); + + entity.HasOne(d => d.idRegistroCorreccionNavigation).WithOne(p => p.InverseidRegistroCorreccionNavigation) + .HasForeignKey(d => d.idRegistroCorreccion) + .HasConstraintName("registrosverifactu_registrocorreccion"); + + entity.HasOne(d => d.idRespuestaVerifactuNavigation).WithMany(p => p.registrosverifactu) + .HasForeignKey(d => d.idRespuestaVerifactu) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("registrosverifactu_respuestaverifactu"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idRegularizacion).HasName("PRIMARY"); + + entity.UseCollation("utf8_bin"); + + entity.HasIndex(e => e.idPolizaAgrario, "regularizacion_polizasagrario_idx"); + + entity.Property(e => e.idRegularizacion) + .ValueGeneratedNever() + .HasColumnType("int(11)"); + entity.Property(e => e.idPolizaAgrario).HasColumnType("int(11)"); + + entity.HasOne(d => d.idPolizaAgrarioNavigation).WithMany(p => p.regularizacion) + .HasForeignKey(d => d.idPolizaAgrario) + .HasConstraintName("regularizacion_polizasagrario"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idRegularizacion).HasName("PRIMARY"); + + entity.HasIndex(e => e.idAgente, "regularizacionespagosagentes_agentes_idx"); + + entity.HasIndex(e => e.idLiquidacionAgente, "regularizacionespagosagentes_liquidacionesagentes_idx"); + + entity.HasIndex(e => e.idRecibo, "regularizacionespagosagentes_recibos_idx"); + + entity.HasIndex(e => e.idLiquidacionARRelacionada, "regularizacionespagosagentesrecibos_liquidacionesagentesrec_idx"); + + entity.Property(e => e.idRegularizacion).HasColumnType("int(11)"); + entity.Property(e => e.Concepto).HasMaxLength(100); + entity.Property(e => e.FechaCreacion).HasColumnType("datetime"); + entity.Property(e => e.Tipo).HasColumnType("int(11)"); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idLiquidacionARRelacionada).HasColumnType("int(11)"); + entity.Property(e => e.idLiquidacionAgente).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + + entity.HasOne(d => d.idAgenteNavigation).WithMany(p => p.regularizacionespagosagentes) + .HasForeignKey(d => d.idAgente) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("regularizacionespagosagentes_agentes"); + + entity.HasOne(d => d.idLiquidacionARRelacionadaNavigation).WithMany(p => p.regularizacionespagosagentes) + .HasForeignKey(d => d.idLiquidacionARRelacionada) + .HasConstraintName("regularizacionespagosagentesrecibos_liquidacionesagentesrecibos"); + + entity.HasOne(d => d.idLiquidacionAgenteNavigation).WithMany(p => p.regularizacionespagosagentes) + .HasForeignKey(d => d.idLiquidacionAgente) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("regularizacionespagosagentes_liquidacionesagentes"); + + entity.HasOne(d => d.idReciboNavigation).WithMany(p => p.regularizacionespagosagentes) + .HasForeignKey(d => d.idRecibo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("regularizacionespagosagentes_recibos"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idRemesa).HasName("PRIMARY"); + + entity.HasIndex(e => e.idAsiento, "remesas_asientos_idx"); + + entity.HasIndex(e => e.idFichero, "remesas_ficheros_idx"); + + entity.HasIndex(e => e.idTipo, "remesas_tiposEnumeraciones_idx"); + + entity.Property(e => e.idRemesa).HasColumnType("int(11)"); + entity.Property(e => e.FechaCreacion).HasColumnType("datetime"); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.idAsiento).HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idTipo) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idAsientoNavigation).WithMany(p => p.remesas) + .HasForeignKey(d => d.idAsiento) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("remesas_asientos"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.remesas) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("remesas_ficheros"); + + entity.HasOne(d => d.idTipoNavigation).WithMany(p => p.remesas) + .HasForeignKey(d => d.idTipo) + .HasConstraintName("remesas_tiposEnumeraciones"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idSerieFactura).HasName("PRIMARY"); + + entity.HasIndex(e => e.Serie, "Serie").IsUnique(); + + entity.Property(e => e.idSerieFactura).HasColumnType("int(11)"); + entity.Property(e => e.AnnoActual).HasColumnType("int(11)"); + entity.Property(e => e.CalificacionOperacionesOExencion).HasColumnType("int(11)"); + entity.Property(e => e.Clase).HasColumnType("int(11)"); + entity.Property(e => e.ConceptoVerifactu).HasMaxLength(100); + entity.Property(e => e.Descripcion).HasMaxLength(100); + entity.Property(e => e.Serie).HasMaxLength(10); + entity.Property(e => e.TipoVerifactu) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.TranscendenciaTributaria).HasColumnType("int(11)"); + entity.Property(e => e.idSerieRectificativa).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idSesion).HasName("PRIMARY"); + + entity.HasIndex(e => e.idUsuario, "sesiones_usuarios_idx"); + + entity.Property(e => e.idSesion).HasColumnType("int(11)"); + entity.Property(e => e.FechaInicio).HasColumnType("datetime"); + entity.Property(e => e.FechaUltimaComprobacion).HasColumnType("datetime"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + entity.Property(e => e.ip).HasMaxLength(100); + + entity.HasOne(d => d.idUsuarioNavigation).WithMany(p => p.sesiones) + .HasForeignKey(d => d.idUsuario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("sesiones_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idSiniestro).HasName("PRIMARY"); + + entity.HasIndex(e => e.ReferenciaAsegasaHP, "ReferenciaAsegasaHP_UI").IsUnique(); + + entity.HasIndex(e => e.idUsuarioCreador, "siniestros_00_Usuarios_idx"); + + entity.HasIndex(e => e.idUsuarioModificador, "siniestros_01_usuarios_idx"); + + entity.HasIndex(e => e.idEntidadContrario, "siniestros_contrario_idx"); + + entity.HasIndex(e => e.idCulpa, "siniestros_culpabilidad_idx"); + + entity.HasIndex(e => e.FechaProximoRecordatorio, "siniestros_fechaproximorecordatorio"); + + entity.HasIndex(e => e.idPoliza, "siniestros_polizassg_idx"); + + entity.HasIndex(e => e.idEntidadTaller, "siniestros_taller_idx"); + + entity.HasIndex(e => e.idTramitacion, "siniestros_tramitacion_idx"); + + entity.Property(e => e.idSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.BienContrario).HasMaxLength(300); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CiaContrario).HasMaxLength(100); + entity.Property(e => e.DanosCliente).HasMaxLength(200); + entity.Property(e => e.DanosContrario).HasMaxLength(200); + entity.Property(e => e.DescripcionSiniestro).HasMaxLength(500); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.MatriculaContrario).HasMaxLength(20); + entity.Property(e => e.NumeroPolizaContrario).HasMaxLength(20); + entity.Property(e => e.Observaciones).HasMaxLength(200); + entity.Property(e => e.ReferenciaAsegasaHP).HasMaxLength(16); + entity.Property(e => e.ReferenciaCompania).HasMaxLength(45); + entity.Property(e => e.idCulpa) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idEntidadContrario) + .HasComment("tabla entidades") + .HasColumnType("int(11)"); + entity.Property(e => e.idEntidadTaller).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza) + .HasComment("tabla polizas") + .HasColumnType("int(11)"); + entity.Property(e => e.idTramitacion) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioCreador).HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioModificador) + .HasComment("tabla usuarios") + .HasColumnType("int(11)"); + + entity.HasOne(d => d.idCulpaNavigation).WithMany(p => p.siniestrosidCulpaNavigation) + .HasForeignKey(d => d.idCulpa) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("siniestros_culpabilidad"); + + entity.HasOne(d => d.idEntidadContrarioNavigation).WithMany(p => p.siniestrosidEntidadContrarioNavigation) + .HasForeignKey(d => d.idEntidadContrario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("siniestros_contrario"); + + entity.HasOne(d => d.idEntidadTallerNavigation).WithMany(p => p.siniestrosidEntidadTallerNavigation) + .HasForeignKey(d => d.idEntidadTaller) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("siniestros_taller"); + + entity.HasOne(d => d.idPolizaNavigation).WithMany(p => p.siniestros) + .HasForeignKey(d => d.idPoliza) + .HasConstraintName("siniestros_polizassg"); + + entity.HasOne(d => d.idTramitacionNavigation).WithMany(p => p.siniestrosidTramitacionNavigation) + .HasForeignKey(d => d.idTramitacion) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("siniestros_tramitacion"); + + entity.HasOne(d => d.idUsuarioCreadorNavigation).WithMany(p => p.siniestrosidUsuarioCreadorNavigation) + .HasForeignKey(d => d.idUsuarioCreador) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("siniestros_00_Usuarios"); + + entity.HasOne(d => d.idUsuarioModificadorNavigation).WithMany(p => p.siniestrosidUsuarioModificadorNavigation) + .HasForeignKey(d => d.idUsuarioModificador) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("siniestros_01_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idSiniestroEIAC).HasName("PRIMARY"); + + entity.HasIndex(e => e.idCompania, "fk_siniestoreseiac_companias_idx"); + + entity.HasIndex(e => e.idLugarSiniestro, "fk_siniestroseac_direcciones_idx"); + + entity.HasIndex(e => e.idFicheroCompania, "fk_siniestroseiac_ficheroscompania_idx"); + + entity.HasIndex(e => e.idPoliza, "fk_siniestroseiac_polizassg_idx"); + + entity.HasIndex(e => e.idSiniestro, "fk_siniestroseiac_siniestros_idx"); + + entity.HasIndex(e => e.idUsuarioSituacion, "fk_siniestroseiac_usuarios_idx"); + + entity.HasIndex(e => e.idSiniestroEntidad, "idSiniestroEntidad_UNIQUE").IsUnique(); + + entity.Property(e => e.idSiniestroEIAC).HasColumnType("int(11)"); + entity.Property(e => e.DescripcionSiniestro).HasMaxLength(2048); + entity.Property(e => e.FechaDeclaracion).HasColumnType("datetime"); + entity.Property(e => e.FechaOcurrencia).HasColumnType("datetime"); + entity.Property(e => e.FechaSituacion).HasColumnType("datetime"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasMaxLength(10); + entity.Property(e => e.PosicionSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.SituacionAsegasa).HasColumnType("int(11)"); + entity.Property(e => e.TipologiaSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.idCompania).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroCompania).HasColumnType("int(11)"); + entity.Property(e => e.idLugarSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.idSiniestroEntidad).HasMaxLength(40); + entity.Property(e => e.idUsuarioSituacion).HasColumnType("int(11)"); + + entity.HasOne(d => d.idCompaniaNavigation).WithMany(p => p.siniestros_eiac) + .HasForeignKey(d => d.idCompania) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("fk_siniestoreseiac_companias"); + + entity.HasOne(d => d.idFicheroCompaniaNavigation).WithMany(p => p.siniestros_eiac) + .HasForeignKey(d => d.idFicheroCompania) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("fk_siniestroseiac_ficheroscompania"); + + entity.HasOne(d => d.idLugarSiniestroNavigation).WithMany(p => p.siniestros_eiac) + .HasForeignKey(d => d.idLugarSiniestro) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("fk_siniestroseac_direcciones"); + + entity.HasOne(d => d.idPolizaNavigation).WithMany(p => p.siniestros_eiac) + .HasForeignKey(d => d.idPoliza) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("fk_siniestroseiac_polizassg"); + + entity.HasOne(d => d.idSiniestroNavigation).WithMany(p => p.siniestros_eiac) + .HasForeignKey(d => d.idSiniestro) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("fk_siniestroseiac_siniestros"); + + entity.HasOne(d => d.idUsuarioSituacionNavigation).WithMany(p => p.siniestros_eiac) + .HasForeignKey(d => d.idUsuarioSituacion) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("fk_siniestroseiac_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idSubagente).HasName("PRIMARY"); + + entity.HasIndex(e => e.idSubagente, "idSubagente_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idAgente, "subagentes_agentes_idx"); + + entity.HasIndex(e => new { e.Codigo, e.idAgente }, "subagentes_codigo").IsUnique(); + + entity.HasIndex(e => e.CodigoPostal, "subagentes_direcciones_idx"); + + entity.HasIndex(e => e.idSuborganizacion, "subagentes_idSuborganizacion"); + + entity.HasIndex(e => e.CodigoMunicipio, "subagentes_municipios_idx"); + + entity.HasIndex(e => e.idUsuarioRelacionado, "subagentes_usuarios_idx"); + + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.Clave).HasMaxLength(45); + entity.Property(e => e.Codigo).HasMaxLength(4); + entity.Property(e => e.CodigoMunicipio).HasMaxLength(10); + entity.Property(e => e.CodigoPostal).HasMaxLength(10); + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.MapeoAllianz).HasMaxLength(45); + entity.Property(e => e.MapeoCaser).HasMaxLength(45); + entity.Property(e => e.MapeoPelayo).HasMaxLength(45); + entity.Property(e => e.Nombre).HasMaxLength(200); + entity.Property(e => e.Telefono).HasMaxLength(20); + entity.Property(e => e.codigoUsuarioAvant2).HasMaxLength(64); + entity.Property(e => e.contrasenaAvant2).HasMaxLength(64); + entity.Property(e => e.hashContrasena).HasMaxLength(40); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idSuborganizacion).HasColumnType("int(11) unsigned"); + entity.Property(e => e.idUsuarioRelacionado).HasColumnType("int(11)"); + + entity.HasOne(d => d.CodigoMunicipioNavigation).WithMany(p => p.subagentes) + .HasForeignKey(d => d.CodigoMunicipio) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("subagentes_municipios"); + + entity.HasOne(d => d.idAgenteNavigation).WithMany(p => p.subagentes) + .HasForeignKey(d => d.idAgente) + .HasConstraintName("subagentes_agentes"); + + entity.HasOne(d => d.idSuborganizacionNavigation).WithMany(p => p.subagentes) + .HasForeignKey(d => d.idSuborganizacion) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("subagentes_idSuborganizacion"); + + entity.HasOne(d => d.idUsuarioRelacionadoNavigation).WithMany(p => p.subagentes) + .HasForeignKey(d => d.idUsuarioRelacionado) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("subagentes_usuarios"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idTipoGestionSiniestro).HasName("PRIMARY"); + + entity.HasIndex(e => e.idTipoGestionSiniestro, "idTipoGestionSiniestro_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idClase, "tiposgestionsiniestros_clase_idx"); + + entity.HasIndex(e => e.idDestinatario, "tiposgestionsiniestros_destinatarios_idx"); + + entity.HasIndex(e => e.idFichero, "tiposgestionsiniestros_ficheros_idx"); + + entity.Property(e => e.idTipoGestionSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.Codigo).HasMaxLength(20); + entity.Property(e => e.Descripcion).HasMaxLength(150); + entity.Property(e => e.Observaciones).HasMaxLength(200); + entity.Property(e => e.idClase) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idDestinatario) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + + entity.HasOne(d => d.idClaseNavigation).WithMany(p => p.tiposgestionsiniestrosidClaseNavigation) + .HasForeignKey(d => d.idClase) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("tiposgestionsiniestros_clase"); + + entity.HasOne(d => d.idDestinatarioNavigation).WithMany(p => p.tiposgestionsiniestrosidDestinatarioNavigation) + .HasForeignKey(d => d.idDestinatario) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("tiposgestionsiniestros_destinatarios"); + + entity.HasOne(d => d.idFicheroNavigation).WithMany(p => p.tiposgestionsiniestros) + .HasForeignKey(d => d.idFichero) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("tiposgestionsiniestros_ficheros"); + }); + + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.idUsuario).HasName("PRIMARY"); + + entity.HasIndex(e => e.Nombre, "Nombre_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.Usuario, "Usuario_UNIQUE").IsUnique(); + + entity.HasIndex(e => e.idTema, "Usuarios_Temas_idx"); + + entity.HasIndex(e => e.idGrupobd, "kk"); + + entity.HasIndex(e => e.idGrupo, "usuarios_gruposmenus"); + + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + entity.Property(e => e.Nombre) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Oficina).HasMaxLength(20); + entity.Property(e => e.SHA1Passwd) + .HasMaxLength(40) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Usuario) + .HasMaxLength(30) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.email).HasMaxLength(100); + entity.Property(e => e.idGrupo).HasColumnType("int(11)"); + entity.Property(e => e.idGrupobd).HasColumnType("int(11)"); + entity.Property(e => e.idTema).HasColumnType("int(11)"); + + entity.HasOne(d => d.idGrupoNavigation).WithMany(p => p.usuarios) + .HasForeignKey(d => d.idGrupo) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("Usuarios_GruposUsuarios"); + + entity.HasOne(d => d.idGrupobdNavigation).WithMany(p => p.usuarios) + .HasForeignKey(d => d.idGrupobd) + .OnDelete(DeleteBehavior.ClientSetNull) + .HasConstraintName("Usuarios_Grupobd"); + + entity.HasOne(d => d.idTemaNavigation).WithMany(p => p.usuarios) + .HasForeignKey(d => d.idTema) + .OnDelete(DeleteBehavior.SetNull) + .HasConstraintName("Usuarios_Temas"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_act_apuntes"); + + entity.Property(e => e.CodigoConcepto).HasMaxLength(10); + entity.Property(e => e.Concepto).HasMaxLength(200); + entity.Property(e => e.FechaPunteo).HasColumnType("datetime"); + entity.Property(e => e.MacroAct).HasMaxLength(20); + entity.Property(e => e.NumeroCuenta).HasMaxLength(10); + entity.Property(e => e.NumeroDocumento).HasMaxLength(30); + entity.Property(e => e.NumeroGeneracion).HasColumnType("int(11)"); + entity.Property(e => e.TipoDocumento).HasColumnType("int(11)"); + entity.Property(e => e.idApunte).HasColumnType("int(11)"); + entity.Property(e => e.idAsiento).HasColumnType("int(11)"); + entity.Property(e => e.idConcepto).HasColumnType("int(11)"); + entity.Property(e => e.idConciliacion).HasColumnType("int(11)"); + entity.Property(e => e.idCuenta) + .HasComment("tabla cuentas") + .HasColumnType("int(11)"); + entity.Property(e => e.idFicheroCompania).HasColumnType("int(11)"); + entity.Property(e => e.idRegistro).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_act_entidades"); + + entity.Property(e => e.AfiliacionSeguridadSocial).HasMaxLength(20); + entity.Property(e => e.Apellidos).HasMaxLength(100); + entity.Property(e => e.CIF).HasMaxLength(20); + entity.Property(e => e.CuentaContable).HasMaxLength(45); + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.EstadoCivil).HasMaxLength(45); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Nombre).HasMaxLength(100); + entity.Property(e => e.Observacion).HasMaxLength(200); + entity.Property(e => e.RazonSocial).HasMaxLength(100); + entity.Property(e => e.Situacion).HasMaxLength(100); + entity.Property(e => e.Telefono1).HasMaxLength(20); + entity.Property(e => e.Telefono2).HasMaxLength(20); + entity.Property(e => e.idDireccionPrincipal).HasColumnType("int(11)"); + entity.Property(e => e.idEntidad).HasColumnType("int(11)"); + entity.Property(e => e.idRegistro).HasColumnType("int(11)"); + entity.Property(e => e.idSexo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_act_polizassg"); + + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoCausaBaja).HasMaxLength(115); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.DescripcionSuplemento).HasMaxLength(300); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.FechaDocumentosSuplementoRevisado).HasColumnType("datetime"); + entity.Property(e => e.FechaModificacion).HasColumnType("datetime"); + entity.Property(e => e.Garantias).HasMaxLength(300); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.MacroAct).HasMaxLength(20); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroDirectorio).HasColumnType("int(11)"); + entity.Property(e => e.NumeroGeneracion).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(300); + entity.Property(e => e.ReferenciaAsegasa).HasMaxLength(20); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idModelo) + .HasComment("Tabla Modelos") + .HasColumnType("int(11)"); + entity.Property(e => e.idMultitarificador) + .HasComment("Numero de poliza del multitarificador") + .HasColumnType("int(11)"); + entity.Property(e => e.idOrigenPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idRegistro).HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tabla usuarios, quien da de alta") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_act_recibos"); + + entity.Property(e => e.CausaBaja).HasMaxLength(115); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoCausaDevolucion).HasMaxLength(115); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoTipoLiquidacion).HasMaxLength(40); + entity.Property(e => e.CodigoTipoLiquidacionAgente).HasMaxLength(40); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.MacroAct).HasMaxLength(20); + entity.Property(e => e.NumeroGeneracion).HasColumnType("int(11)"); + entity.Property(e => e.NumeroLiquidacionAgente) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.NumeroLiquidacionCia).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.OrigenRecibo).HasColumnType("int(11)"); + entity.Property(e => e.Situacion).HasMaxLength(115); + entity.Property(e => e.TipoPago).HasMaxLength(115); + entity.Property(e => e.TipoRecibo).HasMaxLength(116); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja).HasColumnType("int(11)"); + entity.Property(e => e.idCausaDevolucion).HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroCompania).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idReciboAsociado) + .HasComment("tabla recibos ") + .HasColumnType("int(11)"); + entity.Property(e => e.idRegistro).HasColumnType("int(11)"); + entity.Property(e => e.idRemesa) + .HasComment("tabla remesa") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idUsuario).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_apuntesagrupados"); + + entity.Property(e => e.idCuenta) + .HasComment("tabla cuentas") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_apuntesextendidos"); + + entity.Property(e => e.Concepto).HasMaxLength(200); + entity.Property(e => e.FechaPunteo).HasColumnType("datetime"); + entity.Property(e => e.NumeroDocumento).HasMaxLength(30); + entity.Property(e => e.TipoDocumento).HasColumnType("int(11)"); + entity.Property(e => e.idApunte).HasColumnType("int(11)"); + entity.Property(e => e.idAsiento).HasColumnType("int(11)"); + entity.Property(e => e.idConcepto).HasColumnType("int(11)"); + entity.Property(e => e.idConciliacion).HasColumnType("int(11)"); + entity.Property(e => e.idCuenta) + .HasComment("tabla cuentas") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_codigosrecibos"); + + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoReciboc).HasMaxLength(41); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.idrecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_descobro_cia"); + + entity.Property(e => e.idrecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_devolucion_cia"); + + entity.Property(e => e.idrecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_documentos_pendientes_comprobacion"); + + entity.Property(e => e.DocumentosPendientes).HasColumnType("bigint(21)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_documentos_pendientes_subir"); + + entity.Property(e => e.DocumentosPendientes).HasColumnType("bigint(21)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_documentospendientes"); + + entity.Property(e => e.DocumentosPendientesComprobacion).HasPrecision(23); + entity.Property(e => e.DocumentosPendientesSubir).HasPrecision(23); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_lc_agrupadas_cia"); + + entity.Property(e => e.idcompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idliquidacioncia).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_liquidacion_agente"); + + entity.Property(e => e.idrecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_liquidacion_cia"); + + entity.Property(e => e.idrecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_liquidacion_cia_devuelto"); + + entity.Property(e => e.idrecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_liquidacionescompaniasrecibostipo"); + + entity.Property(e => e.Importe).HasDefaultValueSql("'0'"); + entity.Property(e => e.idLiquidacionCia).HasColumnType("int(11)"); + entity.Property(e => e.idLiquidacionesCiaRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoLiquidacion).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_numero_gestiones_siniestros"); + + entity.Property(e => e.NumeroGestiones).HasColumnType("bigint(21)"); + entity.Property(e => e.idsiniestro).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_recibos_liquidacionagentes"); + + entity.Property(e => e.idrecibo) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_recibospendientesdescobro_1"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCausaDevolucion).HasMaxLength(40); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.Situacion).HasMaxLength(200); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.SubAgenteSuperior).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoRecibo).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoDevueltoBanco).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoFacturacion).HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja).HasColumnType("int(11)"); + entity.Property(e => e.idCausaDevolucion).HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.idReciboAsociado) + .HasComment("tabla recibos ") + .HasColumnType("int(11)"); + entity.Property(e => e.idRemesa) + .HasComment("tabla remesa") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_recibospendientesdescobro_2"); + + entity.Property(e => e.Importe).HasDefaultValueSql("'0'"); + entity.Property(e => e.idLiquidacionCia).HasColumnType("int(11)"); + entity.Property(e => e.idLiquidacionesCiaRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_registrostablas"); + + entity.Property(e => e.Expr).HasMaxLength(97); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_tomadores"); + + entity.Property(e => e.AfiliacionSeguridadSocial).HasMaxLength(20); + entity.Property(e => e.Apellidos).HasMaxLength(100); + entity.Property(e => e.CIF).HasMaxLength(20); + entity.Property(e => e.CodigoPostal).HasMaxLength(10); + entity.Property(e => e.CuentaContable).HasMaxLength(45); + entity.Property(e => e.Direccion).HasMaxLength(200); + entity.Property(e => e.Email).HasMaxLength(100); + entity.Property(e => e.EstadoCivil).HasMaxLength(45); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Nombre).HasMaxLength(100); + entity.Property(e => e.Observacion).HasMaxLength(200); + entity.Property(e => e.Poblacion).HasMaxLength(80); + entity.Property(e => e.Provincia).HasMaxLength(80); + entity.Property(e => e.RazonSocial).HasMaxLength(100); + entity.Property(e => e.Situacion).HasMaxLength(100); + entity.Property(e => e.Telefono1).HasMaxLength(20); + entity.Property(e => e.Telefono2).HasMaxLength(20); + entity.Property(e => e.idDireccionPrincipal).HasColumnType("int(11)"); + entity.Property(e => e.idEntidad) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.idPoliza) + .HasComment("tabla polizas") + .HasColumnType("int(11)"); + entity.Property(e => e.idSexo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_ultima_liquidacion_agente"); + + entity.Property(e => e.idrecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("v_ultima_liquidacion_cia"); + + entity.Property(e => e.idLiquidacionCia).HasColumnType("int(11)"); + entity.Property(e => e.idTipoLiquidacion).HasColumnType("int(11)"); + entity.Property(e => e.idrecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_cuentas"); + + entity.Property(e => e.Denominacion) + .HasMaxLength(150) + .HasDefaultValueSql("'0'"); + entity.Property(e => e.Ejercicio).HasMaxLength(40); + entity.Property(e => e.Mote).HasMaxLength(40); + entity.Property(e => e.NumeroCuenta).HasMaxLength(10); + entity.Property(e => e.Observaciones).HasMaxLength(200); + entity.Property(e => e.idCuenta).HasColumnType("int(11)"); + entity.Property(e => e.idEjercicio).HasColumnType("int(11)"); + entity.Property(e => e.idEmpresaAmortizacion).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_documentospolizassgextendidas"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.Descripcion).HasMaxLength(225); + entity.Property(e => e.DestinatarioCorreo).HasMaxLength(255); + entity.Property(e => e.Fecha).HasColumnType("datetime"); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.FechaComprobacion).HasColumnType("datetime"); + entity.Property(e => e.FechaDocumentosSuplementoRevisado).HasColumnType("datetime"); + entity.Property(e => e.FechaEnvioCorreo).HasColumnType("datetime"); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NombreFichero) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.UsuarioAdjunta) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.UsuarioComprueba) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idCorreoAsegasa).HasColumnType("int(11)"); + entity.Property(e => e.idDocumento).HasColumnType("int(11)"); + entity.Property(e => e.idDocumentoASolicitar).HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioAdjuntaFichero).HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioComprueba).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_ficherosreducidos"); + + entity.Property(e => e.Descripcion) + .HasMaxLength(80) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Fecha).HasColumnType("datetime"); + entity.Property(e => e.NombreFichero) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Observaciones) + .HasMaxLength(255) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idAplicacion).HasColumnType("int(11)"); + entity.Property(e => e.idFichero).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_historicocomisiones"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.Asegurado).HasMaxLength(100); + entity.Property(e => e.CIFAsegurado).HasMaxLength(20); + entity.Property(e => e.PlanLinea) + .HasMaxLength(10) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.PlanLineaDescripcion) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.idAsegurado).HasColumnType("int(11)"); + entity.Property(e => e.idCodigoAgente).HasColumnType("int(11)"); + entity.Property(e => e.idPolizaAgrario).HasColumnType("int(11)"); + entity.Property(e => e.numeroLiquidacion).HasMaxLength(200); + entity.Property(e => e.poliza) + .HasMaxLength(20) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_liquidacionesagentes_estadisticas"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.CausaBajaOculta).HasDefaultValueSql("b'0'"); + entity.Property(e => e.CiaNumeroPoliza).HasMaxLength(121); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCausaDevolucion).HasMaxLength(40); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.EsAnulacion) + .HasDefaultValueSql("'0'") + .HasColumnType("int(1)"); + entity.Property(e => e.EsRecibo) + .HasDefaultValueSql("'0'") + .HasColumnType("int(1)"); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.ImporteLiquidado).HasDefaultValueSql("'0'"); + entity.Property(e => e.NumeroLiquidacion) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.SubAgenteSuperior).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoProduccion).HasMaxLength(40); + entity.Property(e => e.TipoRecibo).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idRecibo) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.idliquidacionesagenterecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_liquidacionesagentesagrarios_estadisticas"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.Asegurado).HasMaxLength(100); + entity.Property(e => e.CIFAsegurado).HasMaxLength(20); + entity.Property(e => e.PlanLinea) + .HasMaxLength(10) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.PlanLineaDescripcion) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.idAgente) + .HasDefaultValueSql("'0'") + .HasColumnType("int(10)"); + entity.Property(e => e.idAsegurado).HasColumnType("int(11)"); + entity.Property(e => e.idCodigoAgente).HasColumnType("int(11)"); + entity.Property(e => e.idPolizaAgrario).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.numeroLiquidacion).HasMaxLength(200); + entity.Property(e => e.poliza) + .HasMaxLength(20) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_liquidacionesagentesverifactu"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.Aplicacion).HasColumnType("int(11)"); + entity.Property(e => e.BrutoComisiones).HasColumnType("int(11)"); + entity.Property(e => e.ErrorVerifactu).HasMaxLength(500); + entity.Property(e => e.Estado).HasColumnType("int(11)"); + entity.Property(e => e.FechaEncadenado).HasColumnType("datetime"); + entity.Property(e => e.FechaGeneracion).HasColumnType("datetime"); + entity.Property(e => e.Huella).HasMaxLength(64); + entity.Property(e => e.IdCorreo).HasColumnType("int(11)"); + entity.Property(e => e.NumeroFactura).HasMaxLength(16); + entity.Property(e => e.NumeroGeneracion).HasColumnType("int(11)"); + entity.Property(e => e.Operacion).HasColumnType("int(11)"); + entity.Property(e => e.OtrosDatos).HasMaxLength(200); + entity.Property(e => e.ReferenciaHP).HasMaxLength(10); + entity.Property(e => e.TipoFactura).HasColumnType("int(11)"); + entity.Property(e => e.TipoLiquidacion).HasMaxLength(200); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAplicacion).HasColumnType("int(11)"); + entity.Property(e => e.idAsiento).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroSEPA).HasColumnType("int(11)"); + entity.Property(e => e.idLiquidacionAgente).HasColumnType("int(11)"); + entity.Property(e => e.idLiquidacionRectificativa).HasColumnType("int(11)"); + entity.Property(e => e.idRegistro) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.idRegistroAnterior).HasColumnType("int(11)"); + entity.Property(e => e.idRegistroCorreccion).HasColumnType("int(11)"); + entity.Property(e => e.idRespuestaVerifactu).HasColumnType("int(11)"); + entity.Property(e => e.idSerieFactura).HasColumnType("int(11)"); + entity.Property(e => e.idTipoLiquidacion).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_liquidacionesciasextendidas"); + + entity.Property(e => e.Cia).HasMaxLength(100); + entity.Property(e => e.NumeroCias).HasColumnType("bigint(21)"); + entity.Property(e => e.ReferenciaHP).HasMaxLength(10); + entity.Property(e => e.Tipo).HasMaxLength(200); + entity.Property(e => e.idAsiento).HasColumnType("int(11)"); + entity.Property(e => e.idPagoLiquidacionCia).HasColumnType("int(11)"); + entity.Property(e => e.idliquidacioncia).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_liquidacionesrecibosextendidas"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCausaDevolucion).HasMaxLength(40); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.CodigoTipoLiquidacion).HasMaxLength(40); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.DescripcionTipoLiquidacion).HasMaxLength(200); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroGeneracion).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.Situacion).HasMaxLength(200); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.SubAgenteSuperior).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoRecibo).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoDevueltoBanco).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoFacturacion).HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja).HasColumnType("int(11)"); + entity.Property(e => e.idCausaDevolucion).HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idLiquidacionCia) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.idLiquidacionesCiaRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idPagoLiquidacionCia).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.idReciboAsociado) + .HasComment("tabla recibos ") + .HasColumnType("int(11)"); + entity.Property(e => e.idRemesa) + .HasComment("tabla remesa") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_polagrextendidas"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.Asegurado).HasMaxLength(100); + entity.Property(e => e.CIFAsegurado).HasMaxLength(20); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoMunicipioAsegurado).HasMaxLength(10); + entity.Property(e => e.CodigoPostalAsegurado).HasMaxLength(10); + entity.Property(e => e.CodigoProvinciaAsegurado).HasMaxLength(2); + entity.Property(e => e.Colectivo) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.DireccionAsegurado).HasMaxLength(200); + entity.Property(e => e.Grupo).HasMaxLength(200); + entity.Property(e => e.NombreMunicipioAsegurado).HasMaxLength(80); + entity.Property(e => e.NombreProvinciaAsegurado).HasMaxLength(80); + entity.Property(e => e.PlanLinea) + .HasMaxLength(10) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.PlanLineaDescripcion) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.animales).HasColumnType("int(11)"); + entity.Property(e => e.anoContable).HasColumnType("int(11)"); + entity.Property(e => e.directorio) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.emailAsegurado) + .HasMaxLength(150) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsegurado).HasColumnType("int(11)"); + entity.Property(e => e.idCia).HasColumnType("int(11)"); + entity.Property(e => e.idColectivo).HasColumnType("int(11)"); + entity.Property(e => e.idDomicilioAsegurado).HasColumnType("int(11)"); + entity.Property(e => e.idPlanLinea).HasColumnType("int(11)"); + entity.Property(e => e.idPolizaAgrario).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTomador).HasColumnType("int(11)"); + entity.Property(e => e.observaciones) + .HasMaxLength(250) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.poliza) + .HasMaxLength(20) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.referenciaHP) + .HasMaxLength(10) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.telefono1Asegurado) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.telefono2Asegurado) + .HasMaxLength(45) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.trimestreContable).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_polizasextendidas"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoPostalTomador).HasMaxLength(10); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.CuentaContableTomador).HasMaxLength(45); + entity.Property(e => e.DescripcionSuplemento).HasMaxLength(300); + entity.Property(e => e.DireccionTomador).HasMaxLength(200); + entity.Property(e => e.DocumentosPendientesComprobar).HasColumnType("int(11)"); + entity.Property(e => e.DocumentosPendientesSubir).HasColumnType("int(11)"); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.FechaDocumentosSuplementoRevisado).HasColumnType("datetime"); + entity.Property(e => e.Garantias).HasMaxLength(300); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroDirectorio).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(300); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.PlazoRetornoComision).HasColumnType("int(11)"); + entity.Property(e => e.PoblacionTomador).HasMaxLength(80); + entity.Property(e => e.ProvinciaTomador).HasMaxLength(80); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.ReferenciaAsegasa).HasMaxLength(20); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoPago).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.Usuario) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idModelo) + .HasComment("Tabla Modelos") + .HasColumnType("int(11)"); + entity.Property(e => e.idMultitarificador) + .HasComment("Numero de poliza del multitarificador") + .HasColumnType("int(11)"); + entity.Property(e => e.idOrigenPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tabla usuarios, quien da de alta") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_polizasextendidas_obsoleta"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoPostalTomador).HasMaxLength(10); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.CuentaContableTomador).HasMaxLength(45); + entity.Property(e => e.DescripcionSuplemento).HasMaxLength(300); + entity.Property(e => e.DireccionTomador).HasMaxLength(200); + entity.Property(e => e.DocumentosPendientesComprobar) + .HasDefaultValueSql("'0'") + .HasColumnType("bigint(21)"); + entity.Property(e => e.DocumentosPendientesSubir) + .HasDefaultValueSql("'0'") + .HasColumnType("bigint(21)"); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.FechaAceptacionPresupuesto).HasColumnType("datetime"); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.FechaDocumentosSuplementoRevisado).HasColumnType("datetime"); + entity.Property(e => e.Garantias).HasMaxLength(300); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroDirectorio).HasColumnType("int(11)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(300); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.PlazoRetornoComision).HasColumnType("int(11)"); + entity.Property(e => e.PoblacionTomador).HasMaxLength(80); + entity.Property(e => e.ProvinciaTomador).HasMaxLength(80); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.ReferenciaAsegasa).HasMaxLength(20); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoPago).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.Usuario) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja) + .HasComment("Tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idModelo) + .HasComment("Tabla Modelos") + .HasColumnType("int(11)"); + entity.Property(e => e.idMultitarificador) + .HasComment("Numero de poliza del multitarificador") + .HasColumnType("int(11)"); + entity.Property(e => e.idOrigenPresupuesto).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubAgente).HasColumnType("int(11)"); + entity.Property(e => e.idTipoCobro) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago).HasColumnType("int(11)"); + entity.Property(e => e.idUsuario) + .HasComment("tabla usuarios, quien da de alta") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_polizassg_estadisticas"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.CausaBajaOculta).HasDefaultValueSql("b'0'"); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoPago).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_recibos_estadisticas"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.CausaBajaOculta).HasDefaultValueSql("b'0'"); + entity.Property(e => e.CiaNumeroPoliza).HasMaxLength(121); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCausaDevolucion).HasMaxLength(40); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.EsAnulacion).HasColumnType("int(1)"); + entity.Property(e => e.EsRecibo).HasColumnType("int(1)"); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.SubAgenteSuperior).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoProduccion).HasMaxLength(40); + entity.Property(e => e.TipoRecibo).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_recibosextendidos"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCausaDevolucion).HasMaxLength(40); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoPostalTomador).HasMaxLength(10); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.CuentaContableTomador).HasMaxLength(45); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.Situacion).HasMaxLength(200); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.SubAgenteSuperior).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoRecibo).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoDevueltoBanco).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoFacturacion).HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja).HasColumnType("int(11)"); + entity.Property(e => e.idCausaDevolucion).HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idReciboAsociado) + .HasComment("tabla recibos ") + .HasColumnType("int(11)"); + entity.Property(e => e.idRemesa) + .HasComment("tabla remesa") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_recibosextendidos_dc"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.PlazoRetornoComision).HasColumnType("int(11)"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.Situacion).HasMaxLength(200); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoRecibo).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoDevueltoBanco).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoFacturacion).HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja).HasColumnType("int(11)"); + entity.Property(e => e.idCausaDevolucion).HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idReciboAsociado) + .HasComment("tabla recibos ") + .HasColumnType("int(11)"); + entity.Property(e => e.idRemesa) + .HasComment("tabla remesa") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_recibosextendidos_la"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.PlazoRetornoComision).HasColumnType("int(11)"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.Situacion).HasMaxLength(200); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoRecibo).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoDevueltoBanco).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoFacturacion).HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja).HasColumnType("int(11)"); + entity.Property(e => e.idCausaDevolucion).HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idReciboAsociado) + .HasComment("tabla recibos ") + .HasColumnType("int(11)"); + entity.Property(e => e.idRemesa) + .HasComment("tabla remesa") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_recibosextendidos_lc"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.PlazoRetornoComision).HasColumnType("int(11)"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.Situacion).HasMaxLength(200); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoRecibo).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoDevueltoBanco).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoFacturacion).HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja).HasColumnType("int(11)"); + entity.Property(e => e.idCausaDevolucion).HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idReciboAsociado) + .HasComment("tabla recibos ") + .HasColumnType("int(11)"); + entity.Property(e => e.idRemesa) + .HasComment("tabla remesa") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_recibosextendidos_ti"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCausaDevolucion).HasMaxLength(40); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.Situacion).HasMaxLength(200); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.SubAgenteSuperior).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoRecibo).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoDevueltoBanco).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoFacturacion).HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja).HasColumnType("int(11)"); + entity.Property(e => e.idCausaDevolucion).HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idReciboAsociado) + .HasComment("tabla recibos ") + .HasColumnType("int(11)"); + entity.Property(e => e.idRemesa) + .HasComment("tabla remesa") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_recibospendientesdescobro_nue"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCausaDevolucion).HasMaxLength(40); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.Situacion).HasMaxLength(200); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.SubAgenteSuperior).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoRecibo).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoDevueltoBanco).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoFacturacion).HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja).HasColumnType("int(11)"); + entity.Property(e => e.idCausaDevolucion).HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo) + .HasDefaultValueSql("'0'") + .HasColumnType("int(11)"); + entity.Property(e => e.idReciboAsociado) + .HasComment("tabla recibos ") + .HasColumnType("int(11)"); + entity.Property(e => e.idRemesa) + .HasComment("tabla remesa") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_siniestros_eiac_extendidos"); + + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.DescripcionSiniestro).HasMaxLength(2048); + entity.Property(e => e.Direccion).HasMaxLength(200); + entity.Property(e => e.FechaDeclaracion).HasColumnType("datetime"); + entity.Property(e => e.FechaOcurrencia).HasColumnType("datetime"); + entity.Property(e => e.FechaSituacion).HasColumnType("datetime"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasMaxLength(10); + entity.Property(e => e.PosicionSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.SituacionAsegasa).HasColumnType("int(11)"); + entity.Property(e => e.TipologiaSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idCompania).HasColumnType("int(11)"); + entity.Property(e => e.idFicheroCompania).HasColumnType("int(11)"); + entity.Property(e => e.idLugarSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.idSiniestroEIAC).HasColumnType("int(11)"); + entity.Property(e => e.idSiniestroEntidad).HasMaxLength(40); + entity.Property(e => e.idUsuarioSituacion).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_siniestros_estadisticas"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.Culpa).HasMaxLength(200); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.NumeroGestiones) + .HasDefaultValueSql("'0'") + .HasColumnType("bigint(21)"); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idCulpa) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idRamo) + .HasComment("tabla ramos") + .HasColumnType("int(11)"); + entity.Property(e => e.idSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.idTramitacion) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vf_siniestrosextendidos"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienContrario).HasMaxLength(300); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.BienesAseguradosPoliza).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.CiaContrario).HasMaxLength(100); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.DanosCliente).HasMaxLength(200); + entity.Property(e => e.DanosContrario).HasMaxLength(200); + entity.Property(e => e.DescripcionSiniestro).HasMaxLength(500); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FechaAlta).HasColumnType("datetime"); + entity.Property(e => e.FechaAltaPoliza).HasColumnType("datetime"); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.MatriculaContrario).HasMaxLength(20); + entity.Property(e => e.NombreUsuario) + .HasMaxLength(100) + .UseCollation("latin1_swedish_ci") + .HasCharSet("latin1"); + entity.Property(e => e.NumeroGestiones) + .HasDefaultValueSql("'0'") + .HasColumnType("bigint(21)"); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroPolizaContrario).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(200); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.ReferenciaAsegasaHP).HasMaxLength(16); + entity.Property(e => e.ReferenciaCompania).HasMaxLength(45); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente) + .HasComment("tabla agentes") + .HasColumnType("int(11)"); + entity.Property(e => e.idCulpa) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idEntidadContrario) + .HasComment("tabla entidades") + .HasColumnType("int(11)"); + entity.Property(e => e.idEntidadTaller).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza) + .HasComment("tabla polizas") + .HasColumnType("int(11)"); + entity.Property(e => e.idSiniestro).HasColumnType("int(11)"); + entity.Property(e => e.idTramitacion) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioCreador).HasColumnType("int(11)"); + entity.Property(e => e.idUsuarioModificador) + .HasComment("tabla usuarios") + .HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vp_liquidacionesagentesrecibos"); + + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vp_liquidacionescompaniasrecibos"); + + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vp_liquidacionescompaniasrecibos_devueltos"); + + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + }); + + modelBuilder.Entity(entity => + { + entity + .HasNoKey() + .ToView("vp_recibosextendidos"); + + entity.Property(e => e.Agente).HasMaxLength(100); + entity.Property(e => e.BienesAsegurados).HasMaxLength(300); + entity.Property(e => e.CIFTomador).HasMaxLength(20); + entity.Property(e => e.CausaBaja).HasMaxLength(200); + entity.Property(e => e.Coberturas).HasMaxLength(300); + entity.Property(e => e.CodigoAgente).HasMaxLength(20); + entity.Property(e => e.CodigoCausaDevolucion).HasMaxLength(40); + entity.Property(e => e.CodigoCia).HasMaxLength(20); + entity.Property(e => e.CodigoRecibo).HasMaxLength(30); + entity.Property(e => e.CodigoSubAgente).HasMaxLength(4); + entity.Property(e => e.Compania).HasMaxLength(100); + entity.Property(e => e.CuentaContableTomador).HasMaxLength(45); + entity.Property(e => e.EmailTomador).HasMaxLength(100); + entity.Property(e => e.FamiliaRamo).HasMaxLength(200); + entity.Property(e => e.IBAN).HasMaxLength(45); + entity.Property(e => e.Matricula).HasMaxLength(20); + entity.Property(e => e.NumeroPoliza).HasMaxLength(20); + entity.Property(e => e.NumeroRecibo).HasMaxLength(20); + entity.Property(e => e.NumeroSuplemento).HasColumnType("int(11)"); + entity.Property(e => e.Observaciones).HasMaxLength(500); + entity.Property(e => e.ObservacionesPoliza).HasMaxLength(300); + entity.Property(e => e.Oficina) + .HasMaxLength(9) + .HasDefaultValueSql("''") + .UseCollation("utf8mb4_general_ci") + .HasCharSet("utf8mb4"); + entity.Property(e => e.Ramo).HasMaxLength(150); + entity.Property(e => e.Situacion).HasMaxLength(200); + entity.Property(e => e.Sobrecomision).HasDefaultValueSql("'0'"); + entity.Property(e => e.SubAgente).HasMaxLength(200); + entity.Property(e => e.SubAgenteSuperior).HasMaxLength(200); + entity.Property(e => e.Telefono1Tomador).HasMaxLength(20); + entity.Property(e => e.Telefono2Tomador).HasMaxLength(20); + entity.Property(e => e.TipoPago).HasMaxLength(200); + entity.Property(e => e.TipoRecibo).HasMaxLength(200); + entity.Property(e => e.Tomador).HasMaxLength(100); + entity.Property(e => e.idAgente).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoDevueltoBanco).HasColumnType("int(11)"); + entity.Property(e => e.idAsientoFacturacion).HasColumnType("int(11)"); + entity.Property(e => e.idCausaBaja).HasColumnType("int(11)"); + entity.Property(e => e.idCausaDevolucion).HasColumnType("int(11)"); + entity.Property(e => e.idCompania) + .HasComment("tabla compañia") + .HasColumnType("int(11)"); + entity.Property(e => e.idDuracion).HasColumnType("int(11)"); + entity.Property(e => e.idPoliza).HasColumnType("int(11)"); + entity.Property(e => e.idRecibo).HasColumnType("int(11)"); + entity.Property(e => e.idReciboAsociado) + .HasComment("tabla recibos ") + .HasColumnType("int(11)"); + entity.Property(e => e.idRemesa) + .HasComment("tabla remesa") + .HasColumnType("int(11)"); + entity.Property(e => e.idSituacion).HasColumnType("int(11)"); + entity.Property(e => e.idSubagente).HasColumnType("int(11)"); + entity.Property(e => e.idTipo).HasColumnType("int(11)"); + entity.Property(e => e.idTipoPago) + .HasComment("tabla enumeraciones") + .HasColumnType("int(11)"); + }); + + OnModelCreatingPartial(modelBuilder); + } + + partial void OnModelCreatingPartial(ModelBuilder modelBuilder); +} diff --git a/bdAsegasa/dbcontext/tscgestionasegasa.cs b/bdAsegasa/dbcontext/tscgestionasegasa.cs new file mode 100644 index 0000000..1ea4e8e --- /dev/null +++ b/bdAsegasa/dbcontext/tscgestionasegasa.cs @@ -0,0 +1,172 @@ +//using bdAsegasa.CompiledModels; +using bdtsFactu.dbcontext; +using Microsoft.AspNetCore.Mvc.Formatters; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Options; +using System.Reflection.Emit; +using System.Runtime.CompilerServices; +using tsEFCore8.Extensiones; +using tsUtilidades; +using tsUtilidades.Enumeraciones; +using tsUtilidades.Extensiones; +using static System.Net.Mime.MediaTypeNames; +using Microsoft.Extensions.Hosting; +using bdAsegasa.db; +using bdAsegasa.dbcontext; + +namespace bdAsegasa +{ + public class tscgestionasegasa : bdAsegasa.dbcontext.gestionasegasaContext, tsUtilidades.ItsContexto + + { + + public static bool Cargado = false; + private static String? _Ip = null; + public string? ip + { + get + { + return _Ip; + } + set + { + _Ip = value; + } + } + + public string Aplicaciones { get; private set; } + + //protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) + //{ + // if (!optionsBuilder.IsConfigured) + // { + // // optionsBuilder.UseModel(tscFactuModel.Instance); + // if (CargaDiferida) optionsBuilder.UseLazyLoadingProxies(); + // if (NoTracking) optionsBuilder.UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking); + // // optionsBuilder.UseLoggerFactory(_myLoggerFactory); + // optionsBuilder.UseMySql("server=tsFactu;database=tsFactu;port=13306;uid=m3soft;pwd=Romian2023--;persistsecurityinfo=True;TreatTinyAsBoolean=True;allowuservariables=True", Microsoft.EntityFrameworkCore.ServerVersion.Parse("8.2.0-mysql")); + // } + //} + + public static readonly Microsoft.Extensions.Logging.LoggerFactory _myLoggerFactory = + new LoggerFactory(new[] { + new Microsoft.Extensions.Logging.Debug.DebugLoggerProvider() + }); + + private static string? ConexionPorDefecto=null; + public static tscgestionasegasa NuevoContexto(string NombreConexion = "" ,bool Lazy = true, bool SoloLectura = false, bool ConEventoSavingChanges = false, string aplicaciones = "") + { + string? cnx = null; + if (NombreConexion=="") + { + if (ConexionPorDefecto == null) ConexionPorDefecto = Conexion.ObtieneConexionDefecto(); + cnx = ConexionPorDefecto; + } + else + { + cnx = Conexion.ObtieneConexionDefecto(NombreConexion); + } + + var ob = new DbContextOptionsBuilder(); + // ob.UseLoggerFactory(_myLoggerFactory); + // ob.UseInternalServiceProvider() + ob.UseMySql(cnx, Microsoft.EntityFrameworkCore.ServerVersion.Parse("5.7.0-mysql")); + if (Lazy) ob.UseLazyLoadingProxies(); + if (SoloLectura) ob.UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking); + var Opciones = ob.Options; + tscgestionasegasa bd = new tscgestionasegasa(Opciones); + bd.Aplicaciones = aplicaciones; + if (ConEventoSavingChanges) bd.SavingChanges += GuardandoCambios; + return bd; + + } + + //public static Datos.BBDD ObtieneBBDD(string NombreConexion) + + private static void GuardandoCambios(object? sender, SavingChangesEventArgs e) + { + try + { + tscgestionasegasa bd = (tscgestionasegasa)sender; + var lap = bd.Aplicaciones.Split("|"); + //foreach (string ap in lap) + //{ + // switch (ap.ToLower()) + // { + // case "facturas": + // { + // bdAsegasa.db.facturas.GuardandoCambios(bd, ap); + // break; + // } + // } + //} + } + catch (Exception) + { + + throw; + } + } + + public tscgestionasegasa(DbContextOptions Opciones) : base(Opciones) + { + if (_Ip == null) { ip = tsEFCore8.bbdd.ObtieneIPMysql(this); } + else { ip = _Ip; } + } + + + + public void AñadeObjeto(object Registro) + { + this.Add(Registro); + } + + public bool CompruebaUnico(EstadosAplicacion estado, string NombreCampo, object Valor, string NombreTablaBase, object DataContext) + { + return this.CompruebaRegistroUnico(estado == EstadosAplicacion.ModificandoRegistro, "bdAsegasa.db", NombreTablaBase, NombreCampo, Valor, DataContext); + } + public void EliminaObjeto(object Registro) + { + if (this.Entry(Registro).State == Microsoft.EntityFrameworkCore.EntityState.Detached) + { + this.Entry(Registro).State = Microsoft.EntityFrameworkCore.EntityState.Unchanged; + } + else if (this.Entry(Registro).State == Microsoft.EntityFrameworkCore.EntityState.Added) + { + this.Remove(Registro); + this.Entry(Registro).State = Microsoft.EntityFrameworkCore.EntityState.Unchanged; + } + else + { + this.Remove(Registro); + } + + } + + public int GuardarCambios() + { + return this.SaveChanges(); + } + + public bool HayModificaciones() + { + return this.ChangeTracker.HasChanges(); + //IEnumerable res = from e in this.ChangeTracker.Entries() + // where e.State.HasFlag(Microsoft.EntityFrameworkCore.EntityState.Added) || + // e.State.HasFlag(Microsoft.EntityFrameworkCore.EntityState.Modified) || + // e.State.HasFlag(Microsoft.EntityFrameworkCore.EntityState.Deleted) + // select e; + + //if (res.Any()) + // return true; + //return false; + } + public int ObtieneLongitudCampo(string NombreTablaBase, string NombreCampo) + { + return this.ObtieneMaximaLongitudCampo("bdAsegasa.db", NombreTablaBase, NombreCampo); + } + + } +} \ No newline at end of file diff --git a/bdAsegasa/efpt.config.json b/bdAsegasa/efpt.config.json new file mode 100644 index 0000000..65eaad2 --- /dev/null +++ b/bdAsegasa/efpt.config.json @@ -0,0 +1,798 @@ +{ + "CodeGenerationMode": 4, + "ContextClassName": "gestionasegasaContext", + "ContextNamespace": null, + "FilterSchemas": false, + "IncludeConnectionString": false, + "MinimumProductVersion": "2.6.1186", + "ModelNamespace": null, + "OutputContextPath": "dbcontext", + "OutputPath": "db", + "PreserveCasingWithRegex": true, + "ProjectRootNamespace": "bdAsegasa", + "Schemas": null, + "SelectedHandlebarsLanguage": 2, + "SelectedToBeGenerated": 0, + "T4TemplatePath": null, + "Tables": [ + { + "Name": "accionessiniestros_eiac", + "ObjectType": 0 + }, + { + "Name": "actassiniestrosagrario", + "ObjectType": 0 + }, + { + "Name": "actualizacioneshp", + "ObjectType": 0 + }, + { + "Name": "actualizacionessiniestros_eiac", + "ObjectType": 0 + }, + { + "Name": "agentes", + "ObjectType": 0 + }, + { + "Name": "amortizacionrecibos", + "ObjectType": 0 + }, + { + "Name": "aplicacionesasientos", + "ObjectType": 0 + }, + { + "Name": "apuntes", + "ObjectType": 0 + }, + { + "Name": "apuntesmodelo", + "ObjectType": 0 + }, + { + "Name": "asientos", + "ObjectType": 0 + }, + { + "Name": "asientosmodelos", + "ObjectType": 0 + }, + { + "Name": "autorizacionesgrupos", + "ObjectType": 0 + }, + { + "Name": "autorizacionesusuarios", + "ObjectType": 0 + }, + { + "Name": "avant2__agentes", + "ObjectType": 0 + }, + { + "Name": "avant2__sso", + "ObjectType": 0 + }, + { + "Name": "avant2__suborganizaciones", + "ObjectType": 0 + }, + { + "Name": "bancos", + "ObjectType": 0 + }, + { + "Name": "bloqueos", + "ObjectType": 0 + }, + { + "Name": "cajas", + "ObjectType": 0 + }, + { + "Name": "caser__autologin", + "ObjectType": 0 + }, + { + "Name": "caser__marcas", + "ObjectType": 0 + }, + { + "Name": "caser__modelos", + "ObjectType": 0 + }, + { + "Name": "caser__tipos_combustible", + "ObjectType": 0 + }, + { + "Name": "caser__tipos_vehiculos", + "ObjectType": 0 + }, + { + "Name": "caser__versiones", + "ObjectType": 0 + }, + { + "Name": "celdasinformescontables", + "ObjectType": 0 + }, + { + "Name": "certificados", + "ObjectType": 0 + }, + { + "Name": "codigospostales", + "ObjectType": 0 + }, + { + "Name": "colectivos", + "ObjectType": 0 + }, + { + "Name": "comarcas", + "ObjectType": 0 + }, + { + "Name": "comisionesagentes", + "ObjectType": 0 + }, + { + "Name": "comisionescompanias", + "ObjectType": 0 + }, + { + "Name": "comisionlineacompania", + "ObjectType": 0 + }, + { + "Name": "companias", + "ObjectType": 0 + }, + { + "Name": "conceptosapuntes", + "ObjectType": 0 + }, + { + "Name": "conciliacionesbancarias", + "ObjectType": 0 + }, + { + "Name": "conexiones", + "ObjectType": 0 + }, + { + "Name": "conexionesbd", + "ObjectType": 0 + }, + { + "Name": "correos", + "ObjectType": 0 + }, + { + "Name": "cuentas", + "ObjectType": 0 + }, + { + "Name": "cuentasceldasinformescontables", + "ObjectType": 0 + }, + { + "Name": "cuentascorreo", + "ObjectType": 0 + }, + { + "Name": "departamentos", + "ObjectType": 0 + }, + { + "Name": "departamentoscontactocompanias", + "ObjectType": 0 + }, + { + "Name": "departamentosmiembros", + "ObjectType": 0 + }, + { + "Name": "destinos", + "ObjectType": 0 + }, + { + "Name": "detallesamortizacionrecibos", + "ObjectType": 0 + }, + { + "Name": "direcciones", + "ObjectType": 0 + }, + { + "Name": "documentosasolicitar", + "ObjectType": 0 + }, + { + "Name": "documentospolizasagrario", + "ObjectType": 0 + }, + { + "Name": "documentospolizassg", + "ObjectType": 0 + }, + { + "Name": "documentossiniestros", + "ObjectType": 0 + }, + { + "Name": "documentosvarios", + "ObjectType": 0 + }, + { + "Name": "ejercicioscontables", + "ObjectType": 0 + }, + { + "Name": "empresascontables", + "ObjectType": 0 + }, + { + "Name": "entidades", + "ObjectType": 0 + }, + { + "Name": "entidades_tokens", + "ObjectType": 0 + }, + { + "Name": "entidadespolizas", + "ObjectType": 0 + }, + { + "Name": "entidadesrelacionadas", + "ObjectType": 0 + }, + { + "Name": "enumeraciones", + "ObjectType": 0 + }, + { + "Name": "estadossiniestros_eiac", + "ObjectType": 0 + }, + { + "Name": "excepcionesciasramos", + "ObjectType": 0 + }, + { + "Name": "expedientesagentes", + "ObjectType": 0 + }, + { + "Name": "expedientespolizas", + "ObjectType": 0 + }, + { + "Name": "expedientesrecibos", + "ObjectType": 0 + }, + { + "Name": "expedientessiniestros_eiac", + "ObjectType": 0 + }, + { + "Name": "extractosbancarios", + "ObjectType": 0 + }, + { + "Name": "ficheros", + "ObjectType": 0 + }, + { + "Name": "ficherosadjuntos", + "ObjectType": 0 + }, + { + "Name": "ficheroscompanias", + "ObjectType": 0 + }, + { + "Name": "ficherosconfiguracion", + "ObjectType": 0 + }, + { + "Name": "gestionespolizasagrario", + "ObjectType": 0 + }, + { + "Name": "gestionespolizassg", + "ObjectType": 0 + }, + { + "Name": "gestionesrecibos", + "ObjectType": 0 + }, + { + "Name": "gestionessiniestros", + "ObjectType": 0 + }, + { + "Name": "gestionesvarias", + "ObjectType": 0 + }, + { + "Name": "grupobd", + "ObjectType": 0 + }, + { + "Name": "gruposenumeraciones", + "ObjectType": 0 + }, + { + "Name": "gruposmenus", + "ObjectType": 0 + }, + { + "Name": "gruposusuarios", + "ObjectType": 0 + }, + { + "Name": "historicocomisiones", + "ObjectType": 0 + }, + { + "Name": "incentivos", + "ObjectType": 0 + }, + { + "Name": "informescontables", + "ObjectType": 0 + }, + { + "Name": "liquidacionesagenterecibos", + "ObjectType": 0 + }, + { + "Name": "liquidacionesagentes", + "ObjectType": 0 + }, + { + "Name": "liquidacionescompanias", + "ObjectType": 0 + }, + { + "Name": "liquidacionescompaniasrecibos", + "ObjectType": 0 + }, + { + "Name": "liquidacionesviajes", + "ObjectType": 0 + }, + { + "Name": "logs", + "ObjectType": 0 + }, + { + "Name": "mensajes", + "ObjectType": 0 + }, + { + "Name": "menus", + "ObjectType": 0 + }, + { + "Name": "modificacionespolizasagrario", + "ObjectType": 0 + }, + { + "Name": "movimientosbancarios", + "ObjectType": 0 + }, + { + "Name": "municipios", + "ObjectType": 0 + }, + { + "Name": "notificaciones", + "ObjectType": 0 + }, + { + "Name": "pagosliquidacionescias", + "ObjectType": 0 + }, + { + "Name": "pagossiniestros_eiac", + "ObjectType": 0 + }, + { + "Name": "pagostelematicos", + "ObjectType": 0 + }, + { + "Name": "permisos", + "ObjectType": 0 + }, + { + "Name": "personasdecontactoagentes", + "ObjectType": 0 + }, + { + "Name": "personasdecontactocompanias", + "ObjectType": 0 + }, + { + "Name": "personasdecontactoentidades", + "ObjectType": 0 + }, + { + "Name": "peticionescontrasena", + "ObjectType": 0 + }, + { + "Name": "peticionesverifactu", + "ObjectType": 0 + }, + { + "Name": "planeslineas", + "ObjectType": 0 + }, + { + "Name": "plantillas", + "ObjectType": 0 + }, + { + "Name": "polizasagrario", + "ObjectType": 0 + }, + { + "Name": "polizassg", + "ObjectType": 0 + }, + { + "Name": "procesos", + "ObjectType": 0 + }, + { + "Name": "provincias", + "ObjectType": 0 + }, + { + "Name": "ramos", + "ObjectType": 0 + }, + { + "Name": "ramosdgs", + "ObjectType": 0 + }, + { + "Name": "ramosdgscompania", + "ObjectType": 0 + }, + { + "Name": "recibos", + "ObjectType": 0 + }, + { + "Name": "registrosactualizados", + "ObjectType": 0 + }, + { + "Name": "registrosverifactu", + "ObjectType": 0 + }, + { + "Name": "regularizacion", + "ObjectType": 0 + }, + { + "Name": "regularizacionespagosagentes", + "ObjectType": 0 + }, + { + "Name": "remesas", + "ObjectType": 0 + }, + { + "Name": "seriesfacturas", + "ObjectType": 0 + }, + { + "Name": "sesiones", + "ObjectType": 0 + }, + { + "Name": "siniestros", + "ObjectType": 0 + }, + { + "Name": "siniestros_eiac", + "ObjectType": 0 + }, + { + "Name": "subagentes", + "ObjectType": 0 + }, + { + "Name": "tiposgestionsiniestros", + "ObjectType": 0 + }, + { + "Name": "usuarios", + "ObjectType": 0 + }, + { + "Name": "agentes_subagentes", + "ObjectType": 3 + }, + { + "Name": "axa__tractores_temp1", + "ObjectType": 3 + }, + { + "Name": "axa__tractores_temp2", + "ObjectType": 3 + }, + { + "Name": "axa__tractores_temp3", + "ObjectType": 3 + }, + { + "Name": "axa__tractores_temp4", + "ObjectType": 3 + }, + { + "Name": "caser__autologin__agentes", + "ObjectType": 3 + }, + { + "Name": "epiban", + "ObjectType": 3 + }, + { + "Name": "polizas_avant2", + "ObjectType": 3 + }, + { + "Name": "polizas_avant2_agente3", + "ObjectType": 3 + }, + { + "Name": "polizas_avant2_ramos", + "ObjectType": 3 + }, + { + "Name": "v_act_apuntes", + "ObjectType": 3 + }, + { + "Name": "v_act_entidades", + "ObjectType": 3 + }, + { + "Name": "v_act_polizassg", + "ObjectType": 3 + }, + { + "Name": "v_act_recibos", + "ObjectType": 3 + }, + { + "Name": "v_apuntesagrupados", + "ObjectType": 3 + }, + { + "Name": "v_apuntesextendidos", + "ObjectType": 3 + }, + { + "Name": "v_codigosrecibos", + "ObjectType": 3 + }, + { + "Name": "v_descobro_cia", + "ObjectType": 3 + }, + { + "Name": "v_devolucion_cia", + "ObjectType": 3 + }, + { + "Name": "v_documentos_pendientes_comprobacion", + "ObjectType": 3 + }, + { + "Name": "v_documentos_pendientes_subir", + "ObjectType": 3 + }, + { + "Name": "v_documentospendientes", + "ObjectType": 3 + }, + { + "Name": "v_lc_agrupadas_cia", + "ObjectType": 3 + }, + { + "Name": "v_liquidacion_agente", + "ObjectType": 3 + }, + { + "Name": "v_liquidacion_cia", + "ObjectType": 3 + }, + { + "Name": "v_liquidacion_cia_devuelto", + "ObjectType": 3 + }, + { + "Name": "v_liquidacionescompaniasrecibostipo", + "ObjectType": 3 + }, + { + "Name": "v_numero_gestiones_siniestros", + "ObjectType": 3 + }, + { + "Name": "v_recibos_liquidacionagentes", + "ObjectType": 3 + }, + { + "Name": "v_recibospendientesdescobro_1", + "ObjectType": 3 + }, + { + "Name": "v_recibospendientesdescobro_2", + "ObjectType": 3 + }, + { + "Name": "v_registrostablas", + "ObjectType": 3 + }, + { + "Name": "v_tomadores", + "ObjectType": 3 + }, + { + "Name": "v_ultima_liquidacion_agente", + "ObjectType": 3 + }, + { + "Name": "v_ultima_liquidacion_cia", + "ObjectType": 3 + }, + { + "Name": "vf_cuentas", + "ObjectType": 3 + }, + { + "Name": "vf_documentospolizassgextendidas", + "ObjectType": 3 + }, + { + "Name": "vf_ficherosreducidos", + "ObjectType": 3 + }, + { + "Name": "vf_historicocomisiones", + "ObjectType": 3 + }, + { + "Name": "vf_liquidacionesagentes_estadisticas", + "ObjectType": 3 + }, + { + "Name": "vf_liquidacionesagentesagrarios_estadisticas", + "ObjectType": 3 + }, + { + "Name": "vf_liquidacionesagentesverifactu", + "ObjectType": 3 + }, + { + "Name": "vf_liquidacionesciasextendidas", + "ObjectType": 3 + }, + { + "Name": "vf_liquidacionesrecibosextendidas", + "ObjectType": 3 + }, + { + "Name": "vf_polagrextendidas", + "ObjectType": 3 + }, + { + "Name": "vf_polizasextendidas", + "ObjectType": 3 + }, + { + "Name": "vf_polizasextendidas_obsoleta", + "ObjectType": 3 + }, + { + "Name": "vf_polizassg_estadisticas", + "ObjectType": 3 + }, + { + "Name": "vf_recibos_estadisticas", + "ObjectType": 3 + }, + { + "Name": "vf_recibosextendidos", + "ObjectType": 3 + }, + { + "Name": "vf_recibosextendidos_dc", + "ObjectType": 3 + }, + { + "Name": "vf_recibosextendidos_la", + "ObjectType": 3 + }, + { + "Name": "vf_recibosextendidos_lc", + "ObjectType": 3 + }, + { + "Name": "vf_recibosextendidos_ti", + "ObjectType": 3 + }, + { + "Name": "vf_recibospendientesdescobro_nue", + "ObjectType": 3 + }, + { + "Name": "vf_siniestros_eiac_extendidos", + "ObjectType": 3 + }, + { + "Name": "vf_siniestros_estadisticas", + "ObjectType": 3 + }, + { + "Name": "vf_siniestrosextendidos", + "ObjectType": 3 + }, + { + "Name": "vp_liquidacionesagentesrecibos", + "ObjectType": 3 + }, + { + "Name": "vp_liquidacionescompaniasrecibos", + "ObjectType": 3 + }, + { + "Name": "vp_liquidacionescompaniasrecibos_devueltos", + "ObjectType": 3 + }, + { + "Name": "vp_recibosextendidos", + "ObjectType": 3 + } + ], + "UiHint": null, + "UncountableWords": null, + "UseAsyncStoredProcedureCalls": true, + "UseBoolPropertiesWithoutDefaultSql": true, + "UseDatabaseNames": true, + "UseDatabaseNamesForRoutines": true, + "UseDateOnlyTimeOnly": false, + "UseDbContextSplitting": false, + "UseDecimalDataAnnotationForSprocResult": true, + "UseFluentApiOnly": true, + "UseHandleBars": false, + "UseHierarchyId": false, + "UseInflector": false, + "UseInternalAccessModifiersForSprocsAndFunctions": false, + "UseLegacyPluralizer": false, + "UseManyToManyEntity": false, + "UseNoDefaultConstructor": false, + "UseNoNavigations": false, + "UseNoObjectFilter": false, + "UseNodaTime": false, + "UseNullableReferences": true, + "UsePrefixNavigationNaming": false, + "UseSchemaFolders": false, + "UseSchemaNamespaces": false, + "UseSpatial": false, + "UseT4": true, + "UseT4Split": false +} \ No newline at end of file