parent
c1242b2a2a
commit
c82cc9a670
@ -33,4 +33,11 @@ export abstract class Scan {
|
|||||||
@IsInt()
|
@IsInt()
|
||||||
@IsPositive()
|
@IsPositive()
|
||||||
abstract distance: number;
|
abstract distance: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is the scan valid (for fraud reasons).
|
||||||
|
*/
|
||||||
|
@Column()
|
||||||
|
@Boolean()
|
||||||
|
valid = true;
|
||||||
}
|
}
|
||||||
|
@ -17,14 +17,6 @@ import { ScanStation } from "./ScanStation";
|
|||||||
* Defines the scan interface.
|
* Defines the scan interface.
|
||||||
*/
|
*/
|
||||||
export class TrackScan extends Scan {
|
export class TrackScan extends Scan {
|
||||||
/**
|
|
||||||
* Autogenerated unique id (primary key).
|
|
||||||
*/
|
|
||||||
@PrimaryGeneratedColumn()
|
|
||||||
@IsOptional()
|
|
||||||
@IsInt()
|
|
||||||
id: number;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The associated track.
|
* The associated track.
|
||||||
*/
|
*/
|
||||||
@ -65,11 +57,4 @@ export class TrackScan extends Scan {
|
|||||||
@IsDateString()
|
@IsDateString()
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
timestamp: string;
|
timestamp: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* Is the scan valid (for fraud reasons).
|
|
||||||
*/
|
|
||||||
@Column()
|
|
||||||
@IsBoolean()
|
|
||||||
valid = true;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user