refactor: elimina phone_number_id y display_phone del formulario de empresa

- El número WA Business es global (configuración general), no por empresa
- OutboundWorker usa fallback a WHATSAPP_DEFAULT_PHONE_NUMBER_ID si la empresa no tiene
- CompanyRepository::save() ya no requiere phone_number_id
- phone_number_id permite DEFAULT '' en schema

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-19 22:19:05 -05:00
co-authored by Claude Sonnet 4.6
parent 2632eff3fb
commit ea7560f9bf
4 changed files with 4 additions and 17 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ $db->exec("
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(150) NOT NULL,
display_name VARCHAR(150),
phone_number_id VARCHAR(50) NOT NULL,
phone_number_id VARCHAR(50) NOT NULL DEFAULT '',
display_phone VARCHAR(30),
api_base_url VARCHAR(500) NOT NULL,
api_key VARCHAR(255),