food==. product

This commit is contained in:
2026-01-07 18:50:07 +03:30
parent 560b2983f3
commit b5bc94c8e5
11 changed files with 26 additions and 57 deletions
@@ -0,0 +1,23 @@
import { Entity, Property } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
@Entity({ tableName: 'products' })
export class product extends BaseEntity {
@Property({ nullable: true })
title?: string;
@Property({ type: 'text', nullable: true })
linkUrl?: string;
@Property({ type: 'boolean', default: true })
isActive: boolean = true;
@Property({ type: 'json', nullable: true })
images?: string[];
}