import { Entity, PrimaryGeneratedColumn, Column } from "typeorm"; @Entity("com_categorias", { synchronize: false }) export class ComercioCategorias { @PrimaryGeneratedColumn({ name: "id_categoria", type: "int" }) id: number; @Column({ name: "categoria", type: "varchar", length: 30 }) categoria: string; @Column({ name: "estado", type: "varchar", length: 20 }) estado: string; constructor(categoria: string, estado: string) { this.id = 0; this.estado = estado; this.categoria = categoria; } }