Added relations to RunnerOrganisation
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
IsString,
|
||||
} from "class-validator";
|
||||
import { Participant } from "./Participant";
|
||||
import { RunnerOrganisation } from "./RunnerOrganisation";
|
||||
|
||||
/**
|
||||
* Defines a address (to be used for contact information).
|
||||
@@ -77,4 +78,10 @@ export class Address {
|
||||
*/
|
||||
@OneToMany(() => Participant, participant => participant.address)
|
||||
participants: Participant[];
|
||||
|
||||
/**
|
||||
* Used to link the address to runner groups.
|
||||
*/
|
||||
@OneToMany(() => RunnerOrganisation, group => group.address)
|
||||
groups: RunnerOrganisation[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user