mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
42 lines
482 B
TypeScript
42 lines
482 B
TypeScript
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
|
|
|
|
@Entity({
|
|
name: "UserAlerts"
|
|
})
|
|
export default class Model extends BaseModel {
|
|
|
|
@Column()
|
|
user!: User;
|
|
|
|
@Column()
|
|
sentTo!: string;
|
|
|
|
@Column()
|
|
project!: Project;
|
|
|
|
@Column()
|
|
content!: string;
|
|
|
|
@Column()
|
|
deletedByUser!: User;
|
|
|
|
@Column()
|
|
status!: string;
|
|
|
|
@Column()
|
|
error!: string;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|