parent
1d73e4ed9c
commit
cfa65e83ca
37
src/models/Donor.ts
Normal file
37
src/models/Donor.ts
Normal file
@ -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;
|
||||||
|
}
|
@ -6,7 +6,7 @@ import {
|
|||||||
import { RunnerGroup } from './RunnerGroup';
|
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 {
|
export class Runner {
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user