naming convention

This commit is contained in:
Amra Šabić
2018-02-18 13:36:42 +01:00
parent 36a4fb4272
commit 419993262d
3 changed files with 12 additions and 16 deletions

View File

@@ -3,7 +3,10 @@
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var GroupSchema = new Schema({
var permissonsSchema
var groupSchema = new Schema({
// TODO additional fields may be added
name: {
type: String
@@ -13,4 +16,4 @@ var GroupSchema = new Schema({
users: []
});
module.exports = mongoose.model('Group', GroupSchema);
module.exports = mongoose.model('Group', groupSchema);