mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 11:22:21 -06:00
chore: Add businessId to Instance model
Updated the Instance model to include a new optional string property called businessId. This change affects the following files: - prisma/postgresql-schema.prisma - src/api/controllers/instance.controller.ts - src/api/dto/instance.dto.ts - src/api/services/monitor.service.ts - src/validate/instance.schema.ts A new untracked migration folder has been created to manage database schema updates: - prisma/migrations/20240712144948_add_business_id_column_to_instances/ This change allows for storing a business identifier alongside the instance, enhancing the ability to categorize and manage instances more effectively.
This commit is contained in:
@@ -30,6 +30,7 @@ export const instanceSchema: JSONSchema7 = {
|
||||
instanceName: { type: 'string' },
|
||||
token: { type: 'string' },
|
||||
number: { type: 'string', pattern: '^\\d+[\\.@\\w-]+' },
|
||||
businessId: { type: 'string' },
|
||||
qrcode: { type: 'boolean' },
|
||||
Integration: {
|
||||
type: 'string',
|
||||
|
||||
Reference in New Issue
Block a user