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

23 lines
584 B
JavaScript

module.exports = (sequelize, type) => {
const Acronyms = sequelize.define('acronyms', {
id: {
type: type.INTEGER,
primaryKey: true,
autoIncrement: true
},
short_name: {
type: type.STRING,
unique: {
args: true,
msg: 'Oops. Looks like acronyms already exist.'
}
},
certi_id: type.INTEGER,
full_name: type.TEXT,
status: {
type: type.INTEGER,
defaultValue: '0'
}
})
return Acronyms;
}