import { Entity, PrimaryColumn, Column } from "typeorm"; @Entity("usu_tarjetas", { synchronize: false }) export class UsuarioTarjeta { @PrimaryColumn({ name: "uid", type: "varchar", length: 32 }) id: string; @Column({ name: "fecha_alta", type: "datetime" }) fechaAlta: Date; @Column({ name: "id_tarjeta", type: "varchar", length: 32 }) tarjeta: string; @Column({ name: "estado", type: "varchar", length: 15 }) estado: string; @Column({ name: "fecha_baja", type: "datetime" }) fechaBaja: Date; @Column({ name: "plataforma", type: "varchar", length: 3 }) plataforma: string; @Column({ name: "uid_cms", type: "varchar", length: 32 }) uidCms: string; @Column({ name: "ip_cajero", type: "varchar", length: 100 }) ipCajero: string; constructor( uid: string, fechaAlta: Date, tarjeta: string, estado: string, fechaBaja: Date, plataforma: string, uidCms: string, ipCajero: string ) { this.id = uid; this.fechaAlta = fechaAlta; this.tarjeta = tarjeta; this.estado = estado; this.fechaBaja = fechaBaja; this.plataforma = plataforma; this.uidCms = uidCms; this.ipCajero = ipCajero; } }