diff --git a/src/models/Donor.ts b/src/models/Donor.ts new file mode 100644 index 0000000..0ed60da --- /dev/null +++ b/src/models/Donor.ts @@ -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; +} \ No newline at end of file