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

21 lines
541 B
JavaScript

module.exports = (sequelize, type) => {
const Socket = sequelize.define('sockets', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
user_id: type.INTEGER,
connectionId: type.STRING,
domainName: type.STRING,
stage: type.STRING,
test_id: type.INTEGER,
roll_id: type.INTEGER,
sr_no: type.INTEGER,
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return Socket;
}