@@ -1,4 +1,4 @@
|
||||
import { PrimaryGeneratedColumn, Column } from "typeorm";
|
||||
import { PrimaryGeneratedColumn, Column, ManyToOne } from "typeorm";
|
||||
import {
|
||||
IsInt,
|
||||
IsNotEmpty,
|
||||
@@ -24,7 +24,7 @@ export abstract class Scan {
|
||||
*/
|
||||
@Column()
|
||||
@IsNotEmpty()
|
||||
//TODO: Relationship
|
||||
@ManyToOne(() => Runner, runner => runner.scans)
|
||||
runner: Runner;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user