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

20 lines
549 B
JavaScript

module.exports = (sequelize, type) => {
const TeacherAccess = sequelize.define('teacher_accesses', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
user_id: type.INTEGER,
certi_Ids: {
type: type.TEXT,
allowNull: true,
get: function () { return this.getDataValue('certi_Ids').split(',') }
},
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return TeacherAccess;
}