15 lines
731 B
SQL
15 lines
731 B
SQL
-- Stabsstellen-Flag auf positions.
|
|
-- ====================================================================
|
|
-- Stabsstellen (DSB, SiBe, ISB, ImSchBe, Brandschutzbeauftragter,
|
|
-- Techn. Führungskräfte, Controlling, Ausbilder, …) gehören organisatorisch
|
|
-- nicht in die Linien-Hierarchie, sondern hängen seitlich am
|
|
-- Verantwortungsträger (meist GF). Im Datenmodell behalten sie ihren
|
|
-- parent_id (für die Anbindung), bekommen aber eine andere Edge-Visual
|
|
-- in der Visualisierung.
|
|
|
|
alter table public.positions
|
|
add column if not exists is_staff_position boolean not null default false;
|
|
|
|
create index if not exists positions_is_staff_position_idx
|
|
on public.positions (is_staff_position) where is_staff_position = true;
|