parent
7ce8c375a2
commit
b632c09924
17
src/models/Donor.ts
Normal file
17
src/models/Donor.ts
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user