import { Entity, PrimaryColumn, Column } from "typeorm"; @Entity("usu_usuarios_qr", { synchronize: false }) export class UsuarioQR { @PrimaryColumn({ name: "uid", type: "varchar", length: 32 }) uid: string; @Column({ name: "secret", type: "varchar", length: 50 }) secret: string; @Column({ name: "counter", type: "int" }) counter: number; @Column({ name: "usados", type: "varchar", length: 180 }) usados: string; constructor(uid: string, secret: string, counter: number, usados: string) { this.uid = uid; this.secret = secret; this.counter = counter; this.usados = usados; } }