17 lines
721 B
JavaScript
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;
|
|
} |