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

26 lines
697 B
JavaScript

module.exports = (sequelize, type) => {
const References = sequelize.define('references', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
d_id: type.INTEGER,
sd_id: type.INTEGER,
topic_id: type.INTEGER,
subtopic_id: type.INTEGER,
web_link: type.TEXT,
certi_id: type.INTEGER,
cource_id: type.INTEGER,
book_id: type.INTEGER,
ref_type: type.TEXT,
page_no: type.INTEGER,
title: type.TEXT,
content: type.TEXT,
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return References;
}