Attention: Broken

This commit is contained in:
Nicolai Ort 2020-12-03 20:19:58 +01:00
parent ec2ff981b2
commit 32c4270dff
2 changed files with 5 additions and 4 deletions

View File

@ -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).

View File

@ -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 {
/**