This commit is contained in:
Felipe Batista
2025-01-27 17:44:27 -03:00
commit 47e7f75720
238 changed files with 36425 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { Column, Entity, OneToMany, PrimaryColumn } from "typeorm";
import { Product } from "./pcprodut.entity";
@Entity('PCMARCA')
export class Brand {
@PrimaryColumn({name: 'CODMARCA'})
id: number;
@Column({name: "MARCA"})
description: string;
@OneToMany(() => Product, product => product.brand)
products: Product[];
}