{
	"name": "SecRole",
	"automaticValidation": false,
	"properties": {
		"id": {
			"type": "string",
			"id": true,
			"generated": false
		},
		"name": {
			"type": "string",
			"required": true
		},
		"scope": {
			"type": "string",
			"index": true
		},
		"scopeId": {
			"type": "string",
			"index": true
		},
		"description": "string"
	},
	"relations": {
		"inherits": {
			"type": "referencesMany",
			"model": "SecRole",
			"foreignKey": "parentIds",
			"options": {
				"validate": true,
				"forceId": false
			}
		},
		"mappings": {
			"type": "hasMany",
			"model": "SecMembership",
			"foreignKey": "roleId"
		}
	}
}
