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