module.exports = (sequelize, type) => {
    const PracticeAppAns = sequelize.define('practiceapp_ans', {
        id: {
            type: type.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        user_id: type.INTEGER,
        domain_id: type.INTEGER,
        que: type.INTEGER,
        answer: type.INTEGER,
        correct: type.INTEGER,
        isreview: type.INTEGER,
        active: type.INTEGER,
        timestamp: type.TEXT,
        status: {
            type: type.INTEGER,
            defaultValue: 0
        },
        cohort_id: {
            type: type.INTEGER,
            defaultValue: 0
        }
    })
    return PracticeAppAns;
}