mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
26 lines
473 B
TypeScript
Executable File
26 lines
473 B
TypeScript
Executable File
import { Column, Entity } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
|
|
import User from './User';
|
|
import Project from './Project';
|
|
|
|
@Entity({
|
|
name: 'UserAlerts',
|
|
})
|
|
export default class Model extends BaseModel {
|
|
@Column()
|
|
public name?: string = undefined;
|
|
|
|
@Column()
|
|
public slug?: string = undefined;
|
|
|
|
@Column()
|
|
public project?: Project;
|
|
|
|
@Column()
|
|
public createdByUser?: User;
|
|
|
|
@Column()
|
|
public deletedByUser?: User;
|
|
}
|