mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
32 lines
438 B
TypeScript
32 lines
438 B
TypeScript
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import StatusPage from './StatusPage';
|
|
|
|
@Entity({
|
|
name: "UserAlerts"
|
|
})
|
|
export default class Model extends BaseModel {
|
|
|
|
@Column()
|
|
statusPage!: StatusPage
|
|
|
|
@Column()
|
|
name!: string;
|
|
|
|
@Column()
|
|
createdByUser!: User
|
|
|
|
@Column()
|
|
deletedByUser!: User
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|