backend/src/models/GroupContact.ts
2020-12-01 19:44:51 +01:00

15 lines
366 B
TypeScript

import { Entity, OneToMany } from "typeorm";
import { Participant } from "./Participant";
import { RunnerGroup } from "./RunnerGroup";
/**
* Defines a group's contact.
*/
@Entity()
export class GroupContact extends Participant{
/**
* Used to link runners to donations.
*/
@OneToMany(() => RunnerGroup, group => group.contact)
groups: RunnerGroup[];
}