mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2026-10-27 05:27:55 +00:00
feat: gift journeys
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user