parent
f8e1bf715b
commit
f999c416c4
38
src/models/RunnerGroup.ts
Normal file
38
src/models/RunnerGroup.ts
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";
|
||||||
|
import {
|
||||||
|
IsEmail,
|
||||||
|
IsInt,
|
||||||
|
IsNotEmpty,
|
||||||
|
IsOptional,
|
||||||
|
IsPhoneNumber,
|
||||||
|
IsString,
|
||||||
|
} from "class-validator";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines the runnerGroup interface.
|
||||||
|
*/
|
||||||
|
export abstract class RunnerGroup {
|
||||||
|
/**
|
||||||
|
* Autogenerated unique id (primary key).
|
||||||
|
*/
|
||||||
|
@PrimaryGeneratedColumn()
|
||||||
|
@IsOptional()
|
||||||
|
@IsInt()
|
||||||
|
id: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The group's first name.
|
||||||
|
*/
|
||||||
|
@Column()
|
||||||
|
@IsNotEmpty()
|
||||||
|
@IsString()
|
||||||
|
name: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The participant's middle name.
|
||||||
|
* Optional
|
||||||
|
*/
|
||||||
|
@Column()
|
||||||
|
@IsOptional()
|
||||||
|
contact?: GroupContact;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user