--- alias: user-guide-shift-definition-index description: "Defines shift arrangements within a calendar, managing shifts and non-working periods" --- # Shift Definition :lock: ShiftDefinition.**Show** ## Overview A **Shift Definition** defines a particular *Shift* arrangement. It must cover the whole day (24 hours) and it may contain multiple *Shifts* and multiple non-working periods within a *Shift*. A **Shift Definition** can be set as a default for one or more days of the week of a **Calendar**. Each *Calendar Day* can have its own *Shift Definition* and, for each *Calendar Day*, a **Team** is assigned to each *Shift* within the **Shift Definition**. ## Tying Everything Together ```mermaid graph LR N1[Calendar Day] --- Main[Shift Definition] === L1[Shift Definition Shift] --- L2[Shift Definition Shift Non Working Time] A1[Calendar] --- Main classDef mermaid_title color:#000, fill:#fafafa, stroke:#fafafa, stroke-width:0x, font-size:100%, font-weight:200; classDef mermaid_start color:#000, fill:#fafafa, stroke:#fafafa, color:#fafafa, stroke-width:0x, font-size:100%, visibility: hidden; classDef mermaid_businessdata color:#000, fill:#65CDE8, stroke:#65CDE8, stroke-width:0px, font-size:100%; classDef mermaid_nonbusinessdata color:#000, fill:#B7DEE8, stroke:#B7DEE8, stroke-width:0px, font-size:100%; classDef mermaid_entity color:#000, fill:#FB9F53, stroke:#FB9F53, stroke-width:0px, font-size:100%; classDef mermaid_entitylinked color:#000, fill:#FCD5B5, stroke:#FCD5B5, stroke-width:0px, font-size:100%; classDef mermaid_context color:#000, fill:#B9CDE5, stroke:#B9CDE5, stroke-width:0px, font-size:100%; classDef mermaid_optional color:#000, fill:#B7DEE8, stroke:#65CDE8, stroke-width:1px, font-size:100%, stroke-dasharray: 5 5; class Main mermaid_entity class A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14 mermaid_businessdata class L1,L2,L3,L4,L5,L6,L7 mermaid_entitylinked class C1,C2,C3,C4,C5,C6 mermaid_context class N1,N2,N3,N4,N5,N6 mermaid_nonbusinessdata click Main "../../business-data/shift-definition" click A1 "../../business-data/calendar" ``` ## Sequence Of Steps The necessary steps for correctly configuring and using a **Shift Definition** are the following: 1. Create a Calendar. 2. Create the Shift Definition. {{ generate_index() }}