parent
e29c17a29a
commit
cb7325bbf9
|
@ -0,0 +1,33 @@
|
|||
import {
|
||||
IsEAN,
|
||||
IsInt,
|
||||
IsNotEmpty,
|
||||
IsObject,
|
||||
IsString
|
||||
} from "class-validator";
|
||||
import { ContractRunner } from './ContractRunner';
|
||||
|
||||
/**
|
||||
* Defines the runner card class (used to create runner card pdfs).
|
||||
*/
|
||||
export class RunnerCard {
|
||||
/**
|
||||
* The cards's id.
|
||||
*/
|
||||
@IsInt()
|
||||
id: number;
|
||||
|
||||
/**
|
||||
* The card's associated runner.
|
||||
*/
|
||||
@IsObject()
|
||||
runner: ContractRunner | null;
|
||||
|
||||
/**
|
||||
* The card's code.
|
||||
*/
|
||||
@IsEAN()
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
code: string;
|
||||
}
|
Loading…
Reference in New Issue