{
	"name": "SecMembership",
	"automaticValidation": false,
	"properties": {
		"id": {
			"type": "string",
			"id": true,
			"generated": false
		},
		"userId": {
			"type": "string",
			"required": true,
			"index": true
		},
		"roleId": {
			"type": "string",
			"required": true,
			"index": true
		},
		"scope": {
			"type": "string",
			"index": true
		},
		"scopeId": {
			"type": "string",
			"index": true
		},
		"state": {
			"type": "string",
			"index": true,
			"default": "pending",
			"comment": "The role membership state. Could be 'active' and 'pending'"
		}
	},
	"relations": {
		"role": {
			"type": "belongsTo",
			"model": "SecRole",
			"foreignKey": "roleId"
		}
	}
}
