@@ -3,6 +3,7 @@ import { IsNotEmpty,} from "class-validator";
|
||||
import { Participant } from "./Participant";
|
||||
import { RunnerGroup } from "./RunnerGroup";
|
||||
import { DistanceDonation } from "./DistanceDonation";
|
||||
import { RunnerCard } from "./RunnerCard";
|
||||
|
||||
/**
|
||||
* Defines a runner.
|
||||
@@ -22,4 +23,10 @@ export class Runner extends Participant {
|
||||
*/
|
||||
@OneToMany(() => DistanceDonation, distanceDonation => distanceDonation.runner)
|
||||
distanceDonations: DistanceDonation[];
|
||||
|
||||
/**
|
||||
* Used to link runners to cards.
|
||||
*/
|
||||
@OneToMany(() => RunnerCard, card => card.runner)
|
||||
cards: RunnerCard[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user