diff --git a/src/models/Scan.ts b/src/models/Scan.ts index 3fd64ed..5e8cbf9 100644 --- a/src/models/Scan.ts +++ b/src/models/Scan.ts @@ -35,11 +35,19 @@ export abstract class Scan { @IsPositive() abstract distance: number; - /** - * Is the scan valid (for fraud reasons). - * Default: true - */ + /** + * Is the scan valid (for fraud reasons). + * Default: true + */ @Column() @IsBoolean() valid: boolean = true; + + /** + * seconds since last scan + */ + @IsInt() + @IsOptional() + secondsSinceLastScan: number; + }