remove inventory

This commit is contained in:
2026-02-08 10:49:16 +03:30
parent 9a7010dcea
commit 8aac87add1
76 changed files with 125 additions and 639 deletions
@@ -3,7 +3,6 @@ import { Category } from './category.entity';
import { BaseEntity } from '../../../common/entities/base.entity';
import { Shop } from '../../../modules/shops/entities/shop.entity';
import { Review } from 'src/modules/review/entities/review.entity';
import { Inventory } from 'src/modules/inventory/entities/inventory.entity';
import { Favorite } from './favorite.entity';
@Entity({ tableName: 'products' })
@@ -20,11 +19,6 @@ export class Product extends BaseEntity {
@OneToMany(() => Review, review => review.product, { cascade: [Cascade.ALL], orphanRemoval: true })
reviews = new Collection<Review>(this);
@OneToOne(() => Inventory, {
mappedBy: 'product',
nullable: true,
})
inventory?: Inventory;
@OneToMany(() => Favorite, favorite => favorite.product)
favorites = new Collection<Favorite>(this);