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

24 lines
489 B
JavaScript

module.exports = (sequelize, type) => {
const SubTopic = sequelize.define('subtopic', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
topic_id: type.INTEGER,
subtopic_name: {
type: type.STRING
},
d_id: type.INTEGER,
sd_id: type.INTEGER,
cource_id: type.INTEGER,
description: type.TEXT,
video_url: type.TEXT,
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return SubTopic;
}