CODETABLECATALOG
The CODETABLECATALOG table is used to catalogue all code tables in the system
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
DBTABLENAME |
nvarchar(100) |
|
Default = '' |
Stores the name of the database table containing the table entries for this code table |
CODETABLENAME |
nvarchar(100) |
|
Default = '' |
Stores the friendly name for this code table |
CODETABLESPECXML |
xml |
|
|
Contains the xml definition from which the code table was built. |
ISBUILTIN |
bit |
|
Default = 0 |
Indicates whether or not the code table was created by Blackbaud |
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 |
ISSECURABLE |
bit |
|
Default = 0 |
|
SITEFILTERINGENABLED |
bit |
|
Default = 0 |
|
SPECUINAME |
nvarchar(100) |
|
Default = '' |
Presentation name of the code table used to override the code table name for display in the application. |
UINAME |
nvarchar(100) (Computed) |
|
case when len(SPECUINAME) = 0 then CODETABLENAME else SPECUINAME end |
Name of the code table for display in the application. |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
CATEGORYID |
uniqueidentifier |
|
CODETABLECATEGORY.ID
|
FK to CODETABLECATEGORY |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_CODETABLECATALOG_DATEADDED |
DATEADDED |
|
|
yes |
PK_CODETABLECATALOG |
ID |
yes |
yes |
|
UC_CODETABLECATALOG_CODETABLENAME_ISBUILTIN |
CODETABLENAME, ISBUILTIN |
yes |
|
|
UC_CODETABLECATALOG_DBTABLENAME |
DBTABLENAME |
yes |
|
|
UIX_CODETABLECATALOG_UINAME_ISBUILTIN |
UINAME, ISBUILTIN |
yes |
|
|
Triggers
Referenced by