feat: invoice apis
refactor: minor api response
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from sqlalchemy import Column, Integer, String
|
||||
from database import Base
|
||||
from .CustomBase import CustomBase
|
||||
|
||||
class Subscriptions(Base, CustomBase):
|
||||
__tablename__ = "subscriptions"
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
session_id = Column(String(255), index=True)
|
||||
customer_id = Column(String,index=True)
|
||||
account_id = Column(String,index=True)
|
||||
subscription_id = Column(String,index=True)
|
||||
clinic_id = Column(Integer, index=True)
|
||||
status = Column(String)
|
||||
current_period_start = Column(String) # unix timestamp
|
||||
current_period_end = Column(String) # unix timestamp
|
||||
metadata_logs = Column(String)
|
||||
+3
-1
@@ -19,6 +19,7 @@ from .ClinicOffers import ClinicOffers
|
||||
from .StripeUsers import StripeUsers
|
||||
from .PaymentLogs import PaymentLogs
|
||||
from .PaymentSessions import PaymentSessions
|
||||
from .Subscriptions import Subscriptions
|
||||
|
||||
__all__ = [
|
||||
"Users",
|
||||
@@ -41,5 +42,6 @@ __all__ = [
|
||||
"ClinicOffers",
|
||||
"StripeUsers",
|
||||
"PaymentLogs",
|
||||
"PaymentSessions"
|
||||
"PaymentSessions",
|
||||
"Subscriptions"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user