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

34 lines
869 B
JavaScript

module.exports = (sequelize, type) => {
const FlashCardOffline = sequelize.define('flashcard_offline', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
UserId: type.INTEGER,
cid: type.INTEGER,
domain: type.INTEGER,
Subdomain: type.INTEGER,
term: type.TEXT,
definition: type.TEXT,
correct: {
type: type.INTEGER,
defaultValue: 0
},
total_review: {
type: type.INTEGER,
defaultValue: 0
},
total_mark: {
type: type.INTEGER,
defaultValue: 0
},
answer: type.INTEGER,
notes: type.INTEGER,
cohort_id: {
type: type.INTEGER,
defaultValue: 0
}
})
return FlashCardOffline;
}