'use strict';
import { Schema, model, connect } from 'mongoose';
//Model for user details.
enum Type {
  
	HOST = 'Host',
	CUSTOMER = 'Customer'
  }
const faqSchema = new Schema(
	{
		question_en: {
			type: String 
		},

        answer_en: {
			type: String 
		},
		question_ar: {
			type: String 
		},

        answer_ar: {
			type: String 
		},
		user_type: {
			type: String 
		},
		question_fr: {
			type: String 
		},

        answer_fr: {
			type: String 
		},
		is_active: {
			type: Boolean,
             default: true
		},
		is_priority:{
			type: Boolean,
			default: false
		},
		is_deleted: {
			type: Boolean,
			default: false
		}

	},
	{
		timestamps: true,
	},
);

let FAQ = model('FAQ', faqSchema)
module.exports = {FAQ, faqSchema}