mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
40 lines
884 B
TypeScript
Executable File
40 lines
884 B
TypeScript
Executable File
import { Column, Entity } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
|
|
import User from './User';
|
|
import Project from './Project';
|
|
import Subscriber from './Subscriber';
|
|
import Incident from './Incident';
|
|
import AlertType from '../Types/Alerts/AlertType';
|
|
import AlertEventType from '../Types/Alerts/AlertEventType';
|
|
import OperationResult from '../Types/Operation/OperationResult';
|
|
|
|
@Entity({
|
|
name: 'UserAlerts',
|
|
})
|
|
export default class Model extends BaseModel {
|
|
@Column()
|
|
public project?: Project;
|
|
|
|
@Column()
|
|
public subscriber?: Subscriber;
|
|
|
|
@Column()
|
|
public incident?: Incident;
|
|
|
|
@Column()
|
|
public alertVia?: AlertType;
|
|
|
|
@Column()
|
|
public status?: OperationResult;
|
|
|
|
@Column()
|
|
public eventType?: AlertEventType;
|
|
|
|
@Column()
|
|
public errorMessage?: string = undefined;
|
|
|
|
@Column()
|
|
public deletedByUser?: User;
|
|
}
|