Minimum lap times for tracks feature/71-track_times #72

Merged
niggl merged 14 commits from feature/71-track_times into dev 2021-01-03 17:18:03 +00:00
Showing only changes of commit 63b1ca9b56 - Show all commits

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.