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
Showing only changes of commit ac40527fa2 - Show all commits

19
src/models/RunnerTeam.ts Normal file
View File

@ -0,0 +1,19 @@
import { Entity, Column } from "typeorm";
import { IsNotEmpty } from "class-validator";
import { RunnerGroup } from "./RunnerGroup";
/**
* Defines a runner team (class or deparment for example).
*/
@Entity()
export class RunnerTeam extends RunnerGroup {
/**
* The team's parent group.
* Optional
*/
@Column()
@IsNotEmpty()
//TODO: Relationship
parentGroup?: RunnerGroup;
}