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 { import {
IsInt, IsInt,
IsNotEmpty, IsNotEmpty,
@ -10,6 +10,7 @@ import { Participant } from "./Participant";
/** /**
* Defines the donation interface. * Defines the donation interface.
*/ */
@Entity()
export abstract class Donation { export abstract class Donation {
/** /**
* Autogenerated unique id (primary key). * 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 { import {
IsEmail, IsEmail,
IsInt, IsInt,
@ -13,6 +13,7 @@ import { Donation } from "./Donation";
/** /**
* Defines the participant interface. * Defines the participant interface.
*/ */
@Entity()
export abstract class Participant { export abstract class Participant {
/** /**
* Autogenerated unique id (primary key). * 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 { import {
IsInt, IsInt,
IsNotEmpty, IsNotEmpty,
@ -12,6 +12,7 @@ import { RunnerTeam } from "./RunnerTeam";
/** /**
* Defines the runnerGroup interface. * Defines the runnerGroup interface.
*/ */
@Entity()
export abstract class RunnerGroup { export abstract class RunnerGroup {
/** /**
* Autogenerated unique id (primary key). * 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 { import {
IsBoolean, IsBoolean,
IsInt, IsInt,
@ -11,6 +11,7 @@ import { Runner } from "./Runner";
/** /**
* Defines the scan interface. * Defines the scan interface.
*/ */
@Entity()
export abstract class Scan { export abstract class Scan {
/** /**
* Autogenerated unique id (primary key). * 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 { import {
IsBoolean, IsBoolean,
IsDateString, IsDateString,
@ -16,6 +16,7 @@ import { ScanStation } from "./ScanStation";
/** /**
* Defines the scan interface. * Defines the scan interface.
*/ */
@Entity()
export class TrackScan extends Scan { export class TrackScan extends Scan {
/** /**
* The associated track. * The associated track.