PWA Mobile App für Schaltschrank-Dokumentation vor Ort: - Token-basierte Authentifizierung (15 Tage gültig) - Kundensuche mit Offline-Cache - Anlagen-Auswahl und Offline-Laden - Felder/Hutschienen/Automaten erfassen - Automatische Synchronisierung wenn wieder online - Installierbar auf dem Smartphone Home Screen - Touch-optimiertes Dark Mode Design - Quick-Select für Automaten-Werte (B16, C32, etc.) Schaltplan-Editor Verbesserungen: - Block Hover-Tooltip mit show_in_hover Feldern - Produktinfo mit Icon im Tooltip - Position und Breite in TE Neue Dateien: - pwa.php, pwa_auth.php - PWA Einstieg & Auth - ajax/pwa_api.php - PWA AJAX API - js/pwa.js, css/pwa.css - PWA App & Styles - sw.js, manifest.json - Service Worker & Manifest - img/pwa-icon-192.png, img/pwa-icon-512.png Version: 5.2.0 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
1.2 KiB
SQL
Executable file
36 lines
1.2 KiB
SQL
Executable file
-- ============================================================================
|
|
-- Copyright (C) 2026 Alles Watt lauft
|
|
--
|
|
-- Table for installation element file attachments
|
|
-- Files stored in: /documents/kundenkarte/anlagen/{socid}/{element_id}/
|
|
-- Separate from ECM system
|
|
-- ============================================================================
|
|
|
|
CREATE TABLE llx_kundenkarte_anlage_files
|
|
(
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
entity integer DEFAULT 1 NOT NULL,
|
|
|
|
fk_anlage integer NOT NULL,
|
|
|
|
filename varchar(255) NOT NULL,
|
|
filepath varchar(512) NOT NULL,
|
|
filesize bigint DEFAULT 0,
|
|
mimetype varchar(128),
|
|
|
|
file_type varchar(32) DEFAULT 'document',
|
|
|
|
label varchar(255),
|
|
description text,
|
|
|
|
is_cover tinyint DEFAULT 0 NOT NULL,
|
|
is_pinned tinyint DEFAULT 0 NOT NULL,
|
|
position integer DEFAULT 0,
|
|
|
|
share varchar(128),
|
|
|
|
date_creation datetime,
|
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
fk_user_creat integer,
|
|
fk_user_modif integer
|
|
) ENGINE=innodb;
|