mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
49 lines
688 B
TypeScript
Executable File
49 lines
688 B
TypeScript
Executable File
import { Column, Entity, Index } 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()
|
|
monitor!: Monitor;
|
|
|
|
@Column()
|
|
probe!: Probe;
|
|
|
|
@Column()
|
|
incident!: Incident;
|
|
|
|
@Column()
|
|
status!: ResourceStatus;
|
|
|
|
@Column()
|
|
manuallyCreated!: boolean;
|
|
|
|
@Column()
|
|
startTime!: Date
|
|
|
|
@Column()
|
|
endTime!: Date;
|
|
|
|
@Column()
|
|
lastStatus!: string;
|
|
|
|
@Column()
|
|
deletedByUser!: User;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|