Turned the abstracts into entities

ref #11
This commit is contained in:
Nicolai Ort 2020-12-02 16:07:18 +01:00
parent dd5f4488be
commit 5bf978d32d
5 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import { PrimaryGeneratedColumn, Column, ManyToOne } from "typeorm";
import { PrimaryGeneratedColumn, Column, ManyToOne, Entity } from "typeorm";
import {
IsInt,
IsNotEmpty,
@ -10,6 +10,7 @@ import { Participant } from "./Participant";
/**
* Defines the donation interface.
*/
@Entity()
export abstract class Donation {
/**
* Autogenerated unique id (primary key).

View File

@ -1,4 +1,4 @@
import { PrimaryGeneratedColumn, Column, OneToMany, ManyToOne } from "typeorm";
import { PrimaryGeneratedColumn, Column, OneToMany, ManyToOne, Entity } from "typeorm";
import {
IsEmail,
IsInt,
@ -13,6 +13,7 @@ import { Donation } from "./Donation";
/**
* Defines the participant interface.
*/
@Entity()
export abstract class Participant {
/**
* Autogenerated unique id (primary key).

View File

@ -1,4 +1,4 @@
import { PrimaryGeneratedColumn, Column, OneToMany, ManyToOne } from "typeorm";
import { PrimaryGeneratedColumn, Column, OneToMany, ManyToOne, Entity } from "typeorm";
import {
IsInt,
IsNotEmpty,
@ -12,6 +12,7 @@ import { RunnerTeam } from "./RunnerTeam";
/**
* Defines the runnerGroup interface.
*/
@Entity()
export abstract class RunnerGroup {
/**
* Autogenerated unique id (primary key).

View File

@ -1,4 +1,4 @@
import { PrimaryGeneratedColumn, Column, ManyToOne } from "typeorm";
import { PrimaryGeneratedColumn, Column, ManyToOne, Entity } from "typeorm";
import {
IsBoolean,
IsInt,
@ -11,6 +11,7 @@ import { Runner } from "./Runner";
/**
* Defines the scan interface.
*/
@Entity()
export abstract class Scan {
/**
* Autogenerated unique id (primary key).

View File

@ -1,4 +1,4 @@
import { PrimaryGeneratedColumn, Column, ManyToOne } from "typeorm";
import { PrimaryGeneratedColumn, Column, ManyToOne, Entity } from "typeorm";
import {
IsBoolean,
IsDateString,
@ -16,6 +16,7 @@ import { ScanStation } from "./ScanStation";
/**
* Defines the scan interface.
*/
@Entity()
export class TrackScan extends Scan {
/**
* The associated track.