SMARTFIELD
Contains data describing smart field instances.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
NAME |
nvarchar(100) |
|
Default = '' |
|
SMARTFIELDDATAFORMITEM |
xml |
yes |
|
Stores the saved parameters for the smart field stored procedure. |
VALUECOLUMNNAME |
nvarchar(128) |
|
Default = '' |
|
USEVALUEGROUP |
bit |
|
Default = 0 |
|
LASTRUNON |
datetime |
yes |
|
Stores the date that the smart field was last updated. This value is used to filter records based on the record's DATECHANGED value. |
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. |
SYSTEMFIELD |
bit |
|
Default = 0 |
A flag to indicate if this is a field that is used by other parts of the system and cannot be modified or deleted. |
DATEVALUEGROUPUNITCODE |
tinyint |
|
Default = 0 |
Stores the scale of value groups for date smart fields. |
DATEVALUEGROUPUNIT |
nvarchar(8) (Computed) |
yes |
CASE [DATEVALUEGROUPUNITCODE] WHEN 0 THEN N'Years' WHEN 1 THEN N'Quarters' WHEN 2 THEN N'Months' WHEN 3 THEN N'Weeks' WHEN 4 THEN N'Days' END |
Provides a translation for the 'DATEVALUEGROUPUNITCODE' field. |
SITEFILTERENABLEDFORINSTANCE |
bit |
|
Default = 0 |
Indicates whether this smart field should have site filtering applied for it. |
DESCRIPTION |
nvarchar(4000) |
|
Default = '' |
|
SHOWINFUNDRAISERONTHEGO |
bit |
|
Default = 0 |
|
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
TABLECATALOGID |
uniqueidentifier |
yes |
TABLECATALOG.ID
|
FK to TABLECATALOG |
SMARTFIELDCATALOGID |
uniqueidentifier |
|
SMARTFIELDCATALOG.ID
|
Join field for the smart field definition. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
SOURCEQUERYVIEWCATALOGID |
uniqueidentifier |
yes |
QUERYVIEWCATALOG.ID
|
Join field for the queryview that is the source value queryview for this smart field. |
CURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The currency associated with this smart field. |
SMARTFIELDCATEGORYCODEID |
uniqueidentifier |
yes |
SMARTFIELDCATEGORYCODE.ID
|
|
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_SMARTFIELD_CURRENCYID |
CURRENCYID |
|
|
|
IX_SMARTFIELD_DATEADDED |
DATEADDED |
|
|
yes |
IX_SMARTFIELD_DATECHANGED |
DATECHANGED |
|
|
|
IX_SMARTFIELD_SMARTFIELDCATEGORYCODEID |
SMARTFIELDCATEGORYCODEID |
|
|
|
IX_SMARTFIELD_SOURCEQUERYVIEWCATALOGID |
SOURCEQUERYVIEWCATALOGID |
|
|
|
IX_SMARTFIELD_TABLECATALOGID |
TABLECATALOGID |
|
|
|
PK_SMARTFIELD |
ID |
yes |
yes |
|
UIX_SMARTFIELD_SMARTFIELDCATALOGID_NAME |
SMARTFIELDCATALOGID, NAME |
yes |
|
|
UIX_SMARTFIELD_TABLECATALOGID |
TABLECATALOGID |
yes |
|
|
Triggers
Referenced by