1 parent
748fff5c32
commit
5a04e61d1c
1 file changed
+18
@@ -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;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user