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

24 lines
611 B
JavaScript

module.exports = (sequelize, type) => {
const Domain = sequelize.define('domain', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
domin_name: {
type: type.STRING,
unique: {
args: true,
msg: 'Oops. Looks like domain already exist.'
}
},
domain_number: type.TEXT,
certi_id: type.INTEGER,
cource_id: type.INTEGER,
status: {
type: type.INTEGER,
defaultValue: 0
}
})
return Domain
}