Added the enabled flag for scanstations

ref #67
This commit is contained in:
2021-01-07 19:37:15 +01:00
parent 09b37f0ff2
commit 4f01baaa23
6 changed files with 86 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
import {
IsBoolean,
IsInt,
IsNotEmpty,
IsOptional,
@@ -70,6 +71,13 @@ export class ScanStation {
@OneToMany(() => TrackScan, scan => scan.track, { nullable: true })
scans: TrackScan[];
/**
* Is this station enabled?
*/
@Column({ nullable: true })
@IsBoolean()
enabled?: boolean = true;
/**
* Turns this entity into it's response class.
*/