import { Entity, PrimaryColumn, Column } from "typeorm"; @Entity("usu_usuarios", { synchronize: false }) export class Usuario { @PrimaryColumn({ name: "uid", type: "varchar", length: 32 }) id: string; @Column({ name: "cedula", type: "varchar", length: 20 }) cedula: string; @Column({ name: "fullname", type: "varchar", length: 100 }) fullname: string; @Column({ name: "nombre", type: "varchar", length: 50 }) nombre: string; @Column({ name: "apellido", type: "varchar", length: 50 }) apellido: string; @Column({ name: "email", type: "varchar", length: 100 }) email: string; @Column({ name: "contrasena", type: "varchar", length: 256 }) contrasena: string; @Column({ name: "celular", type: "varchar", length: 15 }) celular: string; @Column({ name: "genero", type: "varchar", length: 10 }) genero: string; @Column({ name: "fecha_registro", type: "datetime" }) fechaRegistro: Date; @Column({ name: "cod_ciudad", type: "int" }) codCiudad: number; @Column({ name: "cumpleanos", type: "date" }) cumpleanos: Date; @Column({ name: "foto", type: "varchar", length: 300 }) foto: string; @Column({ name: "estado", type: "varchar", length: 10 }) estado: string; @Column({ name: "plataforma_origen", type: "varchar", length: 6 }) plataformaOrigen: string; @Column({ name: "tipo_cuenta", type: "char", length: 2 }) tipoCuenta: string; @Column({ name: "token", type: "varchar", length: 300 }) token: string; @Column({ name: "plataforma_movil", type: "char", length: 1 }) plataformaMovil: string; @Column({ name: "uid_cms", type: "varchar", length: 32 }) uidCms: string; @Column({ name: "nota", type: "varchar", length: 200 }) nota: string; @Column({ name: "envio_mail", type: "varchar", length: 10 }) envioMail: string; @Column({ name: "envio_sms", type: "varchar", length: 10 }) envioSMS: string; @Column({ name: "enviar_push", type: "varchar", length: 10 }) enviarPush: string; @Column({ name: "ip_cajero", type: "varchar", length: 100 }) ipCajero: string; @Column({ name: "cod_pais", type: "varchar", length: 2 }) codPais: string; @Column({ name: "comercios_inscritos", type: "int" }) comerciosInscritos: number; @Column({ name: "visitas", type: "int" }) visitas: number; @Column({ name: "fecha_ingreso_app", type: "date" }) fechaIngresoApp: Date; @Column({ name: "fecha_perfil_completado", type: "date" }) fechaPerfilCompletado: Date; @Column({ name: "tipo_documento", type: "int" }) tipoIdentificacion: number; @Column({ name: "fecha_intento_ingreso", type: "datetime" }) fechaIntentoIngreso: Date; @Column({ name: "intentos", type: "int" }) intentos: number; @Column({ name: "coins_test", type: "varchar" , length: 10 }) coins_test: string; constructor( id: string, cedula: string, fullname: string, nombre: string, apellido: string, email: string, contrasena: string, celular: string, genero: string, fechaRegistro: Date, codCiudad: number, cumpleanos: Date, foto: string, estado: string, plataformaOrigen: string, tipoCuenta: string, token: string, plataformaMovil: string, uidCms: string, nota: string, envioMail: string, envioSMS: string, enviarPush: string, ipCajero: string, codPais: string, comerciosInscritos: number, visitas: number, fechaIngresoApp: Date, fechaPerfilCompletado: Date, tipoIdentificacion: number, fechaIntentoIngreso: Date, intentos: number, coins_test: string ) { this.id = id; this.cedula = cedula; this.fullname = fullname; this.nombre = nombre; this.apellido = apellido; this.email = email; this.contrasena = contrasena; this.celular = celular; this.genero = genero; this.fechaRegistro = fechaRegistro; this.codCiudad = codCiudad; this.cumpleanos = cumpleanos; this.foto = foto; this.estado = estado; this.plataformaOrigen = plataformaOrigen; this.tipoCuenta = tipoCuenta; this.token = token; this.plataformaMovil = plataformaMovil; this.uidCms = uidCms; this.nota = nota; this.envioMail = envioMail; this.envioSMS = envioSMS; this.enviarPush = enviarPush; this.ipCajero = ipCajero; this.codPais = codPais; this.comerciosInscritos = comerciosInscritos; this.visitas = visitas; this.fechaIngresoApp = fechaIngresoApp; this.fechaPerfilCompletado = fechaPerfilCompletado; this.tipoIdentificacion = tipoIdentificacion; this.fechaIntentoIngreso = fechaIntentoIngreso; this.intentos = intentos; this.coins_test = coins_test; } }