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

62 lines
961 B
TypeScript

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Project from './Project';
import OnCallDutySchedule from './OnCallDutySchedule';
@Entity({
name: "UserAlerts"
})
export default class Model extends BaseModel {
@Column()
project!: Project
@Column()
callReminders!: number
@Column()
emailReminders!: number
@Column()
smsReminders!: number
@Column()
pushReminders!: number
@Column()
rotateBy!: string
@Column()
rotationInterval!: number
@Column()
firstRotationOn!: Date;
@Column()
rotationTimezone!: string;
@Column()
call!: boolean;
@Column()
email!: boolean;
@Column()
sms!: boolean;
@Column()
push!: boolean;
@Column()
createdByUser!: User
@Column()
onCallDutySchedule!: OnCallDutySchedule
@Column()
deletedByUser!: User;
}