update entity
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { Collection, Entity, Enum, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
import { BaseEntity } from '../../../common/entities/base.entity';
|
||||
import { AttributeType } from '../interface/product.interface';
|
||||
import { Product } from './product.entity';
|
||||
import { Product } from './product.entity';
|
||||
import { AttributeValue } from './attribute-value.entity';
|
||||
import { FieldType } from 'src/modules/print/interface/print';
|
||||
|
||||
@Entity({ tableName: 'attributes' })
|
||||
export class Attribute extends BaseEntity {
|
||||
@@ -24,8 +24,8 @@ export class Attribute extends BaseEntity {
|
||||
@Property()
|
||||
name: string;
|
||||
|
||||
@Enum(() => AttributeType)
|
||||
type: AttributeType;
|
||||
@Enum(() => FieldType)
|
||||
type: FieldType;
|
||||
|
||||
@Property({ type: 'boolean', default: false })
|
||||
isRequired: boolean = false;
|
||||
|
||||
Reference in New Issue
Block a user