This commit is contained in:
2026-01-10 12:00:13 +03:30
parent a1ca2a62c8
commit bc00acb26b
3 changed files with 9 additions and 82 deletions
@@ -1,7 +1,7 @@
import { Entity, Index, ManyToOne, Property } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
import { Order } from './order.entity';
import { product } from '../../products/entities/product.entity';
import { product } from 'src/modules/product/entities/product.entity';
@Entity({ tableName: 'order_items' })
@Index({ properties: ['order'] })
@@ -24,4 +24,7 @@ export class OrderItem extends BaseEntity {
@Property({ type: 'decimal', precision: 10, scale: 0 })
totalPrice!: number;
@Property({ nullable: true })
description?: string;
}