Terminal-Farben nach Verbindung: - Terminals zeigen Farbe der angeschlossenen Leitung - Grau = keine Verbindung, farbig = Leitung angeschlossen - Neue Hilfsfunktion getTerminalConnectionColor() Leitungen hinter Blöcken: - Layer-Reihenfolge geändert: connections vor blocks - Professionelleres Erscheinungsbild Zeichenmodus-Verbesserungen: - Rechtsklick/Escape bricht nur Linie ab, nicht Modus - Crosshair-Cursor überall im SVG während Zeichenmodus - 30px Hit-Area für bessere Klickbarkeit Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
1.2 KiB
SQL
28 lines
1.2 KiB
SQL
-- ============================================================================
|
|
-- Copyright (C) 2026 Alles Watt lauft
|
|
--
|
|
-- Equipment Panel table (Schaltschrankfelder)
|
|
-- Represents physical sections/fields in a distribution board
|
|
-- ============================================================================
|
|
|
|
CREATE TABLE llx_kundenkarte_equipment_panel (
|
|
rowid INTEGER AUTO_INCREMENT PRIMARY KEY,
|
|
entity INTEGER DEFAULT 1 NOT NULL,
|
|
|
|
fk_anlage INTEGER NOT NULL, -- Zählerschrank/UV that contains this panel
|
|
label VARCHAR(128), -- "Feld 1", "Linkes Feld", etc.
|
|
position INTEGER DEFAULT 0, -- Order (left to right)
|
|
|
|
note_private TEXT,
|
|
status SMALLINT DEFAULT 1, -- 1=active, 0=inactive
|
|
|
|
date_creation DATETIME,
|
|
tms TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
fk_user_creat INTEGER,
|
|
fk_user_modif INTEGER,
|
|
import_key VARCHAR(14),
|
|
|
|
INDEX idx_panel_anlage (fk_anlage),
|
|
CONSTRAINT fk_panel_anlage FOREIGN KEY (fk_anlage)
|
|
REFERENCES llx_kundenkarte_anlage(rowid) ON DELETE CASCADE
|
|
) ENGINE=InnoDB;
|