oneuptime/Common/Models/AnnouncementLog.ts
2022-04-27 20:38:55 +01:00

46 lines
720 B
TypeScript

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Announcement from './Announcement';
import StatusPage from './StatusPage';
import Project from './Project';
@Entity({
name: "AnnouncementLog"
})
export default class AnnouncementLog extends BaseModel {
@Column()
announcement!: Announcement;
@Index()
@Column()
project!: Project;
@Column()
statusPage!: StatusPage
@Column()
startDate!: Date
@Column()
endDate!: Date
@Column()
deletedByUser!: User
@Column()
createdByUser!: User
@Column()
active!: boolean;
}