remove product attribute
This commit is contained in:
@@ -107,12 +107,14 @@ export class CreateOrderAsAdminDto {
|
||||
{
|
||||
productId: 1,
|
||||
designerId: '',
|
||||
// print: [{ fieldId: '', value: '' }],
|
||||
// printAttachments: [{ url: '', type: '' }],
|
||||
attachments: [{ url: '', type: '' }],
|
||||
quantity: 100,
|
||||
attributes: [],
|
||||
attributes: [{ fieldId: 10, value: 'blue' }],
|
||||
unitPrice: 150000,
|
||||
discount: 20000
|
||||
discount: 20000,
|
||||
adminDescription: '',
|
||||
description:'توضیحات کاربر',
|
||||
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { Collection, Entity, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
import { BaseEntity } from '../../../common/entities/base.entity';
|
||||
import { Category } from './category.entity';
|
||||
import { Attribute } from './attribute.entity';
|
||||
|
||||
|
||||
|
||||
@Entity({ tableName: 'products' })
|
||||
export class Product extends BaseEntity {
|
||||
|
||||
Reference in New Issue
Block a user