Added the runner class

ref #11
This commit is contained in:
Nicolai Ort 2020-12-01 17:38:28 +01:00
parent 748fff5c32
commit 5a04e61d1c
1 changed files with 18 additions and 0 deletions

18
src/models/Runner.ts Normal file
View File

@ -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;
}