import { Entity, PrimaryColumn, Column } from "typeorm"; @Entity("cnf_paises", { synchronize: false }) export class Pais { @PrimaryColumn({ name: "cod_pais", type: "varchar", length: 2 }) id: String; @Column({ name: "pais", type: "varchar", length: 50 }) nombre: String; @Column({ name: "indicador", type: "int" }) indicador: String; constructor(id: String, nombre: String, indicador: String) { this.id = id; this.nombre = nombre; this.indicador = indicador; } }