Preserve anchor event metadata column name

This commit is contained in:
Alexa Amundson
2025-11-19 13:31:52 -06:00
parent a11ad269ae
commit 4f93ca4ad3

View File

@@ -67,8 +67,8 @@ class AnchorEvent(Base):
status = Column(String(20), nullable=False) # pending, confirmed, failed
error_message = Column(Text, nullable=True)
# Metadata (renamed from 'metadata' to avoid SQLAlchemy reserved attribute)
event_metadata = Column(Text, nullable=True) # JSON serialized
# Metadata (attribute renamed from 'metadata' to avoid SQLAlchemy reserved attribute)
event_metadata = Column("metadata", Text, nullable=True) # JSON serialized
# Timestamps
created_at = Column(DateTime(timezone=True), server_default=func.now(), nullable=False)