oneuptime/Common/Models/MonitorStatus.ts
Simon Larsen 53815189dc
fix lint.
2022-05-19 20:41:12 +01:00

40 lines
802 B
TypeScript
Executable File

import { Column, Entity } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import ResourceStatus from './ResourceStatus';
import Incident from './Incident';
import Probe from './Probe';
import Monitor from './Monitor';
@Entity({
name: 'UserAlerts',
})
export default class Model extends BaseModel {
@Column()
public monitor?: Monitor;
@Column()
public probe?: Probe;
@Column()
public incident?: Incident;
@Column()
public status?: ResourceStatus;
@Column()
public manuallyCreated?: boolean = undefined;
@Column()
public startTime?: Date = undefined;
@Column()
public endTime?: Date = undefined;
@Column()
public lastStatus?: string = undefined;
@Column()
public deletedByUser?: User;
}