module.exports = (sequelize, type) => {
    const AIQuestions = sequelize.define('ai_questions', {
        id: {
            type: type.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        certi_id: type.INTEGER,
        d_id: type.INTEGER,
        question: type.TEXT,
        optionA: type.TEXT,
        optionB: type.TEXT,
        optionC: type.TEXT,
        optionD: type.TEXT,
        correct: type.INTEGER,
        explanation: type.TEXT,
        notes: type.TEXT,
        status: {
            type: type.INTEGER,
            defaultValue: 0
        }
    })
    return AIQuestions;
}