Add module depth, horizontal submenus, collapsible sidebar, LLM integration prompts, and test data migration

This commit is contained in:
Deploymentcenter Bot
2026-08-05 21:30:49 +02:00
parent 3a38fd4837
commit 8ddcbf179a
2 changed files with 1129 additions and 375 deletions
+932 -230
View File
File diff suppressed because it is too large Load Diff
+53 -1
View File
@@ -1,4 +1,4 @@
-- Deploymentcenter Unified Database Schema -- Deploymentcenter Unified Database Schema & Test Data
-- UTF-8 (utf8mb4) & InnoDB -- UTF-8 (utf8mb4) & InnoDB
SET FOREIGN_KEY_CHECKS = 0; SET FOREIGN_KEY_CHECKS = 0;
@@ -202,3 +202,55 @@ INSERT INTO watchdog_cron_jobs (name, interval_sec, enabled) VALUES
('self_ping', 60, 1), ('self_ping', 60, 1),
('eventlog_cleanup', 86400, 1) ('eventlog_cleanup', 86400, 1)
ON DUPLICATE KEY UPDATE interval_sec = VALUES(interval_sec); ON DUPLICATE KEY UPDATE interval_sec = VALUES(interval_sec);
-- Seed Initial Products (LicenseLabrador)
INSERT INTO license_products (id, slug, name, notes, default_cache_ttl_hours) VALUES
(1, 'myapp', 'My Application Deluxe', 'Hauptanwendung für Desktop und Server', 168),
(2, 'polytrader', 'PolyTrader Suite Pro', 'Trading- und Handelssystem Client', 72),
(3, 'predictalytics', 'Predictalytics Engine', 'Datenanalyse und Vorhersage Dienst', 168)
ON DUPLICATE KEY UPDATE name = VALUES(name);
-- Seed Initial Licenses
INSERT INTO license_licenses (id, product_id, license_key, customer_name, customer_email, status, max_activations, notes) VALUES
(1, 1, 'LLAB1-98A72-B3C4D-5E6F7-89012', 'Musterfirma GmbH', 'muster@example.com', 'active', 5, 'Firmenlizenz Premium'),
(2, 2, 'LLAB2-12345-67890-ABCDE-FGHIJ', 'Software Solutions AG', 'info@softsol.de', 'active', 2, 'Pro-Lizenz Einzelnutzer'),
(3, 3, 'LLAB3-44556-77889-99001-AABB2', 'Test User Corp', 'test@usercorp.com', 'revoked', 1, 'Testlizenz gekündigt')
ON DUPLICATE KEY UPDATE customer_name = VALUES(customer_name);
-- Seed Initial Activations
INSERT INTO license_activations (license_id, hardware_id, hostname, app_version, is_blocked) VALUES
(1, 'HWID-88A9-99B1-CC02', 'PROD-SERVER-01', 'v1.4.2', 0),
(1, 'HWID-3344-5566-7788', 'DESKTOP-WIN11-DEV', 'v1.4.2', 0),
(2, 'HWID-7766-5544-3322', 'TRADING-NODE-01', 'v2.0.1', 0)
ON DUPLICATE KEY UPDATE hostname = VALUES(hostname);
-- Seed Initial Audit Logs
INSERT INTO license_audit_log (actor, action, details) VALUES
('admin', 'license.create', '{"product": "myapp", "license_key": "LLAB1-98A72-B3C4D-5E6F7-89012"}'),
('api', 'api.validate.success', '{"product": "myapp", "hardware_id": "HWID-88A9-99B1-CC02"}'),
('admin', 'license.revoke', '{"license_key": "LLAB3-44556-77889-99001-AABB2", "reason": "Vertrag abgelaufen"}');
-- Seed Initial Watchdog Monitors
INSERT INTO watchdog_monitors (source, instance, type, state, expected_interval_sec, last_seen_utc, last_status, last_message, metrics_json, group_key, os) VALUES
('srv-db-01', 'default', 'host', 'up', 60, NOW(), 'ok', 'System OK - All services running', '{"cpu": 18, "ram": 42, "disk": 55}', 'Infrastructure', 'Ubuntu 24.04 LTS'),
('srv-app-01', 'default', 'host', 'up', 60, NOW(), 'ok', 'App Server Operational', '{"cpu": 34, "ram": 68, "disk": 40}', 'Infrastructure', 'Debian 12'),
('PolyTrader Worker', 'default', 'heartbeat', 'up', 60, NOW(), 'ok', 'Processing job queue #842', NULL, 'Applications', '.NET 8 Service'),
('License Server Sync', 'default', 'heartbeat', 'up', 120, NOW(), 'ok', 'Sync OK', NULL, 'Services', 'PHP 8.3 Cron'),
('Update Poller Service', 'default', 'heartbeat', 'warning', 60, NOW(), 'warning', 'High latency on remote node', NULL, 'Services', 'Python Service'),
('pve-node-01', 'default', 'hypervisor_node', 'up', 60, NOW(), 'ok', 'Hypervisor Node healthy', '{"cpu": 25, "ram": 52}', 'Proxmox Cluster', 'Proxmox VE 8.1'),
('vm-100-mail', 'default', 'guest', 'up', 60, NOW(), 'ok', 'Mail VM active', NULL, 'pve-node-01', 'Linux Mail Server'),
('vm-101-backup', 'default', 'guest', 'stopped', 300, NOW(), 'ok', 'Cold Backup VM stopped gracefully', NULL, 'pve-node-01', 'Cold Backup VM')
ON DUPLICATE KEY UPDATE last_message = VALUES(last_message);
-- Seed Initial Watchdog Events
INSERT INTO watchdog_event_log (source, instance, kind, severity, message) VALUES
('srv-db-01', 'default', 'started', 'info', 'Server gestartet'),
('Update Poller Service', 'default', 'warning_raised', 'warning', 'Latenz überschreitet Schwellwert (450ms)'),
('PolyTrader Worker', 'default', 'recovered', 'info', 'Dienst nach Neustart wieder online');
-- Seed Initial Update Releases
INSERT INTO updateservice_releases (product_slug, version, release_notes, download_url, sha256_hash, is_critical) VALUES
('myapp', '1.0.0', 'Initiales Release mit Grundfunktionen', 'https://dc.mhdf.de/downloads/myapp-1.0.0.zip', 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 0),
('myapp', '1.1.0', 'Fehlerbehebungen und Performance-Optimierung', 'https://dc.mhdf.de/downloads/myapp-1.1.0.zip', '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08', 0),
('polytrader', '2.0.1', 'Kritisches Sicherheits-Update für Handelsverbindungen', 'https://dc.mhdf.de/downloads/polytrader-2.0.1.zip', '5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8', 1)
ON DUPLICATE KEY UPDATE release_notes = VALUES(release_notes);