This commit is contained in:
2026-02-19 09:21:53 +03:30
parent 5cc9211e49
commit 61f473ea34
34 changed files with 357 additions and 2333 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import { Entity, Index, Property, OneToMany, Collection, Cascade, PrimaryKey, OptionalProps } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
import { Order } from 'src/modules/order/entities/order.entity';
// import { Order } from 'src/modules/order/entities/order.entity';
import { normalizePhone } from '../../util/phone.util';
import { ulid } from 'ulid';
@@ -8,8 +8,8 @@ import { ulid } from 'ulid';
export class User extends BaseEntity {
[OptionalProps]?: 'createdAt' | 'deletedAt'
@OneToMany(() => Order, order => order.user)
orders = new Collection<Order>(this);
// @OneToMany(() => Order, order => order.user)
// orders = new Collection<Order>(this);
@Property({ nullable: true })