import { Entity, PrimaryColumn, Column } from "typeorm"; @Entity("usu_telefonos", { synchronize: false }) export class UsuarioCelular { @PrimaryColumn({ name: "id_telefono", type: "int" }) id: string; @Column({ name: "uid", type: "varchar", length: 32 }) uid: string; @Column({ name: "telefono", type: "varchar", length: 20 }) telefono: string; @Column({ name: "validado", type: "varchar", length: 15 }) validado: string; @Column({ name: "codigo", type: "int" }) codigo: number; @Column({ name: "estado", type: "varchar", length: 10 }) estado: string; @Column({ name: "indicativo", type: "int" }) indicativo: number; constructor( id: string, uid: string, telefono: string, validado: string, codigo: number, estado: string, indicativo: number ) { this.id = id; this.uid = uid; this.telefono = telefono; this.estado = estado; this.validado = validado; this.codigo = codigo; this.indicativo = indicativo; } }