mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
40 lines
802 B
TypeScript
Executable File
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;
|
|
}
|