RECORDTYPE
The RECORDTYPE table is used to define all of the primary record entities in the system.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| NAME |
nvarchar(50) |
|
|
Record type name |
| BASETABLENAME |
nvarchar(128) |
|
Default = '' |
Name of database table that contains this record type |
| HASRACSID |
bit |
|
Default = 0 |
True if the base table has the RACSID column used to enforce record access security. |
| 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 |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT |
| DEFAULTSEARCHLISTID |
uniqueidentifier |
yes |
SEARCHLISTCATALOG.ID
|
Defines the default search list to use when searching for records of this type. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_RECORDTYPE_BASETABLENAME_ID |
BASETABLENAME |
|
|
|
| IX_RECORDTYPE_DATEADDED |
DATEADDED |
|
|
yes |
| IX_RECORDTYPE_ID_NAME |
ID |
|
|
|
| PK_RECORDTYPE |
ID |
yes |
yes |
|
| UC_RECORDTYPE_NAME |
NAME |
yes |
|
|
Triggers
Referenced by