Improve backend
This commit is contained in:
@@ -182,12 +182,10 @@ class TenantSettings(Base):
|
||||
|
||||
# Notification Settings (Notification Service)
|
||||
notification_settings = Column(JSON, nullable=False, default=lambda: {
|
||||
# WhatsApp Configuration
|
||||
# WhatsApp Configuration (Shared Account Model)
|
||||
"whatsapp_enabled": False,
|
||||
"whatsapp_phone_number_id": "", # Meta WhatsApp Phone Number ID
|
||||
"whatsapp_access_token": "", # Meta access token (should be encrypted)
|
||||
"whatsapp_business_account_id": "", # Meta Business Account ID
|
||||
"whatsapp_api_version": "v18.0",
|
||||
"whatsapp_phone_number_id": "", # Meta WhatsApp Phone Number ID (from shared master account)
|
||||
"whatsapp_display_phone_number": "", # Display format for UI (e.g., "+34 612 345 678")
|
||||
"whatsapp_default_language": "es",
|
||||
|
||||
# Email Configuration
|
||||
@@ -354,9 +352,7 @@ class TenantSettings(Base):
|
||||
"notification_settings": {
|
||||
"whatsapp_enabled": False,
|
||||
"whatsapp_phone_number_id": "",
|
||||
"whatsapp_access_token": "",
|
||||
"whatsapp_business_account_id": "",
|
||||
"whatsapp_api_version": "v18.0",
|
||||
"whatsapp_display_phone_number": "",
|
||||
"whatsapp_default_language": "es",
|
||||
"email_enabled": True,
|
||||
"email_from_address": "",
|
||||
|
||||
Reference in New Issue
Block a user