"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const sequelize_1=require("sequelize");class faqQuestion extends sequelize_1.Model{static initModel(e){return faqQuestion.init({id:{type:sequelize_1.DataTypes.UUID,defaultValue:sequelize_1.DataTypes.UUIDV4,primaryKey:!0,allowNull:!1},name:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,validate:{notEmpty:{msg:"name: Name must not be empty"}}},email:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,validate:{isEmail:{msg:"email: Must be a valid email"},notEmpty:{msg:"email: Email must not be empty"}}},question:{type:sequelize_1.DataTypes.TEXT,allowNull:!1,validate:{notEmpty:{msg:"question: Question must not be empty"}}},answer:{type:sequelize_1.DataTypes.TEXT,allowNull:!0},status:{type:sequelize_1.DataTypes.ENUM("PENDING","ANSWERED","REJECTED"),allowNull:!1,defaultValue:"PENDING",validate:{isIn:{args:[["PENDING","ANSWERED","REJECTED"]],msg:"status: Must be one of: PENDING, ANSWERED, REJECTED"}}}},{sequelize:e,modelName:"faqQuestion",tableName:"faq_questions",paranoid:!0,timestamps:!0,indexes:[{name:"PRIMARY",unique:!0,fields:[{name:"id"}]},{name:"faq_questions_status_idx",fields:[{name:"status"}]}]})}static associate(e){}}exports.default=faqQuestion;