evolution-api/prisma/migrations
Davidson Gomes 26bddf3c53 Add support for managing WhatsApp templates via official API
This commit introduces changes to support managing WhatsApp templates using the official WhatsApp Business API. The following modifications have been made:

- Implemented a new Template model in the Prisma schema, including fields for template ID, name, language, and associated Instance (business ID, instance ID, and created/updated timestamps).
- Modified the Instance model in the Prisma schema to include a Template relationship.
- Updated InstanceController to include a new `businessId` property in the InstanceDto.
- Added a new TemplateRouter, TemplateController, and TemplateService to handle template-related requests and services.
- Updated the WebhookService to utilize the new TemplateService.
- Added new TypebotController, WebhookController, and WAMonitoringService methods to handle template-related events.
- Updated the validate schema to include a new template schema.

The main goal of this commit is to enable managing WhatsApp templates, including creating, updating, and deleting templates, as well as associating them with specific instances.
2024-07-12 12:32:44 -03:00
..
20240609181238_init docker 2024-06-09 21:54:10 -03:00
20240610144159_create_column_profile_name_instance fix: instances 2024-06-10 11:52:19 -03:00
20240611125754_create_columns_whitelabel_chatwoot feat: Organization configuration and logo in chatwoot bot contact 2024-06-11 10:09:04 -03:00
20240611202817_create_columns_debounce_time_typebot feat: Added debounce time for typebot messages 2024-06-11 17:56:20 -03:00
20240712144948_add_business_id_column_to_instances chore: Add businessId to Instance model 2024-07-12 11:52:29 -03:00
20240712150256_create_templates_table Add support for managing WhatsApp templates via official API 2024-07-12 12:32:44 -03:00
migration_lock.toml docker 2024-06-09 21:54:10 -03:00