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