mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
36 lines
568 B
TypeScript
Executable File
36 lines
568 B
TypeScript
Executable File
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
import { JSONObject } from '../Types/JSON';
|
|
|
|
export enum SMSProviderType {
|
|
Twilio = "twilio"
|
|
}
|
|
|
|
@Entity({
|
|
name: "UserAlerts"
|
|
})
|
|
export default class Model extends BaseModel {
|
|
|
|
@Column()
|
|
project!: Project;
|
|
|
|
@Column()
|
|
enabled!: boolean;
|
|
|
|
@Column()
|
|
provider!: SMSProviderType
|
|
|
|
@Column()
|
|
credentials!: JSONObject
|
|
|
|
@Column()
|
|
deletedByUser!: User;
|
|
|
|
@Column()
|
|
createdByUser!: User;
|
|
};
|
|
|
|
|