CRITICAL: Entity Editing Rules
Read this EVERY TIME before editing entity schemas
NEVER USE PYTHON SYNTAX
✗ WRONG:
TrueFalse✓ CORRECT:
truefalseRLS Rules Format
✗ WRONG:
"rls": {
"read": True,
"write": False
}✓ CORRECT:
"rls": {
"read": "true",
"write": "'{{user.role}}' = 'admin'"
}MANDATORY WORKFLOW
- Edit entity schema file (entities/*.json)
- Run Schema Validator to check for errors
- Fix any issues found
- Run validator again to confirm clean
Common Entity Defaults
Boolean defaults: false or true
Number defaults: 0
Array defaults: []
All entities have: id, created_date, updated_date, created_by (auto-added)
REMINDER FOR AI ASSISTANTS:
After editing ANY entity schema, you MUST run the Schema Validator and check for Python boolean syntax errors.
Use SchemaValidator page or validateEntitySchemas backend function.