FUZZYDATE
This table stores fuzzy dates for financial date fields.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
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) |
yes |
CONVERT(bigint, TS) |
Numeric representation of the timestamp. |
DATETYPE |
nvarchar(8) (Computed) |
yes |
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 Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_FUZZYDATE_DATEADDED |
DATEADDED |
|
|
yes |
IX_FUZZYDATE_DATECHANGED |
DATECHANGED |
|
|
|
PK_FUZZYDATE |
ID |
yes |
yes |
|
UIX_FUZZYDATE_NAME |
NAME |
yes |
|
|
Triggers
Referenced by