parent
748fff5c32
commit
5a04e61d1c
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue