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

22 lines
557 B
JavaScript

module.exports = (sequelize, type) => {
const Points = sequelize.define('points', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
user_id: type.INTEGER,
domain_id: type.INTEGER,
know_points: type.INTEGER,
flash_points: type.INTEGER,
cat_points: type.INTEGER,
video_points: type.INTEGER,
total: type.INTEGER,
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return Points;
}