diff --git a/src/models/Donation.ts b/src/models/Donation.ts index 3d59202..7143c99 100644 --- a/src/models/Donation.ts +++ b/src/models/Donation.ts @@ -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). diff --git a/src/models/Participant.ts b/src/models/Participant.ts index 0465e01..2f4327b 100644 --- a/src/models/Participant.ts +++ b/src/models/Participant.ts @@ -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). diff --git a/src/models/RunnerGroup.ts b/src/models/RunnerGroup.ts index 8f4c5ea..52f478f 100644 --- a/src/models/RunnerGroup.ts +++ b/src/models/RunnerGroup.ts @@ -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). diff --git a/src/models/Scan.ts b/src/models/Scan.ts index 6e3f654..6c2dccc 100644 --- a/src/models/Scan.ts +++ b/src/models/Scan.ts @@ -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). diff --git a/src/models/TrackScan.ts b/src/models/TrackScan.ts index 0f08d2a..ce35ee8 100644 --- a/src/models/TrackScan.ts +++ b/src/models/TrackScan.ts @@ -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.