File size: 2,016 Bytes
b3a7bda |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
{
"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"
}
}
]
}
}
} |