mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2026-10-24 11:47:56 +00:00
feat: working on saving goals jounrey for juniors
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user