diff --git a/src/models/RunnerOrganisation.ts b/src/models/RunnerOrganisation.ts index f266599..b0a7220 100644 --- a/src/models/RunnerOrganisation.ts +++ b/src/models/RunnerOrganisation.ts @@ -1,4 +1,4 @@ -import { Entity, Column, ManyToOne, OneToMany } from "typeorm"; +import { Entity, Column, ManyToOne, OneToMany, ChildEntity } from "typeorm"; import { IsOptional, } from "class-validator"; import { RunnerGroup } from "./RunnerGroup"; import { Address } from "./Address"; @@ -7,7 +7,7 @@ import { RunnerTeam } from "./RunnerTeam"; /** * Defines a runner organisation (business or school for example). */ -@Entity() +@ChildEntity() export class RunnerOrganisation extends RunnerGroup { /**