parent
748fff5c32
commit
5a04e61d1c
18
src/models/Runner.ts
Normal file
18
src/models/Runner.ts
Normal 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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user