import { Entity, PrimaryColumn, Column } from "typeorm"; @Entity("usu_usuarios_historical", { synchronize: false }) export class UsuarioHistorical { @PrimaryColumn({ name: "uid", type: "varchar", length: 32 }) id: string; @Column({ name: "nombre", type: "varchar", length: 50 }) nombre: string; @Column({ name: "apellido", type: "varchar", length: 50 }) apellido: string; @Column({ name: "fullname", type: "varchar", length: 100 }) fullname: string; @Column({ name: "cedula", type: "varchar", length: 20 }) cedula: string; @Column({ name: "email", type: "varchar", length: 100 }) email: string; @Column({ name: "celular", type: "varchar", length: 20 }) celular: string; @Column({ name: "cumpleanos", type: "date" }) cumpleanos: Date; @Column({ name: "genero", type: "varchar", length: 10 }) genero: string; @Column({ name: "id_ciudad", type: "int" }) codCiudad: number; @Column({ name: "uid_cms", type: "varchar", length: 32 }) uidCms: string; constructor( id: string, nombre: string, apellido: string, fullname: string, cedula: string, email: string, celular: string, cumpleanos: Date, genero: string, codCiudad: number, uidCms: string ) { this.id = id; this.nombre = nombre; this.apellido = apellido; this.fullname = fullname; this.cedula = cedula; this.email = email; this.celular = celular; this.cumpleanos = cumpleanos; this.genero = genero; this.codCiudad = codCiudad; this.uidCms = uidCms; } }