parent
39857cf6e6
commit
63b1ca9b56
@ -1,6 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
IsInt,
|
IsInt,
|
||||||
IsNotEmpty,
|
IsNotEmpty,
|
||||||
|
IsOptional,
|
||||||
IsPositive,
|
IsPositive,
|
||||||
IsString
|
IsString
|
||||||
} from "class-validator";
|
} from "class-validator";
|
||||||
@ -38,6 +39,16 @@ export class Track {
|
|||||||
@IsPositive()
|
@IsPositive()
|
||||||
distance: number;
|
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.
|
* Used to link scan stations to a certain track.
|
||||||
* This makes the configuration of the scan stations easier.
|
* This makes the configuration of the scan stations easier.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user