oneuptime/Common/Models/Announcement.ts
Simon Larsen 53815189dc
fix lint.
2022-05-19 20:41:12 +01:00

39 lines
756 B
TypeScript

import { Column, Entity } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Project from './Project';
import StatusPage from './StatusPage';
@Entity({
name: 'Announcement',
})
export default class Announcement extends BaseModel {
@Column()
public statusPage?: StatusPage;
@Column()
public project?: Project;
@Column()
public slug?: string = undefined;
@Column()
public hideAnnouncement?: boolean = undefined;
@Column()
public deletedByUser?: User;
@Column()
public createdByUser?: User;
@Column()
public name?: string = undefined;
@Column()
public description?: string = undefined;
@Column()
public resolved?: boolean = undefined;
}