Merge branch 'development' into 'devops-staging'

fix: entity cateogires

See merge request empatnusabangsa/ppob/ppob-backend!31
This commit is contained in:
ilham dwi pratama 2021-12-16 12:30:23 +00:00
commit 93b073be18
2 changed files with 6 additions and 2 deletions

View File

@ -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(

View File

@ -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)