Fixes DB models
This commit is contained in:
parent
b97670d939
commit
43b8a07b1d
1 changed files with 5 additions and 0 deletions
|
|
@ -99,6 +99,11 @@ class ChatObjects:
|
|||
else:
|
||||
field_type = type(value) # Fallback
|
||||
|
||||
# Always route relational/object fields to object_fields for separate handling
|
||||
if field_name in ['documents', 'stats']:
|
||||
object_fields[field_name] = value
|
||||
continue
|
||||
|
||||
# Check if this is a JSONB field (Dict, List, or complex types)
|
||||
if (field_type == dict or
|
||||
field_type == list or
|
||||
|
|
|
|||
Loading…
Reference in a new issue