kundenkarte/sql/llx_kundenkarte_equipment_carrier.sql
data 06f8bc8fde Version 3.5.0 - Drag & Drop Sortierung, Duplicate-Key-Fix
- Drag & Drop Sortierung im Anlagenbaum (Geschwister-Ebene)
- UNIQUE KEY uk_kundenkarte_societe_system um fk_contact erweitert
- Automatische DB-Migration beim Modul-Aktivieren
- Visueller Abstand zwischen Root-Elementen

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 21:05:13 +01:00

26 lines
1.1 KiB
SQL
Executable file

-- ============================================================================
-- Copyright (C) 2026 Alles Watt lauft
--
-- Table for equipment carriers (Hutschienen/Traeger)
-- A carrier belongs to a technical place (Anlage) and has a capacity in TE
-- ============================================================================
CREATE TABLE llx_kundenkarte_equipment_carrier
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
entity integer DEFAULT 1 NOT NULL,
fk_anlage integer NOT NULL COMMENT 'Technischer Platz (z.B. Unterverteiler, Zaehlerschrank)',
label varchar(255) NOT NULL COMMENT 'Bezeichnung (z.B. Hutschiene 1, Obere Reihe)',
total_te integer DEFAULT 12 NOT NULL COMMENT 'Gesamtkapazitaet in Teilungseinheiten',
position integer DEFAULT 0 COMMENT 'Reihenfolge der Traeger',
note_private text,
status tinyint DEFAULT 1 NOT NULL,
date_creation datetime,
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
fk_user_creat integer,
fk_user_modif integer
) ENGINE=innodb;