Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(100)   Default = '' The name of the fuzzy date.
 DATETYPECODE tinyint   Default = 0 Allows bitmasking to group date types.
 SEQUENCE int   Default = 0 Field sequence within group
 DATEADDED datetime   Default = getdate() Indicates the date this record was added.
 DATECHANGED datetime   Default = getdate() Indicates the date this record was last changed.
 TS timestamp   Timestamp.
 TSLONG bigint (Computed) CONVERT(bigint, TS) Numeric representation of the timestamp.
 DATETYPE nvarchar(8) (Computed) CASE [DATETYPECODE] WHEN 0 THEN N'None' WHEN 1 THEN N'Calendar' WHEN 2 THEN N'Fiscal' END Provides a translation for the 'DATETYPECODE' field.

Foreign Key Field Type Null Notes Description
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_FUZZYDATE_DATEADDED DATEADDED    
 IX_FUZZYDATE_DATECHANGED DATECHANGED      
 PK_FUZZYDATE ID  
 UIX_FUZZYDATE_NAME NAME    

Trigger Name Description
 TR_FUZZYDATE_AUDIT_UPDATE
 TR_FUZZYDATE_AUDIT_DELETE

Referenced by Field
 BANKACCOUNTADJUSTMENTCATEGORY ADJUSTMENTFUZZYDATEID

Entity-Relationship diagram of this table