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

34 lines
486 B
TypeScript

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Project from './Project';
@Entity({
name: "UserAlerts"
})
export default class Model extends BaseModel {
@Column()
name!: string;
@Column()
project!: Project;
@Column()
isDefault!: boolean;
@Column()
frequency!: string // Measured in days
@Column()
monitorUptime!: string;
}