mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-18 01:34:00 -05:00
Preserve anchor event metadata column name
This commit is contained in:
@@ -67,8 +67,8 @@ class AnchorEvent(Base):
|
|||||||
status = Column(String(20), nullable=False) # pending, confirmed, failed
|
status = Column(String(20), nullable=False) # pending, confirmed, failed
|
||||||
error_message = Column(Text, nullable=True)
|
error_message = Column(Text, nullable=True)
|
||||||
|
|
||||||
# Metadata (renamed from 'metadata' to avoid SQLAlchemy reserved attribute)
|
# Metadata (attribute renamed from 'metadata' to avoid SQLAlchemy reserved attribute)
|
||||||
event_metadata = Column(Text, nullable=True) # JSON serialized
|
event_metadata = Column("metadata", Text, nullable=True) # JSON serialized
|
||||||
|
|
||||||
# Timestamps
|
# Timestamps
|
||||||
created_at = Column(DateTime(timezone=True), server_default=func.now(), nullable=False)
|
created_at = Column(DateTime(timezone=True), server_default=func.now(), nullable=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user