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

40 lines
518 B
TypeScript

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Issue from './Issue';
export enum IssueStatus {
New = "New",
Ignore = "Ignore",
Unresolve = "Unreoslve",
Resolve = "Resolve",
}
@Entity({
name: "IssueTimeline"
})
export default class IssueTimeline extends BaseModel {
@Column()
issue!: Issue;
@Column()
createdByUser!: User;
@Column()
status!: IssueStatus
@Column()
deletedByUser!: User;
}