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

19 lines
507 B
JavaScript

module.exports = (sequelize, type) => {
const CardView = sequelize.define('card_views', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
card_id: type.INTEGER,
card_type: type.TEXT,//Summary,References
topic_id: type.INTEGER,
cohort_id: type.INTEGER,
user_id: type.INTEGER,
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return CardView;
}