parent
deae0bb84b
commit
66f7a7928c
19
src/models/RunnerOrganisation.ts
Normal file
19
src/models/RunnerOrganisation.ts
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import { Entity, Column } from "typeorm";
|
||||||
|
import { IsOptional,} from "class-validator";
|
||||||
|
import { RunnerGroup } from "./RunnerGroup";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines a runner organisation (business or school for example).
|
||||||
|
*/
|
||||||
|
@Entity()
|
||||||
|
export class RunnerOrganisation extends RunnerGroup {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The organisations's address.
|
||||||
|
* Optional
|
||||||
|
*/
|
||||||
|
@Column()
|
||||||
|
@IsOptional()
|
||||||
|
//TODO: Relationship
|
||||||
|
address?: Location;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user