mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
29 lines
545 B
TypeScript
Executable File
29 lines
545 B
TypeScript
Executable File
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
import SmsTemplateType from '../Types/SMS/SmsTemplateType';
|
|
|
|
@Entity({
|
|
name: "SmsTemplate"
|
|
})
|
|
export default class SmsTemplate extends BaseModel {
|
|
|
|
@Column()
|
|
project!: Project;
|
|
|
|
@Column()
|
|
content!: string;
|
|
|
|
@Column()
|
|
smsType!: SmsTemplateType
|
|
|
|
@Column({
|
|
array: true,
|
|
type: "text"
|
|
})
|
|
allowedVariables!: Array<string>
|
|
|
|
@Column()
|
|
deletedByUser!: User;
|
|
} |