13 lines
481 B
Python
13 lines
481 B
Python
from datetime import datetime, timezone
|
|
from app.extensions import db
|
|
|
|
class RACCheck(Base):
|
|
__tablename__ = "rac_checks"
|
|
|
|
id = Column(UUID(as_uuid=True), primary_key=True, default=uuid4)
|
|
transaction_id = Column(UUID, ForeignKey('transactions.id'), nullable=False)
|
|
customer_id = Column(String, nullable=False)
|
|
account_id = Column(String, nullable=False)
|
|
rac_response = Column(JSON, nullable=False)
|
|
created_at = Column(DateTime, default=datetime.utcnow)
|