production

This commit is contained in:
2026-01-10 11:14:27 +03:30
parent b5bc94c8e5
commit a1ca2a62c8
19 changed files with 64 additions and 6081 deletions
@@ -0,0 +1,19 @@
import { Entity, Enum, Property } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
import { AttributeType } from '../interface/product.interface';
@Entity({ tableName: 'attributes' })
export class Attribute extends BaseEntity {
@Property({ primary: true })
id: bigint;
@Property()
name: string;
@Enum()
type: AttributeType;
@Property({ type: 'boolean', default: false })
isRequired: boolean = false;
}