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