add new files
This commit is contained in:
16
api/models/groupModel.js
Normal file
16
api/models/groupModel.js
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
var mongoose = require('mongoose');
|
||||
var Schema = mongoose.Schema;
|
||||
|
||||
var GroupSchema = new Schema({
|
||||
// TODO additional fields may be added
|
||||
name: {
|
||||
type: String
|
||||
},
|
||||
// TODO figure out those two below
|
||||
permissons:[],
|
||||
users: []
|
||||
});
|
||||
|
||||
module.exports = mongoose.model('Group', GroupSchema);
|
||||
Reference in New Issue
Block a user