feat: working on saving goals jounrey for juniors

This commit is contained in:
Abdalhamid Alhamad
2024-12-15 12:44:59 +03:00
parent 24d990592d
commit 4d2f6f57f4
35 changed files with 754 additions and 2 deletions
+7
View File
@@ -13,6 +13,7 @@ import {
import { Customer } from '~/customer/entities';
import { Document } from '~/document/entities';
import { Guardian } from '~/guardian/entities/guradian.entity';
import { Category, SavingGoal } from '~/saving-goals/entities';
import { Task } from '~/task/entities';
import { Relationship } from '../enums';
import { Theme } from './theme.entity';
@@ -59,6 +60,12 @@ export class Junior extends BaseEntity {
@OneToMany(() => Task, (task) => task.assignedTo)
tasks?: Task[];
@OneToMany(() => SavingGoal, (savingGoal) => savingGoal.junior)
goals?: SavingGoal[];
@OneToMany(() => Category, (category) => category.junior)
categories?: Category[];
@CreateDateColumn({ name: 'created_at', type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
createdAt!: Date;