Tables [dbo].[Note_Type_DE]
v2 Note type  (e.g. 'Message' or 'Unformatted')
KeyNameData TypeMax Length (Bytes)NullabilityIdentityDefaultDescription
Primary Key PK_Note_Type_DE_ID: IDCluster Key XAK1NoteTemplate_DE: EntryName\IsCurrentFLAG\IDIndexes XAK2NoteTemplate_DE, XAK3NoteTemplate_DE, TWstat_Note_Type_DE_DefinitionSetID_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_EnterpriseEntryID_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_Entry_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_IsCurrentFLAG_EntryName_ID, TWstat_Note_Type_DE_IsInactiveFLAG_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_SecurityCodeDE_EntryName_IsCurrentFLAG_ID(8)ID[dbo].[dict_id]5NOT NULL1 - 1Key to the Note_Type_DE table
Indexes TWstat_Note_Type_DE_EnterpriseEntryID_EntryName_IsCurrentFLAG_IDEnterpriseEntryID[dbo].[uniqueid]9NOT NULLMaster (enterprise) dictionary surrogate key.  Points to Dictionary_Entry.EnterpriseEntryID
Indexes TWstat_Note_Type_DE_DefinitionSetID_EntryName_IsCurrentFLAG_IDDefinitionSetID[dbo].[dict_id]5NOT NULLPoints to Dict_Definition_Set.DefinitionSetID but is typically zero.
Indexes TWstat_Note_Type_DE_Entry_EntryName_IsCurrentFLAG_IDEntry[dbo].[dict_id]5NOT NULLCalculated during insert as rowcount + 1 from Dict_Definition_Set for this dictionary and set
Indexes XAK2NoteTemplate_DEEntryCode[dbo].[code]10NOT NULLUnique alphanumeric code.  Brief but cryptic.
Cluster Key XAK1NoteTemplate_DE: EntryName\IsCurrentFLAG\IDIndexes TWstat_Note_Type_DE_DefinitionSetID_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_EnterpriseEntryID_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_Entry_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_IsCurrentFLAG_EntryName_ID, TWstat_Note_Type_DE_IsInactiveFLAG_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_SecurityCodeDE_EntryName_IsCurrentFLAG_ID(6)EntryName[dbo].[name]255NOT NULLUnique alphanumeric "friendly" display name
Indexes XAK3NoteTemplate_DEEntryMnemonic[dbo].[code]10NOT NULLTypically the same as the Code value, but can be blank.  If present, it must be unique.
Indexes TWstat_Note_Type_DE_IsInactiveFLAG_EntryName_IsCurrentFLAG_IDCheck Constraints CK_Note_Type_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_Note_Type_DE_IsEnforcedFLAG_Yes_Or_No : ([IsEnforcedFLAG]='N' OR [IsEnforcedFLAG]='Y')IsEnforcedFLAG[dbo].[BOOL]1NOT NULLY=row is readonly;  N=row is modifiable
Cluster Key XAK1NoteTemplate_DE: EntryName\IsCurrentFLAG\IDIndexes XAK2NoteTemplate_DE, XAK3NoteTemplate_DE, TWstat_Note_Type_DE_DefinitionSetID_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_EnterpriseEntryID_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_Entry_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_IsCurrentFLAG_EntryName_ID, TWstat_Note_Type_DE_IsInactiveFLAG_EntryName_IsCurrentFLAG_ID, TWstat_Note_Type_DE_SecurityCodeDE_EntryName_IsCurrentFLAG_ID(8)Check Constraints CK_Note_Type_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")
Indexes TWstat_Note_Type_DE_SecurityCodeDE_EntryName_IsCurrentFLAG_IDForeign Keys FK_Note_Type_DE_SecurityCodeDE_Security_Code_DE_ID: [dbo].[Security_Code_DE].SecurityCodeDESecurityCodeDE[dbo].[dict_id]5NOT NULLLink to Security_Code_DE.ID to restrict access to this note type
Check Constraints CK_Note_Type_DE_CMSNoteSelectorFlag_Yes_Or_No : ([CMSNoteSelectorFlag]='N' OR [CMSNoteSelectorFlag]='Y')CMSNoteSelectorFlag[dbo].[BOOL]1NOT NULL('Y')Y=appear on the note selector
Check Constraints CK_Note_Type_DE_UnsignedNotesRPTFlag_Yes_Or_No : ([UnsignedNotesRPTFlag]='N' OR [UnsignedNotesRPTFlag]='Y')UnsignedNotesRPTFlag[dbo].[BOOL]1NOT NULL('Y')Y=appear on the unsigned notes report;  N=omit