feat: clinic bank details api
fix: relation betn stripe and user table
This commit is contained in:
@@ -139,3 +139,8 @@ class ClinicOffersBase(BaseModel):
|
||||
setup_fees_waived: bool
|
||||
special_offer_for_month: str
|
||||
|
||||
|
||||
class StripeUserBase(BaseModel):
|
||||
account_id: str
|
||||
customer_id: str
|
||||
user_id: int
|
||||
+24
-15
@@ -23,7 +23,7 @@ class ClinicDoctorResponse(ClinicDoctorBase):
|
||||
update_time: datetime
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class SignupPricingMasterResponse(SignupPricingMasterBase):
|
||||
@@ -32,7 +32,7 @@ class SignupPricingMasterResponse(SignupPricingMasterBase):
|
||||
update_time: datetime
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class UserResponse(UserBase):
|
||||
@@ -53,7 +53,7 @@ class Doctor(DoctorBase):
|
||||
update_time: datetime
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class Patient(PatientBase):
|
||||
@@ -62,7 +62,7 @@ class Patient(PatientBase):
|
||||
update_time: datetime
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class AppointmentSchema(AppointmentBase):
|
||||
@@ -71,7 +71,7 @@ class AppointmentSchema(AppointmentBase):
|
||||
update_time: datetime
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class Calendar(CalendarBase):
|
||||
@@ -80,7 +80,7 @@ class Calendar(CalendarBase):
|
||||
update_time: datetime
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
# custom schema for response
|
||||
@@ -88,7 +88,7 @@ class CalendarTimeSchema(BaseModel):
|
||||
time: str
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class ClinicSchema(BaseModel):
|
||||
@@ -99,7 +99,7 @@ class ClinicSchema(BaseModel):
|
||||
email: str
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
# Detailed response schemas with nested relationships
|
||||
@@ -133,7 +133,7 @@ class AppointmentDetailed(AppointmentSchema):
|
||||
address: str
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
class Patient(BaseModel):
|
||||
id: int
|
||||
@@ -145,7 +145,7 @@ class AppointmentDetailed(AppointmentSchema):
|
||||
dob: str
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
doctor: Doctor
|
||||
patient: Patient
|
||||
@@ -157,7 +157,7 @@ class CallTranscriptsResponse(CallTranscriptsBase):
|
||||
update_time: datetime
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class NotificationResponse(NotificationBase):
|
||||
@@ -166,7 +166,7 @@ class NotificationResponse(NotificationBase):
|
||||
update_time: datetime
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class MasterAppointmentTypeResponse(MasterAppointmentTypeBase):
|
||||
@@ -175,7 +175,7 @@ class MasterAppointmentTypeResponse(MasterAppointmentTypeBase):
|
||||
update_time: datetime
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class ClinicDoctorResponse(ClinicDoctorBase):
|
||||
@@ -185,7 +185,6 @@ class ClinicDoctorResponse(ClinicDoctorBase):
|
||||
appointmentTypes: Optional[List[MasterAppointmentTypeResponse]] = []
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
allow_population_by_field_name = True
|
||||
|
||||
@@ -196,4 +195,14 @@ class ClinicOfferResponse(ClinicOffersBase):
|
||||
update_time: datetime
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
|
||||
|
||||
|
||||
class StripeUserReponse(StripeUserBase):
|
||||
id: int
|
||||
create_time: datetime
|
||||
update_time: datetime
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
Reference in New Issue
Block a user