Added the enabled flag for scanstations

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

No files matched your search

+8
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.
*/