import { Entity, PrimaryColumn, Column, PrimaryGeneratedColumn } from "typeorm"; @Entity("usu_usuarios_restablecer_contrasena", { synchronize: false }) export class UsuarioRestablecerContrasena { @PrimaryGeneratedColumn({ name: "id_transaccion", type: "int" }) id: number; @PrimaryColumn({ name: "uid", type: "varchar", length: 32 }) uid: string; @Column({ name: "fecha_registro", type: "datetime" }) fechaRegistro: Date; @Column({ name: "fecha_vencimiento", type: "datetime" }) fechaVencimiento: Date; @Column({ name: "cambio_contrasena", type: "varchar", length: 2 }) cambioContrasena: string; constructor( uid: string, fechaRegistro: Date, fechaVencimiento: Date, cambioContrasena: string = "no" ) { this.id = 0; this.uid = uid; this.fechaRegistro = fechaRegistro; this.fechaVencimiento = fechaVencimiento; this.cambioContrasena = cambioContrasena; } }