loopback/lib/models/role.js

10 lines
280 B
JavaScript

// Role model
var RoleSchema = {
id: {type: String, required: true},
name: {type: String, required: true},
roles: [String], // A role can be an aggregate of other roles
users: [String], // A role contains a list of users
created: Date,
lastUpdated: Date
}