mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
44 lines
660 B
TypeScript
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;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|