oneuptime/Common/Models/ExternalStatusPage.ts
Simon Larsen f0c0715f36
fix
2022-04-29 20:52:23 +01:00

44 lines
614 B
TypeScript

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Project from './Project';
import StatusPage from './StatusPage';
@Entity({
name: "ExternalStatusPage"
})
export default class ExternalStatusPage extends BaseModel {
@Column()
name!: string;
@Column()
url!: URL;
@Column()
description!: string;
@Column()
statusPage!: StatusPage
@Column()
project!: Project
@Column()
deletedByUser!: User
@Column()
createdByUser!: User
};