feat: gift journeys

This commit is contained in:
Abdalhamid Alhamad
2024-12-22 16:34:02 +03:00
parent 4cef58580e
commit 5e9e83cb74
28 changed files with 656 additions and 1 deletions
+4
View File
@@ -13,6 +13,7 @@ import {
import { Allowance } from '~/allowance/entities';
import { Customer } from '~/customer/entities';
import { Document } from '~/document/entities';
import { Gift } from '~/gift/entities';
import { Guardian } from '~/guardian/entities/guradian.entity';
import { MoneyRequest } from '~/money-request/entities';
import { Category, SavingGoal } from '~/saving-goals/entities';
@@ -78,6 +79,9 @@ export class Junior extends BaseEntity {
@OneToMany(() => Allowance, (allowance) => allowance.junior)
allowances!: Allowance[];
@OneToMany(() => Gift, (gift) => gift.recipient)
gifts!: Gift[];
@CreateDateColumn({ name: 'created_at', type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
createdAt!: Date;