oneuptime/Common/Models/SmsTemplate.ts
2022-04-27 20:38:55 +01:00

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