feature/11-new_classes #15

Merged
niggl merged 55 commits from feature/11-new_classes into dev 2020-12-02 17:48:19 +00:00
2 changed files with 7 additions and 15 deletions
Showing only changes of commit c82cc9a670 - Show all commits

View File

@ -33,4 +33,11 @@ export abstract class Scan {
@IsInt()
@IsPositive()
abstract distance: number;
/**
* Is the scan valid (for fraud reasons).
*/
@Column()
@Boolean()
valid = true;
}

View File

@ -17,14 +17,6 @@ import { ScanStation } from "./ScanStation";
* Defines the scan interface.
*/
export class TrackScan extends Scan {
/**
* Autogenerated unique id (primary key).
*/
@PrimaryGeneratedColumn()
@IsOptional()
@IsInt()
id: number;
/**
* The associated track.
*/
@ -65,11 +57,4 @@ export class TrackScan extends Scan {
@IsDateString()
@IsNotEmpty()
timestamp: string;
/**
* Is the scan valid (for fraud reasons).
*/
@Column()
@IsBoolean()
valid = true;
}