diff --git a/src/models/Donor.ts b/src/models/Donor.ts new file mode 100644 index 0000000..cb9d9df --- /dev/null +++ b/src/models/Donor.ts @@ -0,0 +1,37 @@ +import { + + IsInt, + + + + IsString +} from "class-validator"; + +/** + * Defines the Donor class. +*/ +export class Donor { + /** + * The donor's id. + */ + @IsInt() + id: number; + + /** + * The donor's first name. + */ + @IsString() + firstname: string; + + /** + * The donor's middle name. + */ + @IsString() + middlename?: string; + + /** + * The donor's last name. + */ + @IsString() + lastname: string; +} diff --git a/src/models/Runner.ts b/src/models/Runner.ts index 826941a..f7968a8 100644 --- a/src/models/Runner.ts +++ b/src/models/Runner.ts @@ -6,7 +6,7 @@ import { import { RunnerGroup } from './RunnerGroup'; /** - * Defines the contract runner class (from which the runner sponsoring contracts get generated). + * Defines the runner class (from which the runner sponsoring contracts get generated). */ export class Runner { /**