latest work #20

Merged
philipp merged 233 commits from dev into main 2020-12-09 18:49:33 +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;
}