"""
Privilege Message Schema
"""

Privilege = {
	"type": "object",
	"properties": {
		"id": {"type": "number"},
		"user": {"type": "string", "pattern": "^[A-Z0-9]{2}\\-[0-9A-Z]{8}$"},
		"type": {"type": "string", "enum": ['host','event']},
		"resource": {"type": "string", "pattern": "^[0-9]{14}$"},
		"role": {"type": "string"}
	},
    "unevaluatedProperties": False,
  	"required": ["user", "type", "resource", "role"]
}
