mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-12 09:47:54 +02:00
Add configuration interface for enterprise task webhook
Implement a new UI component and backend routes for configuring and testing enterprise task webhooks, including database schema and migration scripts. Replit-Commit-Author: Agent Replit-Commit-Session-Id: cfbfe47c-0c9a-4ebf-8a41-2937407eccff Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cfbfe47c-0c9a-4ebf-8a41-2937407eccff/vzUkIk6
This commit is contained in:
1 parent
6ce9ec90a4
commit
f938fdb95d
9 files changed
+582
-7
No files matched your search
@@ -380,10 +380,31 @@ CREATE INDEX "idx_sav_ticket_history_ticket_id" ON "sav_ticket_history" USING bt
|
||||
CREATE INDEX "idx_weather_data_date_year" ON "weather_data" USING btree ("date" text_ops, "is_current_year" bool_ops);
|
||||
CREATE INDEX "idx_invoice_verification_expires" ON "invoice_verification_cache" USING btree ("expires_at" timestamp_ops);
|
||||
|
||||
-- Table pour configuration webhook BAP
|
||||
CREATE TABLE IF NOT EXISTS "webhook_bap_config" (
|
||||
"id" serial PRIMARY KEY NOT NULL,
|
||||
"name" varchar(100) DEFAULT 'Configuration BAP' NOT NULL,
|
||||
"webhook_url" text NOT NULL,
|
||||
"description" text,
|
||||
"is_active" boolean DEFAULT true NOT NULL,
|
||||
"created_at" timestamp DEFAULT now(),
|
||||
"updated_at" timestamp DEFAULT now()
|
||||
);
|
||||
|
||||
-- Configuration par défaut webhook BAP
|
||||
INSERT INTO "webhook_bap_config" ("name", "webhook_url", "description", "is_active")
|
||||
VALUES (
|
||||
'Configuration BAP',
|
||||
'https://workflow.ffnancy.fr/webhook/a3d03176-b72f-412d-8fb9-f920b9fbab4d',
|
||||
'Configuration par défaut pour l''envoi des fichiers BAP vers n8n',
|
||||
true
|
||||
) ON CONFLICT DO NOTHING;
|
||||
|
||||
-- Commentaires sur les tables
|
||||
COMMENT ON TABLE "announcements" IS 'Admin-managed announcements/information system';
|
||||
COMMENT ON COLUMN "announcements"."priority" IS 'Priority level: normal, important, urgent';
|
||||
COMMENT ON COLUMN "announcements"."group_id" IS 'NULL for global announcements, specific group_id for store-specific announcements';
|
||||
COMMENT ON TABLE "sav_tickets" IS 'Service après-vente tickets management';
|
||||
COMMENT ON TABLE "weather_data" IS 'Cache for weather API data';
|
||||
COMMENT ON TABLE "invoice_verification_cache" IS 'Cache for NocoDB invoice verification results';
|
||||
COMMENT ON TABLE "invoice_verification_cache" IS 'Cache for NocoDB invoice verification results';
|
||||
COMMENT ON TABLE "webhook_bap_config" IS 'Configuration pour webhook BAP n8n';
|
||||
Reference in new issue
Block a user