@@ -1,6 +1,5 @@
|
||||
import { IsInt, IsOptional } from "class-validator";
|
||||
import { ChildEntity, ManyToOne, OneToMany } from "typeorm";
|
||||
import { Address } from "./Address";
|
||||
import { IsInt } from "class-validator";
|
||||
import { ChildEntity, OneToMany } from "typeorm";
|
||||
import { Runner } from './Runner';
|
||||
import { RunnerGroup } from "./RunnerGroup";
|
||||
import { RunnerTeam } from "./RunnerTeam";
|
||||
@@ -12,12 +11,12 @@ import { RunnerTeam } from "./RunnerTeam";
|
||||
@ChildEntity()
|
||||
export class RunnerOrganisation extends RunnerGroup {
|
||||
|
||||
/**
|
||||
* The organisations's address.
|
||||
*/
|
||||
@IsOptional()
|
||||
@ManyToOne(() => Address, address => address.groups, { nullable: true })
|
||||
address?: Address;
|
||||
// /**
|
||||
// * The organisations's address.
|
||||
// */
|
||||
// @IsOptional()
|
||||
// @ManyToOne(() => Address, address => address.groups, { nullable: true })
|
||||
// address?: Address;
|
||||
|
||||
/**
|
||||
* The organisation's teams.
|
||||
|
||||
Reference in New Issue
Block a user