Added defaults back in

This commit is contained in:
Nicolai Ort 2020-12-02 18:05:18 +01:00
parent ac0ce799f9
commit 932e782a14
4 changed files with 8 additions and 5 deletions

View File

@ -9,9 +9,9 @@ import { Participant } from "./Participant";
export class Donor extends Participant {
/**
* Does this donor need a receipt?.
* Default: True
* Default: false
*/
@Column()
@IsBoolean()
receiptNeeded: boolean;
receiptNeeded: boolean = false;
}

View File

@ -42,10 +42,11 @@ export class RunnerCard {
/**
* Is the card enabled (for fraud reasons)?
* Default: true
*/
@Column()
@IsBoolean()
enabled: boolean;
enabled: boolean = true;
/**
* Used to link cards to a track scans.

View File

@ -37,8 +37,9 @@ export abstract class Scan {
/**
* Is the scan valid (for fraud reasons).
* Default: true
*/
@Column()
@IsBoolean()
valid: boolean;
valid: boolean = true;
}

View File

@ -47,10 +47,11 @@ export class ScanStation {
/**
* Is the station enabled (for fraud reasons)?
* Default: true
*/
@Column()
@IsBoolean()
enabled: boolean;
enabled: boolean = true;
/**
* Used to link track scans to a scan station.