25 lines
629 B
JavaScript
25 lines
629 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const Topic = sequelize.define('topic', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
topic_name: {
|
|
type: type.STRING
|
|
},
|
|
d_id: type.INTEGER,
|
|
sd_id: type.INTEGER,
|
|
certi_id: type.INTEGER,
|
|
cource_id: type.INTEGER,
|
|
description: type.TEXT,
|
|
video_url: type.TEXT,
|
|
topic_number: type.TEXT,
|
|
sr_number: type.TEXT,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return Topic;
|
|
} |