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

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;
}