Trackscans now have a laptime that get's calculated on creation
ref #151
This commit is contained in:
@@ -2,6 +2,8 @@ import {
|
||||
IsInt,
|
||||
IsNotEmpty,
|
||||
|
||||
IsNumber,
|
||||
|
||||
IsPositive
|
||||
} from "class-validator";
|
||||
import { ChildEntity, Column, ManyToOne } from "typeorm";
|
||||
@@ -59,6 +61,14 @@ export class TrackScan extends Scan {
|
||||
@IsInt()
|
||||
timestamp: number;
|
||||
|
||||
/**
|
||||
* The scan's lap time.
|
||||
* This simply get's calculated from the last lap time;
|
||||
*/
|
||||
@Column()
|
||||
@IsNumber()
|
||||
lapTime: number;
|
||||
|
||||
/**
|
||||
* Turns this entity into it's response class.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user