add new files

This commit is contained in:
Amra Šabić
2018-02-17 18:28:39 +01:00
parent 4d47c08182
commit 2362d417d6
4 changed files with 66 additions and 0 deletions

16
api/models/groupModel.js Normal file
View 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);