Cleaned up relations

ref #11
This commit is contained in:
Nicolai Ort 2020-12-02 16:00:09 +01:00
parent d0a1ea3292
commit dd5f4488be
11 changed files with 0 additions and 13 deletions

View File

@ -12,7 +12,6 @@ export class DistanceDonation extends Donation {
/** /**
* The runner associated. * The runner associated.
*/ */
@Column()
@IsNotEmpty() @IsNotEmpty()
@ManyToOne(() => Runner, runner => runner.distanceDonations) @ManyToOne(() => Runner, runner => runner.distanceDonations)
runner: Runner; runner: Runner;

View File

@ -22,7 +22,6 @@ export abstract class Donation {
/** /**
* The donations's donor. * The donations's donor.
*/ */
@Column()
@IsNotEmpty() @IsNotEmpty()
@ManyToOne(() => Participant, donor => donor.donations) @ManyToOne(() => Participant, donor => donor.donations)
donor: Participant; donor: Participant;

View File

@ -51,7 +51,6 @@ export abstract class Participant {
* The participant's address. * The participant's address.
* Optional * Optional
*/ */
@Column()
@IsOptional() @IsOptional()
@ManyToOne(() => Address, address => address.participants) @ManyToOne(() => Address, address => address.participants)
address?: Address; address?: Address;

View File

@ -14,7 +14,6 @@ export class Runner extends Participant {
/** /**
* The runner's associated group. * The runner's associated group.
*/ */
@Column()
@IsNotEmpty() @IsNotEmpty()
@ManyToOne(() => RunnerGroup, group => group.runners) @ManyToOne(() => RunnerGroup, group => group.runners)
group: RunnerGroup; group: RunnerGroup;

View File

@ -25,7 +25,6 @@ export class RunnerCard {
/** /**
* The runner that is currently associated with this card. * The runner that is currently associated with this card.
*/ */
@Column()
@IsOptional() @IsOptional()
@ManyToOne(() => Runner, runner => runner.cards) @ManyToOne(() => Runner, runner => runner.cards)
runner: Runner; runner: Runner;

View File

@ -33,7 +33,6 @@ export abstract class RunnerGroup {
* The group's contact. * The group's contact.
* Optional * Optional
*/ */
@Column()
@IsOptional() @IsOptional()
@ManyToOne(() => GroupContact, contact => contact.groups) @ManyToOne(() => GroupContact, contact => contact.groups)
contact?: GroupContact; contact?: GroupContact;

View File

@ -13,7 +13,6 @@ export class RunnerOrganisation extends RunnerGroup {
* The organisations's address. * The organisations's address.
* Optional * Optional
*/ */
@Column()
@IsOptional() @IsOptional()
@ManyToOne(() => Address, address => address.groups) @ManyToOne(() => Address, address => address.groups)
address?: Address; address?: Address;

View File

@ -12,7 +12,6 @@ export class RunnerTeam extends RunnerGroup {
* The team's parent group. * The team's parent group.
* Optional * Optional
*/ */
@Column()
@IsNotEmpty() @IsNotEmpty()
@ManyToOne(() => RunnerGroup, group => group.teams) @ManyToOne(() => RunnerGroup, group => group.teams)
parentGroup?: RunnerGroup; parentGroup?: RunnerGroup;

View File

@ -23,7 +23,6 @@ export abstract class Scan {
/** /**
* The associated runner. * The associated runner.
*/ */
@Column()
@IsNotEmpty() @IsNotEmpty()
@ManyToOne(() => Runner, runner => runner.scans) @ManyToOne(() => Runner, runner => runner.scans)
runner: Runner; runner: Runner;

View File

@ -33,7 +33,6 @@ export class ScanStation {
/** /**
* The track this station is associated with. * The track this station is associated with.
*/ */
@Column()
@IsNotEmpty() @IsNotEmpty()
@ManyToOne(() => Track, track => track.stations) @ManyToOne(() => Track, track => track.stations)
track: Track; track: Track;

View File

@ -20,7 +20,6 @@ export class TrackScan extends Scan {
/** /**
* The associated track. * The associated track.
*/ */
@Column()
@IsNotEmpty() @IsNotEmpty()
@ManyToOne(() => Track, track => track.scans) @ManyToOne(() => Track, track => track.scans)
track: Track; track: Track;
@ -28,7 +27,6 @@ export class TrackScan extends Scan {
/** /**
* The associated card. * The associated card.
*/ */
@Column()
@IsNotEmpty() @IsNotEmpty()
@ManyToOne(() => RunnerCard, card => card.scans) @ManyToOne(() => RunnerCard, card => card.scans)
card: RunnerCard; card: RunnerCard;
@ -36,7 +34,6 @@ export class TrackScan extends Scan {
/** /**
* The scanning station. * The scanning station.
*/ */
@Column()
@IsNotEmpty() @IsNotEmpty()
@ManyToOne(() => ScanStation, station => station.scans) @ManyToOne(() => ScanStation, station => station.scans)
station: ScanStation; station: ScanStation;