fix: entity cateogires

This commit is contained in:
ilham 2021-12-16 19:29:44 +07:00
parent 0f801483a3
commit 973ac686e7
2 changed files with 6 additions and 2 deletions

View File

@ -19,7 +19,9 @@ export class ProductCategories extends BaseModel {
@Column()
name: string;
@Column()
@Column({
nullable: true,
})
code: string;
@OneToMany(

View File

@ -17,7 +17,9 @@ export class ProductSubCategories extends BaseModel {
@Column()
name: string;
@Column()
@Column({
nullable: true,
})
code: string;
@ManyToOne(() => ProductCategories, (categories) => categories.sub_categories)