Tables [dbo].[Department_DE]
List of Departments. Used in scheduling
KeyNameData TypeMax Length (Bytes)NullabilityIdentityDescription
Cluster Primary Key PK_Department_DE_ID: IDIndexes XAK2DEPARTMENT, XAK3DEPARTMENT, XAK5DEPARTMENT, XAK4DEPARTMENT(4)Foreign Keys FK_Department_DE_ID_Department_DE_ID: [dbo].[Department_DE].IDID[dbo].[dict_id]5NOT NULL1 - 1Key to the Department_DE table.
EnterpriseEntryID[dbo].[uniqueid]9NOT NULLMaster (enterprise) dictionary surrogate key.  Points to Dictionary_Entry.EnterpriseEntryID
Indexes XAK2DEPARTMENT, XAK3DEPARTMENT, XAK5DEPARTMENT, XAK4DEPARTMENT(4)DefinitionSetID[dbo].[dict_id]5NOT NULLPoints to Dict_Definition_Set.DefinitionSetID but is typically zero.
Indexes XAK2DEPARTMENTEntry[dbo].[dict_id]5NOT NULLCalculated during insert as rowcount + 1 from Dict_Definition_Set for this dictionary and set
Indexes XAK3DEPARTMENT, TWstat_Department_DE_EntryCode(2)EntryCode[dbo].[code]10NOT NULLUnique alphanumeric code. Brief but cryptic.
Indexes XAK4DEPARTMENT, TWstat_Department_DE_EntryName(2)EntryName[dbo].[name]255NOT NULLUnique alphanumeric "friendly" display name
Indexes XAK5DEPARTMENT, TWstat_Department_DE_EntryMnemonic(2)EntryMnemonic[dbo].[code]10NOT NULLTypically the same as the Code value, but can be blank.  If present, it must be unique
Check Constraints CK_Department_DE_IsInactiveFLAG_Yes_Or_No : ([IsInactiveFLAG]='N' OR [IsInactiveFLAG]='Y')IsInactiveFLAG[dbo].[BOOL]1NOT NULLY=row is not active; N=row is active.  (Rows are inactivated rather than deleted for history)
Check Constraints CK_Department_DE_IsEnforcedFLAG_Yes_Or_No : ([IsEnforcedFLAG]='N' OR [IsEnforcedFLAG]='Y')IsEnforcedFLAG[dbo].[BOOL]1NOT NULLY=row is readonly;  N=row is modifiable
Indexes XAK2DEPARTMENT, XAK3DEPARTMENT, XAK5DEPARTMENT, XAK4DEPARTMENT(4)Check Constraints CK_Department_DE_IsCurrentFLAG_Yes_Or_No : ([IsCurrentFLAG]='N' OR [IsCurrentFLAG]='Y')IsCurrentFLAG[dbo].[BOOL]1NOT NULLUsually 'Y' but occasionally used to subordinate rows.  Not exposed to the end user.
EffectiveDTdatetime8NULL allowedTime of last modification  (not "when this row goes into effect")