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