loopback/lib/models/role.js

10 lines
326 B
JavaScript
Raw Normal View History

// 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,
roles: [String], // A role can be an aggregate of other roles
users: [String], // A role contains a list of users
created: Date,
lastUpdated: Date
}