SYSTEMROLEPERM_CODETABLE
System permissions for CodeTableSpecs
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
ADDPERMISSIONCODE |
tinyint |
|
Default = 0 |
This field indicates whether or not the user has been granted or denied permission to add new entries to the given code table. |
ADDPERMISSION |
nvarchar(7) (Computed) |
yes |
CASE [ADDPERMISSIONCODE] WHEN 0 THEN N'Not Set' WHEN 1 THEN N'Granted' WHEN 2 THEN N'Denied' END |
Provides a translation for the 'ADDPERMISSIONCODE' field. |
UPDATEPERMISSIONCODE |
tinyint |
|
Default = 0 |
This field indicates whether or not the user has been granted or denied permission to update existing entries in the given code table. |
UPDATEPERMISSION |
nvarchar(7) (Computed) |
yes |
CASE [UPDATEPERMISSIONCODE] WHEN 0 THEN N'Not Set' WHEN 1 THEN N'Granted' WHEN 2 THEN N'Denied' END |
Provides a translation for the 'UPDATEPERMISSIONCODE' field. |
DELETEPERMISSIONCODE |
tinyint |
|
Default = 0 |
This field indicates whether or not the user has been granted or denied permission to delete entries from the given code table. |
DELETEPERMISSION |
nvarchar(7) (Computed) |
yes |
CASE [DELETEPERMISSIONCODE] WHEN 0 THEN N'Not Set' WHEN 1 THEN N'Granted' WHEN 2 THEN N'Denied' END |
Provides a translation for the 'DELETEPERMISSIONCODE' field. |
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 |
SYSTEMROLEID |
uniqueidentifier |
|
SYSTEMROLE.ID
|
FK to SYSTEMROLE |
CODETABLECATALOGID |
uniqueidentifier |
|
CODETABLECATALOG.ID
|
FK to CODETABLECATALOG |
ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_SYSTEMROLEPERM_CODETABLE_CODETABLECATALOGID |
CODETABLECATALOGID |
|
|
|
IX_SYSTEMROLEPERM_CODETABLE_DATEADDED |
DATEADDED |
|
|
yes |
IX_SYSTEMROLEPERM_CODETABLE_DATECHANGED |
DATECHANGED |
|
|
|
PK_SYSTEMROLEPERM_CODETABLE |
ID |
yes |
yes |
|
UIX_SYSTEMROLEPERM_CODETABLE_SYSTEMROLEID_CODETABLECATALOGID |
SYSTEMROLEID, CODETABLECATALOGID |
yes |
|
|
Triggers