mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
47 lines
769 B
TypeScript
47 lines
769 B
TypeScript
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
import ScheduledEvent, { ScheduledEventState } from './ScheduledEvent';
|
|
|
|
export enum ScheduledEventNote {
|
|
Investogation = "Investigation",
|
|
Internam = "Internal"
|
|
}
|
|
|
|
|
|
@Entity({
|
|
name: "UserAlerts"
|
|
})
|
|
export default class Model extends BaseModel {
|
|
|
|
@Column()
|
|
scheduledEvent!: ScheduledEvent
|
|
|
|
@Column()
|
|
content!: string;
|
|
|
|
@Column()
|
|
type!: ScheduledEventNote
|
|
|
|
@Column()
|
|
eventState!: ScheduledEventState;
|
|
|
|
@Column()
|
|
createdByUser!: User;
|
|
|
|
@Column()
|
|
updated!: boolean;
|
|
|
|
@Column()
|
|
deletedByUser!: User;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|