Created
August 14, 2011 14:22
-
-
Save mikekunze/1144910 to your computer and use it in GitHub Desktop.
Schema for portal permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Roles | |
this.roles = { | |
description: { type: String }, | |
text: { type: String }, | |
id: { type: String }, | |
parent: { type: String }, | |
leaf: { type: Boolean } | |
}; | |
this.p_roles = { | |
account_id: { type: ObjectId }, | |
role_id: { type: ObjectId } | |
}; | |
// Groups | |
this.groups = { | |
description: { type: String } | |
}; | |
this.p_groups = { | |
account_id: { type: ObjectId }, | |
role_id: { type: ObjectId } | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment