import { Entity, PrimaryColumn, Column } from "typeorm"; @Entity("usu_movil_restablecer_contrasena", { synchronize: false }) export class RestablecerContrasena { @PrimaryColumn({ name: "id_transaccion", type: "int", length: 11 }) id: number; @Column({ name: "uid", type: "varchar", length: 45 }) idUsuario: string; @Column({ name: "fecha_registro", type: "datetime" }) fechaRegistro: Date; @Column({ name: "fecha_vencimiento", type: "datetime" }) fechaVencimiento: Date; @Column({ name: "cambio_contrasena", type: "varchar" }) cambioContrasena: string; constructor( id: number, idUsuario: string, fechaRegistro: Date, fechaVencimiento: Date, cambioContrasena: string ) { this.id = id; this.idUsuario = idUsuario; this.fechaRegistro = fechaRegistro; this.fechaVencimiento = fechaVencimiento; this.cambioContrasena = cambioContrasena; } }