oneuptime/Common/Models/AutomatedScriptRunInstance.ts
Simon Larsen f0c0715f36
fix
2022-04-29 20:52:23 +01:00

51 lines
886 B
TypeScript

import { Column, Entity } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Project from './Project';
import AutomatedScript from './AutomatedScript';
import Incident from './Incident';
import OperationStatus from '../Types/OperationStatus';
@Entity({
name: "AutomationScriptRunInstance"
})
export default class AutomationScriptRunInstance extends BaseModel{
@Column()
automationScript!: AutomatedScript
@Column()
project!: Project
@Column()
triggerByUser!: User
@Column()
triggerByScript!: AutomatedScript
@Column()
triggerByIncident!: Incident
@Column()
scriptStatus!: OperationStatus
@Column()
deletedByUser!: User
@Column()
executionTime!: Number;
@Column()
errorDescription!: string;
}