DESIGNATION
Stores a flat representation of the giving hierarchy.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
PROJECTCODE |
nvarchar(100) |
|
Default = '' |
GL project code |
ISACTIVE |
bit |
|
Default = 1 |
Indicates whether or not the designation is active. |
USERID |
nvarchar(512) |
|
Default = '' |
The lookup ID used for searching for this designation. |
VANITYNAME |
nvarchar(512) |
|
Default = '' |
User entered field for a friendly name. |
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. |
ACCOUNTNUMBER |
nvarchar(100) |
|
Default = '' |
GL account number |
STARTDATE |
datetime |
yes |
|
Start date associated with this designation |
ENDDATE |
datetime |
yes |
|
End date associated with this designation |
ISREVENUEDESIGNATION |
bit |
|
Default = 1 |
Indicates if this designation is accepting revenue. |
SYSTEMGENERATED |
bit |
|
Default = 0 |
|
NAME |
nvarchar(512) |
|
Default = '' |
|
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
DESIGNATIONLEVEL1ID |
uniqueidentifier |
|
DESIGNATIONLEVEL.ID
|
The first level of this tree node. |
DESIGNATIONLEVEL2ID |
uniqueidentifier |
yes |
DESIGNATIONLEVEL.ID
|
The second level of this tree node. |
DESIGNATIONLEVEL3ID |
uniqueidentifier |
yes |
DESIGNATIONLEVEL.ID
|
The third level of this tree node. |
DESIGNATIONLEVEL4ID |
uniqueidentifier |
yes |
DESIGNATIONLEVEL.ID
|
The fourth level of this tree node. |
DESIGNATIONLEVEL5ID |
uniqueidentifier |
yes |
DESIGNATIONLEVEL.ID
|
The fifth level of this tree node. |
DESIGNATIONREPORT1CODEID |
uniqueidentifier |
yes |
DESIGNATIONREPORT1CODE.ID
|
Code table for first arbitrary designation report code. |
DESIGNATIONREPORT2CODEID |
uniqueidentifier |
yes |
DESIGNATIONREPORT2CODE.ID
|
Code table for second arbitrary designation report code. |
GLDEPARTMENTID |
uniqueidentifier |
yes |
GLDEPARTMENT.ID
|
The GL Department for this designation. |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
VSECATEGORYID |
uniqueidentifier |
yes |
VSECATEGORY.ID
|
The VSE category associated with this designation |
DESIGNATIONUSECODEID |
uniqueidentifier |
yes |
DESIGNATIONUSECODE.ID
|
Code table for the designation use code. |
VSESUBCATEGORYID |
uniqueidentifier |
yes |
VSESUBCATEGORY.ID
|
The VSE subcategory associated with this designation. |
DESIGNATIONLEVELTYPEHIERARCHYITEMID |
uniqueidentifier |
yes |
DESIGNATIONLEVELTYPEHIERARCHYITEM.ID
|
The designation level type hierarchy item this designation is based on. |
BASECURRENCYID |
uniqueidentifier |
yes |
CURRENCY.ID
|
The base currency associated with this designation. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_DESIGNATION_BASECURRENCYID |
BASECURRENCYID |
|
|
|
IX_DESIGNATION_DATEADDED |
DATEADDED |
|
|
yes |
IX_DESIGNATION_DATECHANGED |
DATECHANGED |
|
|
|
IX_DESIGNATION_DESIGNATIONLEVEL2ID |
DESIGNATIONLEVEL2ID |
|
|
|
IX_DESIGNATION_DESIGNATIONLEVEL3ID |
DESIGNATIONLEVEL3ID |
|
|
|
IX_DESIGNATION_DESIGNATIONLEVEL4ID |
DESIGNATIONLEVEL4ID |
|
|
|
IX_DESIGNATION_DESIGNATIONLEVEL5ID |
DESIGNATIONLEVEL5ID |
|
|
|
IX_DESIGNATION_DESIGNATIONREPORT1CODEID |
DESIGNATIONREPORT1CODEID |
|
|
|
IX_DESIGNATION_DESIGNATIONREPORT2CODEID |
DESIGNATIONREPORT2CODEID |
|
|
|
IX_DESIGNATION_GLDEPARTMENTID |
GLDEPARTMENTID |
|
|
|
IX_DESIGNATION_ID |
ID |
|
|
|
PK_DESIGNATION |
ID |
yes |
yes |
|
UC_DESIGNATION_USERID |
USERID |
yes |
|
|
UIX_DESIGNATION_DESIGNATIONLEVEL1ID_DESIGNATIONLEVEL2ID_DESIGNATIONLEVEL3ID_DESIGNATIONLEVEL4ID_DESIGNATIONLEVEL5ID |
DESIGNATIONLEVEL1ID, DESIGNATIONLEVEL2ID, DESIGNATIONLEVEL3ID, DESIGNATIONLEVEL4ID, DESIGNATIONLEVEL5ID |
yes |
|
|
Triggers
Referenced by