Add Exception model
This commit is contained in:
parent
441c8580ef
commit
fa5443facf
@ -8,11 +8,10 @@ class Exception(Base):
|
|||||||
__tablename__ = "exceptions"
|
__tablename__ = "exceptions"
|
||||||
|
|
||||||
id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
|
id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
|
||||||
error_code = Column(String(50), nullable=False)
|
error_code = Column(String, nullable=False, index=True)
|
||||||
error_message = Column(String(255), nullable=False)
|
error_message = Column(Text, nullable=False)
|
||||||
stack_trace = Column(Text, nullable=True)
|
stack_trace = Column(Text, nullable=True)
|
||||||
endpoint = Column(String(100), nullable=False)
|
endpoint = Column(String, nullable=False)
|
||||||
method = Column(String(10), nullable=False)
|
|
||||||
request_data = Column(Text, nullable=True)
|
request_data = Column(Text, nullable=True)
|
||||||
created_at = Column(DateTime, default=func.now())
|
created_at = Column(DateTime, default=func.now())
|
||||||
updated_at = Column(DateTime, default=func.now(), onupdate=func.now())
|
updated_at = Column(DateTime, default=func.now(), onupdate=func.now())
|
Loading…
x
Reference in New Issue
Block a user