chore: user financial

This commit is contained in:
Matin
2025-02-15 10:59:53 +03:30
parent caa968ab4a
commit a13f374031
14 changed files with 246 additions and 19 deletions
@@ -2,6 +2,7 @@ import { Exclude } from "class-transformer";
import { Column, Entity, ManyToMany, ManyToOne, OneToMany, OneToOne } from "typeorm";
import { Role } from "./role.entity";
import { UserFinancial } from "./user-financial.entity";
import { UserGroup } from "./user-group.entity";
import { BaseEntity } from "../../../common/entities/base.entity";
import { UserAnnouncement } from "../../announcements/entities/user-announcement.entity";
@@ -82,6 +83,9 @@ export class User extends BaseEntity {
@OneToMany(() => LearningProgress, (learningProgress) => learningProgress.learning)
learningProgress: LearningProgress[];
@OneToMany(() => UserFinancial, (userFinancial) => userFinancial.user)
userFinancials: UserFinancial[];
}
// @ManyToMany(() => DanakService, (danakService) => danakService.users)