17 lines
330 B
JavaScript
17 lines
330 B
JavaScript
|
|
'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);
|