oneuptime/Common/Models/IncidentNote.ts
2022-04-27 20:54:34 +01:00

44 lines
660 B
TypeScript

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Incident, { IncidentState } from './Incident';
export enum IncidentMessageType{
Investogation = "Investigation",
Internam = "Internal"
}
@Entity({
name: "IncidentNote"
})
export default class IncidentNote extends BaseModel {
@Column()
incident!: Incident
@Column()
content!: string;
@Column()
type!: IncidentMessageType
@Column()
incidentState!: IncidentState;
@Column()
createdByUser!: User;
@Column()
deletedByUser!: User;
@Column()
postOnStatusPage!: boolean;
}