2013-06-26 23:25:51 +00:00
|
|
|
// Role model
|
|
|
|
var RoleSchema = {
|
|
|
|
id: {type: String, required: true},
|
2013-07-08 23:59:11 +00:00
|
|
|
name: {type: String, required: true}, // The name of a role
|
|
|
|
description: String,
|
2013-07-01 18:51:28 +00:00
|
|
|
roles: [String], // A role can be an aggregate of other roles
|
|
|
|
users: [String], // A role contains a list of users
|
2013-06-26 23:25:51 +00:00
|
|
|
created: Date,
|
|
|
|
lastUpdated: Date
|
|
|
|
}
|