Attention: Broken
This commit is contained in:
parent
ec2ff981b2
commit
32c4270dff
|
@ -1,4 +1,4 @@
|
|||
import { PrimaryGeneratedColumn, Column, OneToMany, ManyToOne, Entity } from "typeorm";
|
||||
import { PrimaryGeneratedColumn, Column, OneToMany, ManyToOne, Entity, TableInheritance } from "typeorm";
|
||||
import {
|
||||
IsInt,
|
||||
IsNotEmpty,
|
||||
|
@ -13,6 +13,7 @@ import { RunnerTeam } from "./RunnerTeam";
|
|||
* Defines the runnerGroup interface.
|
||||
*/
|
||||
@Entity()
|
||||
@TableInheritance({ column: { name: "type", type: "varchar" } })
|
||||
export abstract class RunnerGroup {
|
||||
/**
|
||||
* Autogenerated unique id (primary key).
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { Entity, Column, ManyToOne } from "typeorm";
|
||||
import { IsNotEmpty } from "class-validator";
|
||||
import { Entity, Column, ManyToOne, ChildEntity } from "typeorm";
|
||||
import { IsOptional } from "class-validator";
|
||||
import { RunnerGroup } from "./RunnerGroup";
|
||||
import { RunnerOrganisation } from "./RunnerOrganisation";
|
||||
|
||||
/**
|
||||
* Defines a runner team (class or deparment for example).
|
||||
*/
|
||||
@Entity()
|
||||
@ChildEntity()
|
||||
export class RunnerTeam extends RunnerGroup {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue