From e873e73d6c6d3a7bd98dd672d140dea121094425 Mon Sep 17 00:00:00 2001 From: Edwin Eames Date: Tue, 16 Sep 2025 12:44:59 -0400 Subject: [PATCH] Working flow authorize --- app/models/cards.py | 3 ++- app/models/customer.py | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/cards.py b/app/models/cards.py index 16b1eb2..ed4a3dc 100644 --- a/app/models/cards.py +++ b/app/models/cards.py @@ -1,6 +1,6 @@ from sqlalchemy import (Column, Integer, - DECIMAL, BOOLEAN, DATE, + String, BOOLEAN, DATE, VARCHAR, INTEGER) from datetime import datetime, timezone @@ -26,4 +26,5 @@ class Card_Card(Base): security_number = Column(INTEGER()) accepted_or_declined = Column(INTEGER()) main_card = Column(BOOLEAN()) + auth_net_payment_profile_id = Column(String, unique=True, index=True, nullable=False) \ No newline at end of file diff --git a/app/models/customer.py b/app/models/customer.py index 43ca18b..5ae81da 100644 --- a/app/models/customer.py +++ b/app/models/customer.py @@ -1,8 +1,7 @@ from sqlalchemy import (Column, Integer, - DECIMAL, + String, VARCHAR, DATE, INTEGER) -from datetime import datetime, timezone from database import Base @@ -29,4 +28,4 @@ class Customer_Customer(Base): customer_address = Column(VARCHAR(1000)) company_id = Column(INTEGER) - + auth_net_profile_id = Column(String(100))