{ "name": "Problem", "type": "object", "properties": { "title": { "type": "string", "description": "Problem title" }, "question": { "type": "string", "description": "The chemistry problem statement" }, "topic": { "type": "string", "enum": [ "organic_chemistry", "inorganic_chemistry", "physical_chemistry", "analytical_chemistry", "biochemistry", "quantum_chemistry", "materials_science" ], "description": "Chemistry topic category" }, "difficulty": { "type": "string", "enum": [ "beginner", "intermediate", "advanced" ], "description": "Problem difficulty level" }, "solution": { "type": "string", "description": "Step-by-step solution explanation" }, "molecular_formula": { "type": "string", "description": "Chemical formula if applicable" }, "molecular_structure": { "type": "string", "description": "3D molecular structure data for visualization" }, "concepts": { "type": "array", "items": { "type": "string" }, "description": "Key chemistry concepts covered" }, "hints": { "type": "array", "items": { "type": "string" }, "description": "Progressive hints for problem solving" } }, "required": [ "title", "question", "topic", "difficulty", "solution" ], "rls": { "read": { "$or": [ { "created_by": "{{user.email}}" }, { "user_condition": { "role": "admin" } } ] }, "write": { "$or": [ { "created_by": "{{user.email}}" }, { "user_condition": { "role": "admin" } } ] } } }