From 66f7a7928c60ff6def7da2c7238de297d03d67e1 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Tue, 1 Dec 2020 17:58:23 +0100 Subject: [PATCH] Added the runner org class ref #11 --- src/models/RunnerOrganisation.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/models/RunnerOrganisation.ts diff --git a/src/models/RunnerOrganisation.ts b/src/models/RunnerOrganisation.ts new file mode 100644 index 0000000..346d75a --- /dev/null +++ b/src/models/RunnerOrganisation.ts @@ -0,0 +1,19 @@ +import { Entity, Column } from "typeorm"; +import { IsOptional,} from "class-validator"; +import { RunnerGroup } from "./RunnerGroup"; + +/** + * Defines a runner organisation (business or school for example). +*/ +@Entity() +export class RunnerOrganisation extends RunnerGroup { + + /** + * The organisations's address. + * Optional + */ + @Column() + @IsOptional() + //TODO: Relationship + address?: Location; +} \ No newline at end of file