feature/11-new_classes #15

Merged
niggl merged 55 commits from feature/11-new_classes into dev 2020-12-02 17:48:19 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit dca9aef258 - Show all commits

View File

@ -7,6 +7,7 @@ import {
IsPhoneNumber, IsPhoneNumber,
IsString, IsString,
} from "class-validator"; } from "class-validator";
import { Address } from "./Address";
/** /**
* Defines the participant interface. * Defines the participant interface.
@ -52,7 +53,7 @@ export abstract class Participant {
@Column() @Column()
@IsOptional() @IsOptional()
//TODO: Relationship //TODO: Relationship
address?: Location; address?: Address;
/** /**
* The participant's phone number. * The participant's phone number.

View File

@ -1,6 +1,7 @@
import { Entity, Column } from "typeorm"; import { Entity, Column } from "typeorm";
import { IsOptional,} from "class-validator"; import { IsOptional,} from "class-validator";
import { RunnerGroup } from "./RunnerGroup"; import { RunnerGroup } from "./RunnerGroup";
import { Address } from "./Address";
/** /**
* Defines a runner organisation (business or school for example). * Defines a runner organisation (business or school for example).
@ -15,5 +16,5 @@ export class RunnerOrganisation extends RunnerGroup {
@Column() @Column()
@IsOptional() @IsOptional()
//TODO: Relationship //TODO: Relationship
address?: Location; address?: Address;
} }