diff --git a/src/models/Runner.ts b/src/models/Runner.ts new file mode 100644 index 0000000..3c9cec2 --- /dev/null +++ b/src/models/Runner.ts @@ -0,0 +1,18 @@ +import { Entity, Column } from "typeorm"; +import { IsNotEmpty,} from "class-validator"; +import { Participant } from "./Participant"; +import { RunnerGroup } from "./RunnerGroup"; + +/** + * Defines a runner. +*/ +@Entity() +export class Track extends Participant { + /** + * The runner's associated group. + */ + @Column() + @IsNotEmpty() + //TODO:Relation + group: RunnerGroup; +}