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: false */ @Column() @IsBoolean() receiptNeeded: boolean = false; }