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

68 lines
1.0 KiB
TypeScript
Executable File

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Project from './Project';
import { IncidentState }, Incident from './Incident';
import Escalation from './Escalation';
import Schedule from './OnCallDutySchedule';
import Incident from './Incident';
@Entity({
name: "UserAlerts"
})
export default class UserAlerts extends BaseModel {
@Column({
nullable: false,
})
project!: Project;
@Column({
nullable: false,
})
user!: User;
@Column()
alertType!: string;
@Column()
alertStatus!: string;
@Column()
eventType!: IncidentState
@Column()
incident!: Incident;
@Column()
onCallScheduleStatus!: OnCallSchedule;
@Column()
schedule!: Schedule;
@Column()
escalation!: Escalation;
@Column()
error!: boolean;
@Column()
errorMessage!: string;
@Column()
alertProgress!: string
@Column()
deletedByUser!: User;
}