import { Entity, PrimaryColumn, Column } from "typeorm"; @Entity("cnf_monedas", { synchronize: false }) export class Moneda { @PrimaryColumn({ name: "cod_moneda", type: "varchar", length: 5, unique: true }) id: String; @Column({ name: "cod_pais", type: "varchar", length: 2 }) codPais: String; @Column({ name: "simbolo", type: "varchar", length: 10 }) simbolo: String; constructor(id: String, codPais: string, simbolo: string) { this.id = id; this.codPais = codPais; this.simbolo = simbolo; } }