@@ -1,4 +1,4 @@
|
||||
import { PrimaryGeneratedColumn, Column } from "typeorm";
|
||||
import { PrimaryGeneratedColumn, Column, ManyToOne } from "typeorm";
|
||||
import {
|
||||
IsInt,
|
||||
IsNotEmpty,
|
||||
@@ -24,7 +24,7 @@ export abstract class Donation {
|
||||
*/
|
||||
@Column()
|
||||
@IsNotEmpty()
|
||||
//TODO: Relationship
|
||||
@ManyToOne(() => Participant, donor => donor.donations)
|
||||
donor: Participant;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user