remove product attribute

This commit is contained in:
2026-02-01 15:50:17 +03:30
parent 01324b12fa
commit 2cead723cf
5 changed files with 62 additions and 63 deletions
+6 -4
View File
@@ -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 {