Added the minimum lap time to the track entity

ref #71
This commit is contained in:
Nicolai Ort 2021-01-03 16:51:36 +01:00
parent 39857cf6e6
commit 63b1ca9b56
1 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import {
IsInt,
IsNotEmpty,
IsOptional,
IsPositive,
IsString
} from "class-validator";
@ -38,6 +39,16 @@ export class Track {
@IsPositive()
distance: number;
/**
* The minimum time a runner should take to run a lap on this track.
* Will be used for fraud detection.
*/
@Column()
@IsInt()
@IsOptional()
@IsPositive()
minimumLapTime: number;
/**
* Used to link scan stations to a certain track.
* This makes the configuration of the scan stations easier.