oneuptime/Common/Models/SmsProvider.ts
Simon Larsen f0c0715f36
fix
2022-04-29 20:52:23 +01:00

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;
};