working auto

This commit is contained in:
2025-09-27 00:13:20 -04:00
parent deaf2f111a
commit 10d82cf81a
3 changed files with 9 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ class Transaction(db.Model):
service_id = Column(Integer, nullable=True) # Reference to Service_Service.id
delivery_id = Column(Integer, nullable=True) # Reference to Delivery_Delivery.id
card_id = Column(Integer, nullable=True) # Reference to credit card used for payment
auto_id = Column(Integer, nullable=True) # Reference to Auto_Delivery or Auto_Ticket.id
payment_gateway = Column(Integer, default=1) # 1 = Authorize.Net, 0 = Other
rejection_reason = Column(String, nullable=True) # Detailed error message when payment is declined
created_at = Column(DateTime, default=datetime.datetime.utcnow)