fix: entity cateogires
This commit is contained in:
parent
0f801483a3
commit
973ac686e7
|
@ -19,7 +19,9 @@ export class ProductCategories extends BaseModel {
|
||||||
@Column()
|
@Column()
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
@Column()
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@OneToMany(
|
@OneToMany(
|
||||||
|
|
|
@ -17,7 +17,9 @@ export class ProductSubCategories extends BaseModel {
|
||||||
@Column()
|
@Column()
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
@Column()
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
code: string;
|
code: string;
|
||||||
|
|
||||||
@ManyToOne(() => ProductCategories, (categories) => categories.sub_categories)
|
@ManyToOne(() => ProductCategories, (categories) => categories.sub_categories)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user