feat: stripe improvments
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from database import Base
|
||||
from models.CustomBase import CustomBase
|
||||
from sqlalchemy import Column, Integer, String, ForeignKey
|
||||
from sqlalchemy import Column, Integer, String, ForeignKey, Numeric
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
class PaymentLogs(Base, CustomBase):
|
||||
@@ -8,7 +8,7 @@ class PaymentLogs(Base, CustomBase):
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
customer_id = Column(String)
|
||||
account_id = Column(String)
|
||||
amount = Column(Integer)
|
||||
amount = Column(Numeric(10, 2))
|
||||
clinic_id = Column(Integer)
|
||||
unique_clinic_id = Column(String)
|
||||
payment_status = Column(String)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
from sqlalchemy import Column, Integer, String
|
||||
from database import Base
|
||||
from .CustomBase import CustomBase
|
||||
|
||||
class PaymentSessions(Base, CustomBase):
|
||||
__tablename__ = "payment_sessions"
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
session_id = Column(String(255), unique=True, index=True)
|
||||
customer_id = Column(String, nullable=False)
|
||||
clinic_id = Column(Integer, nullable=False)
|
||||
status = Column(String, nullable=False)
|
||||
|
||||
+3
-1
@@ -18,6 +18,7 @@ from .ResetPasswordTokens import ResetPasswordTokens
|
||||
from .ClinicOffers import ClinicOffers
|
||||
from .StripeUsers import StripeUsers
|
||||
from .PaymentLogs import PaymentLogs
|
||||
from .PaymentSessions import PaymentSessions
|
||||
|
||||
__all__ = [
|
||||
"Users",
|
||||
@@ -39,5 +40,6 @@ __all__ = [
|
||||
"ResetPasswordTokens",
|
||||
"ClinicOffers",
|
||||
"StripeUsers",
|
||||
"PaymentLogs"
|
||||
"PaymentLogs",
|
||||
"PaymentSessions"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user