"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const sequelize_1=require("sequelize");class notificationTemplate extends sequelize_1.Model{static initModel(e){return notificationTemplate.init({id:{type:sequelize_1.DataTypes.INTEGER,autoIncrement:!0,primaryKey:!0,allowNull:!1},name:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,validate:{notEmpty:{msg:"name: Name cannot be empty"}}},subject:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,validate:{notEmpty:{msg:"subject: Subject cannot be empty"}}},emailBody:{type:sequelize_1.DataTypes.TEXT("long"),allowNull:!0},smsBody:{type:sequelize_1.DataTypes.TEXT("long"),allowNull:!0},pushBody:{type:sequelize_1.DataTypes.TEXT("long"),allowNull:!0},shortCodes:{type:sequelize_1.DataTypes.TEXT,allowNull:!0},email:{type:sequelize_1.DataTypes.BOOLEAN,allowNull:!0,defaultValue:!1},sms:{type:sequelize_1.DataTypes.BOOLEAN,allowNull:!0,defaultValue:!1},push:{type:sequelize_1.DataTypes.BOOLEAN,allowNull:!0,defaultValue:!1}},{sequelize:e,modelName:"notificationTemplate",tableName:"notification_template",timestamps:!1,indexes:[{name:"PRIMARY",unique:!0,using:"BTREE",fields:[{name:"id"}]},{name:"notificationTemplateNameKey",unique:!0,using:"BTREE",fields:[{name:"name"}]}]})}static associate(e){}}exports.default=notificationTemplate;