Wachato CRM: versión marca blanca configurable por entorno

CRM de WhatsApp, Instagram, Messenger y TikTok de Wachato, basado en Vocero
CRM (MIT), listo para desplegar un negocio por instancia:

- Marca blanca: nombre, color, moneda y giro del negocio desde el .env
  (BRAND_NAME, BRAND_ACCENT, BRAND_CURRENCY, BUSINESS_DESCRIPTION); se
  aplican una vez y luego manda Ajustes → Marca.
- Superadmin sembrado al arrancar (SUPERADMIN_*), idempotente.
- Servicios y precios, campos personalizados, exportación a Excel/PDF,
  respaldos, agenda, atribución de anuncios y transcripción de notas de voz.
- Diseño con contraste AAA, tema claro y oscuro.
- Despliegue: docker compose (Caddy opcional), plantillas para paneles con
  reverse proxy (deploy/aapanel), imagen publicada en GHCR por la CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andres Corazon Santana AquinoandClaude Opus 5.5 committed 2026-12-04 15:54:58 -04:00
commit 6edc6020d5
1316 files changed
+308543

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
CREATE TABLE "tiktok_credentials" (
"id" text PRIMARY KEY NOT NULL,
"organization_id" text NOT NULL,
"source" text DEFAULT 'zernio' NOT NULL,
"account_ref" text NOT NULL,
"username" text,
"token_cipher" text NOT NULL,
"token_iv" text NOT NULL,
"token_tag" text NOT NULL,
"webhook_secret" text,
"status" text DEFAULT 'connected' NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL,
"updated_at" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "tiktok_credentials" ADD CONSTRAINT "tiktok_credentials_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE UNIQUE INDEX "tiktok_credentials_org_uq" ON "tiktok_credentials" USING btree ("organization_id");--> statement-breakpoint
CREATE UNIQUE INDEX "tiktok_credentials_account_ref_uq" ON "tiktok_credentials" USING btree ("account_ref");