Navigation
CRITICAL: Entity Editing Rules

Read this EVERY TIME before editing entity schemas

NEVER USE PYTHON SYNTAX

✗ WRONG:TrueFalse
✓ CORRECT:truefalse

RLS Rules Format

✗ WRONG:
"rls": {
  "read": True,
  "write": False
}
✓ CORRECT:
"rls": {
  "read": "true",
  "write": "'{{user.role}}' = 'admin'"
}

MANDATORY WORKFLOW

  1. Edit entity schema file (entities/*.json)
  2. Run Schema Validator to check for errors
  3. Fix any issues found
  4. 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.