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
Showing only changes of commit b632c09924 - Show all commits

17
src/models/Donor.ts Normal file
View File

@ -0,0 +1,17 @@
import { Entity, Column } from "typeorm";
import { IsBoolean } from "class-validator";
import { Participant } from "./Participant";
/**
* Defines a donor.
*/
@Entity()
export class Donor extends Participant {
/**
* Does this donor need a receipt?.
* Default: True
*/
@Column()
@IsBoolean()
receiptNeeded = false;
}