This commit is contained in:
2026-02-22 12:50:49 +03:30
parent 520694e4b1
commit 2c4b4fdc56
16 changed files with 3815 additions and 3 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
import { Entity, Index, Property, OneToMany, Collection, Cascade, PrimaryKey, OptionalProps } from '@mikro-orm/core';
import { Entity, Index, Property, OneToMany, Collection, PrimaryKey, OptionalProps } from '@mikro-orm/core';
import { BaseEntity } from '../../../common/entities/base.entity';
import { LearningProgress } from '../../learnings/entities/learning-progress.entity';
import { Criticism } from '../../criticisms/entities/criticism.entity';
// import { Order } from 'src/modules/order/entities/order.entity';
import { normalizePhone } from '../../util/phone.util';
import { ulid } from 'ulid';
@@ -12,6 +13,9 @@ export class User extends BaseEntity {
@OneToMany(() => LearningProgress, (lp) => lp.user)
learningProgress = new Collection<LearningProgress>(this);
@OneToMany(() => Criticism, (c) => c.user)
criticisms = new Collection<Criticism>(this);
// @OneToMany(() => Order, order => order.user)
// orders = new Collection<Order>(this);