add: create crud product
This commit is contained in:
@@ -7,8 +7,9 @@ import {
|
||||
VersionColumn,
|
||||
CreateDateColumn,
|
||||
OneToMany,
|
||||
ManyToOne,
|
||||
} from 'typeorm';
|
||||
import { ProductSubCategories } from './productSubCategory.entity';
|
||||
import { ProductSubCategories } from './product-sub-category.entity';
|
||||
import { BaseModel } from '../../config/basemodel.entity';
|
||||
|
||||
@Entity()
|
||||
@@ -25,7 +26,7 @@ export class Product extends BaseModel{
|
||||
@Column()
|
||||
status: string;
|
||||
|
||||
@OneToMany(
|
||||
@ManyToOne(
|
||||
() => ProductSubCategories,
|
||||
(subCategories) => subCategories.category,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user