wikijs-fork/server/models/group.js
2017-10-08 17:21:36 -04:00

17 lines
264 B
JavaScript

/**
* Group schema
*/
module.exports = (sequelize, DataTypes) => {
let groupSchema = sequelize.define('group', {
name: {
type: DataTypes.STRING,
allowNull: false
}
}, {
timestamps: true,
version: true
})
return groupSchema
}