LMS/E-Learning-Backend-main/app/models/prappans_offline.js
2025-09-01 19:37:35 +05:30

17 lines
721 B
JavaScript

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;
}