module.exports = (sequelize, type) => {
    const PrAppAnsOffline = sequelize.define('prappans_offline', {
        id: {
            type: type.INTEGER,
            primaryKey: true,
            autoIncrement: true
        },
        user_id: type.INTEGER,
        domain_id: type.INTEGER,
        que: type.INTEGER,
        answer: { type: type.TEXT, allowNull: true, get: function () { return this.getDataValue('answer') } },
        correct: { type: type.TEXT, allowNull: true, get: function () { return this.getDataValue('correct') } },
        isreview: { type: type.TEXT, allowNull: true, get: function () { return this.getDataValue('isreview') } },
        timestamp: type.TEXT
    })
    return PrAppAnsOffline;
}