order
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user