Database: @DATABASE_PROP_NAME@

Tables

Table NameDescription
SCARAB_ACTIVITYHistory of changes made to the attributes of an issue. 
SCARAB_ATTACHMENTAttachment is a piece of information associated with an issue. 
SCARAB_ATTACHMENT_TYPEPossible types of attachements. Example: Comment Example: File 
SCARAB_ATTRIBUTEPossible attributes of an issue. Example: Operating System Example: Severity 
SCARAB_ATTRIBUTE_CLASSAttribute class is group of attributes types that have the same properties. Example: Free form input. Example: Select one from the list. 
SCARAB_ATTRIBUTE_GROUPGroupings in which attributes appear on the page. 
SCARAB_ATTRIBUTE_OPTIONAttribute option is possible value of an attribute of an issue. Example: DOS 3.1 (for attribute Operating System) 
SCARAB_ATTRIBUTE_TYPEAttribute type is group of attributes that have the same representation in the application data structure. Attribute type fully defines attribute behavior. Example: Integer Example: String 
SCARAB_DEPENDDependency between issues. Example: Issue is a duplicate of another issue. Example: Issue is blocking another issue. 
SCARAB_DEPEND_TYPEPossible types of dependency between issues. Example: Duplicate Example: Block 
SCARAB_FREQUENCYFrequencies of an event. Examples: every half hour, weekly. 
SCARAB_ISSUEInformation about artifact under processing in tracking system. Example: Particular defect Example: Particular inquiry 
SCARAB_ISSUE_ATTRIBUTE_VALUEActual attribute of the issue with its value. 
SCARAB_ISSUE_TEMPLATE_INFOA saved user template for entering issues. 
SCARAB_ISSUE_TYPE 
SCARAB_ISSUE_VOTEThe number of votes a user has cast for an issue. 
SCARAB_MODIFICATIONModification information for table. Not currently used. 
SCARAB_MODULELogical category of issues. Usually corresponds to the software project. Example: Scarab 
SCARAB_OPTION_RELATIONSHIPPossible types of dependency between options. Example: Parent-Child Example: Requires 
SCARAB_QUERYA saved user query. 
SCARAB_R_ATTRIBUTE_ATTRGROUPMapping from attributes to groups. 
SCARAB_R_MODULE_ATTRIBUTEAttributes that are applicable to issues of the particular module. 
SCARAB_R_MODULE_ISSUE_TYPEMapping between modules and issue types. 
SCARAB_R_MODULE_OPTIONOptions that are applicable to issues of the particular module. 
SCARAB_R_MODULE_USER_ATTRIBUTEUser's choice of attributes to appear on the Issue List screen. 
SCARAB_R_OPTION_OPTIONSets up relations between options. 
SCARAB_R_QUERY_USERUsers subscribed to a query. 
SCARAB_REPORTA saved report. 
SCARAB_SCOPEScope: personal, global. 
SCARAB_TRANSACTIONTransaction is a group of attribute modification that are performed together. 
SCARAB_TRANSACTION_TYPEPossible types of transactions. Example: Issue Created Example: Issue Moved 
SCARAB_USER_PREFERENCEThis table is used to store user preferences and other information relating to a specific user. 
SCARAB_USER_VOTEA user's record of votes. It is assumed that a module that supports voting will give a new user some votes to use when the user is added, otherwise the user has no votes. 
TURBINE_USER Dummy table for where the USER_ID lives. In most cases, this will be a foreign table outside of the scope of Scarab itself. For example, if you are using Scarab with Turbine, then this will be defined as TURBINE_USER. For use in other systems, you will want to define this to be the name of your own USER table and update the FK references in this file to point at the new name. Then, all you need to do is regenerate the OR code to use the new table name. 

SCARAB_ACTIVITY

Description:

History of changes made to the attributes of an issue.

Columns:

Column NameTypeDescription
ACTIVITY_ID * INTEGER not null PK. 
ATTRIBUTE_IDINTEGER not null Attribute that has been modified. 
DESCRIPTIONVARCHAR (255) null System-generated description of modification. 
END_DATEDATE null Date this Activity is no longer the current value of the Attribute. 
ISSUE_IDINTEGER not null Issue attribute of which has been modified. 
NEW_NUMERIC_VALUEINTEGER null Value of integer attribute after modification. 
NEW_OPTION_IDINTEGER null Value of option attribute after modification. 
NEW_USER_IDINTEGER null Value of user attribute after modification. 
NEW_VALUELONGVARCHAR null Value of attribute after modification. 
OLD_NUMERIC_VALUEINTEGER null Value of integer attribute before modification. 
OLD_OPTION_IDINTEGER null Value of option attribute before modification. 
OLD_USER_IDINTEGER null Value of user attribute before modification. 
OLD_VALUELONGVARCHAR null Value of attribute before modification. 
TRANSACTION_IDINTEGER not null Transaction to which the attribute modification belongs. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTRIBUTEATTRIBUTE_ID

ATTRIBUTE_ID

SCARAB_ATTRIBUTE_OPTIONOLD_OPTION_ID

OPTION_ID

SCARAB_ATTRIBUTE_OPTIONNEW_OPTION_ID

OPTION_ID

SCARAB_ISSUEISSUE_ID

ISSUE_ID

SCARAB_TRANSACTIONTRANSACTION_ID

TRANSACTION_ID

TURBINE_USEROLD_USER_ID

USER_ID

TURBINE_USERNEW_USER_ID

USER_ID

Indexes:

Index NameFields
IX_ATTRIBUTE_ISSUE_ENDDATEATTRIBUTE_ID

END_DATE

ISSUE_ID

IX_ISSUE_TRANSACTIONISSUE_ID

TRANSACTION_ID

IX_TRANSACTIONTRANSACTION_ID

SCARAB_ATTACHMENT

Description:

Attachment is a piece of information associated with an issue.

Columns:

Column NameTypeDescription
ATTACHMENT_ID * INTEGER not null Unique identifier. 
ATTACHMENT_DATAVARBINARY null Actual information constituting the attachment. 
ATTACHMENT_FILE_PATHVARCHAR (255) null Server side location of the file that contains attachment. Location is relative to the central file storage location specified in the application properties. 
ATTACHMENT_MIME_TYPEVARCHAR (25) not null MIME type of the attachment. Describes type of information constituting an attachment. 
ATTACHMENT_NAMEVARCHAR (255) not null Name that is displayed in the UI. 
ATTACHMENT_TYPE_IDINTEGER not null Type. 
CREATED_BYINTEGER null Person that associated the attachment with an issue initially. 
CREATED_DATETIMESTAMP null Date of the initial association of attachment with an issue. 
DELETEDBOOLEANINT (1) null Flag, which marks that attachment has been deleted. 
ISSUE_IDINTEGER null Issue that attachment is associated with. 
MODIFIED_BYINTEGER null Person that made last modification to the attachment. 
MODIFIED_DATETIMESTAMP null Date of the last modification of the attachment. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTACHMENT_TYPEATTACHMENT_TYPE_ID

ATTACHMENT_TYPE_ID

SCARAB_ISSUEISSUE_ID

ISSUE_ID

TURBINE_USERCREATED_BY

USER_ID

TURBINE_USERMODIFIED_BY

USER_ID

SCARAB_ATTACHMENT_TYPE

Description:

Possible types of attachements. Example: Comment Example: File

Columns:

Column NameTypeDescription
ATTACHMENT_TYPE_ID * INTEGER not null Unique identifier. 
ATTACHMENT_TYPE_NAMEVARCHAR (255) not null Name. 
SEARCHABLEBOOLEANINT (1) null Flag marking text/searchable attachments. 

SCARAB_ATTRIBUTE

Description:

Possible attributes of an issue. Example: Operating System Example: Severity

Columns:

Column NameTypeDescription
ATTRIBUTE_ID * INTEGER not null Unique identifier. 
ACTIONVARCHAR (255) null For user attributes, whether the user will be emailed, cc'd, or neither. 
ATTRIBUTE_NAMEVARCHAR (255) not null Name. 
ATTRIBUTE_TYPE_IDINTEGER not null Type. 
CREATED_BYINTEGER null Person that set value to the column of the table initially. 
CREATED_DATETIMESTAMP null Date of the initial set of the column of the table. 
DELETEDBOOLEANINT (1) null Flag, which marks that attribute has been deleted. 
DESCRIPTIONVARCHAR (255) not null Description. 
PERMISSIONVARCHAR (255) null A permission related to this attribute. 
REQUIRED_OPTION_IDINTEGER null A required option for this attribute to be active. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTRIBUTE_OPTIONREQUIRED_OPTION_ID

OPTION_ID

SCARAB_ATTRIBUTE_TYPEATTRIBUTE_TYPE_ID

ATTRIBUTE_TYPE_ID

SCARAB_ATTRIBUTE_CLASS

Description:

Attribute class is group of attributes types that have the same properties. Example: Free form input. Example: Select one from the list.

Columns:

Column NameTypeDescription
ATTRIBUTE_CLASS_ID * INTEGER not null Unique identifier. 
ATTRIBUTE_CLASS_DESCVARCHAR (255) not null Description. 
ATTRIBUTE_CLASS_NAMEVARCHAR (255) not null Name. 
JAVA_CLASS_NAMEVARCHAR (255) null Fully qualified name of the java class that represents attribute, belonging to the attribute class, in the application. 

SCARAB_ATTRIBUTE_GROUP

Description:

Groupings in which attributes appear on the page.

Columns:

Column NameTypeDescription
ATTRIBUTE_GROUP_ID * INTEGER not null Unique identifier. 
ACTIVEBOOLEANINT (1) null  
DEDUPEBOOLEANINT (1) null  
DESCRIPTIONVARCHAR (255) null  
ISSUE_TYPE_IDINTEGER not null Issue type. 
MODULE_IDINTEGER not null Module. 
NAMEVARCHAR (255) not null  
PREFERRED_ORDERINTEGER null  

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ISSUE_TYPEISSUE_TYPE_ID

ISSUE_TYPE_ID

SCARAB_MODULEMODULE_ID

MODULE_ID

Indexes:

Index NameFields
IX_ISSUE_MODULE_PREFERRED_ORDERISSUE_TYPE_ID

MODULE_ID

PREFERRED_ORDER

SCARAB_ATTRIBUTE_OPTION

Description:

Attribute option is possible value of an attribute of an issue. Example: DOS 3.1 (for attribute Operating System)

Columns:

Column NameTypeDescription
OPTION_ID * INTEGER not null Unique identifier. 
ATTRIBUTE_IDINTEGER not null Attribute that can take the options as its value. 
DELETEDBOOLEANINT (1) null Flag, which marks that option has been deleted. 
OPTION_NAMEVARCHAR (255) not null Name. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTRIBUTEATTRIBUTE_ID

ATTRIBUTE_ID

Indexes:

Index NameFields
IX_ATTRIBUTEATTRIBUTE_ID

SCARAB_ATTRIBUTE_TYPE

Description:

Attribute type is group of attributes that have the same representation in the application data structure. Attribute type fully defines attribute behavior. Example: Integer Example: String

Columns:

Column NameTypeDescription
ATTRIBUTE_TYPE_ID * INTEGER not null Unique identifier. 
ATTRIBUTE_CLASS_IDINTEGER not null Attribute class. 
ATTRIBUTE_TYPE_NAMEVARCHAR (255) not null Name. 
JAVA_CLASS_NAMEVARCHAR (255) null Fully qualified name of the java class that represents attribute, belonging to the attribute type, in the application. 
VALIDATION_KEYVARCHAR (20) null A key which ties into a validation service (intake). 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTRIBUTE_CLASSATTRIBUTE_CLASS_ID

ATTRIBUTE_CLASS_ID

SCARAB_DEPEND

Description:

Dependency between issues. Example: Issue is a duplicate of another issue. Example: Issue is blocking another issue.

Columns:

Column NameTypeDescription
OBSERVED_ID * INTEGER not null Issue that other issue depends upon. Example: Issue that blocks. Example: Issue that has duplicates. 
OBSERVER_ID * INTEGER not null Issue that depends on other issue. Example: Issue that is being blocked. Example: Issue that is duplicate. 
DELETEDBOOLEANINT (1) null Flag, which marks that dependency has been deleted. 
DEPEND_TYPE_IDINTEGER not null Type. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_DEPEND_TYPEDEPEND_TYPE_ID

DEPEND_TYPE_ID

SCARAB_ISSUEOBSERVED_ID

ISSUE_ID

SCARAB_ISSUEOBSERVER_ID

ISSUE_ID

SCARAB_DEPEND_TYPE

Description:

Possible types of dependency between issues. Example: Duplicate Example: Block

Columns:

Column NameTypeDescription
DEPEND_TYPE_ID * INTEGER not null Unique identifier. 
DEPEND_TYPE_NAMEVARCHAR (100) not null Name. 

SCARAB_FREQUENCY

Description:

Frequencies of an event. Examples: every half hour, weekly.

Columns:

Column NameTypeDescription
FREQUENCY_ID * INTEGER not null Unique identifier. 
FREQUENCY_NAMEVARCHAR (255) not null Name. 

SCARAB_ISSUE

Description:

Information about artifact under processing in tracking system. Example: Particular defect Example: Particular inquiry

Columns:

Column NameTypeDescription
ISSUE_ID * INTEGER not null Unique identifier used for primary key. 
DELETEDBOOLEANINT (1) null Flag, which marks that issue has been deleted. 
ID_COUNTINTEGER (10) not null Part of Id which is an integer. 
ID_DOMAINVARCHAR (127) null The instance of scarab the issue was originally reported to. This field could be null for the normal instance where the issue is local to this database. 
ID_PREFIXCHAR (4) not null Part of Id related to module. 
MODULE_IDINTEGER not null Module that issue relates to. 
TYPE_IDINTEGER null Type : Issue, or Enter Issue Template. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ISSUE_TYPETYPE_ID

ISSUE_TYPE_ID

SCARAB_MODULEMODULE_ID

MODULE_ID

Indexes:

Index NameFields
IX_COUNT_PREFIXID_COUNT

ID_PREFIX

IX_TYPE_MODULEMODULE_ID

TYPE_ID

SCARAB_ISSUE_ATTRIBUTE_VALUE

Description:

Actual attribute of the issue with its value.

Columns:

Column NameTypeDescription
VALUE_ID * INTEGER not null PK. 
ATTRIBUTE_IDINTEGER not null Attribute. 
DELETEDBOOLEANINT (1) null Flag, which marks that attribute has been deleted. 
ISSUE_IDINTEGER not null Issue that attribute belongs to. 
NUMERIC_VALUEINTEGER (11) null some attributes are better saved in numeric format, so this column can be used in place of VALUE. 
OPTION_IDINTEGER null Option that is the value of the attribute if attribute is option based. 
USER_IDINTEGER null Person that is the value of the attribute if attribute is person based. 
VALUELONGVARCHAR null Display value of the attribute. This column should always contain a value which serves as a 'summary value' of the attribute, you MAY need to look elsewhere to get real value. Purpose of this 'duplication' is to be able to get overview of the attribute independently of what kind of attribute this is. This also improves performance so you do not need to perform (sometimes complex) processing each time you view the issue. It lets you get list of issues with their attributes with a single SQL statement. Examples of what would go into this fields for different kinds of attributes: - For 'free-form' attributes this would be the actual value (it's String representation to be exact) - For 'select-one' this would be a copy of value in SCARAB_ATTRIBUTE_OPTION.DISPLAY_VALUE. There will also be an apropriate value in OPTION_ID column which you should use to join with SCARAB_ATTRIBUTE_OPTION - For 'voted' attributes this would be the vote result. For bugzilla-style votes it is sum of all votes casted. For average vote this result is DISPLAY_VALUE of OPTION which has computed as: round(sum(votes.numeric_value)/count(votes)). For 'Tracking' attribute which is also considered a voted attribute this value is a list of login_IDs of users tracking the issue. It is responsibility of Attribute's subclass which implements this ATTRIBUTE_TYPE to populate this field with an apropriate value. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTRIBUTEATTRIBUTE_ID

ATTRIBUTE_ID

SCARAB_ATTRIBUTE_OPTIONOPTION_ID

OPTION_ID

SCARAB_ISSUEISSUE_ID

ISSUE_ID

TURBINE_USERUSER_ID

USER_ID

Indexes:

Index NameFields
IX_DELETED_ISSUE_ATTRIBUTEATTRIBUTE_ID

DELETED

ISSUE_ID

IX_DELETED_OPTIONDELETED

OPTION_ID

SCARAB_ISSUE_TEMPLATE_INFO

Description:

A saved user template for entering issues.

Columns:

Column NameTypeDescription
ISSUE_ID * INTEGER not null  
APPROVEDBOOLEANINT (1) null  
ATTACHMENT_TYPE_IDINTEGER not null  
DESCRIPTIONVARCHAR (255) null The description of the saved template. 
NAMEVARCHAR (255) not null Person. 
SCOPE_IDINTEGER not null Scope : personal or global. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ISSUEISSUE_ID

ISSUE_ID

SCARAB_SCOPESCOPE_ID

SCOPE_ID

SCARAB_ISSUE_TYPE

Description:

Columns:

Column NameTypeDescription
ISSUE_TYPE_ID * INTEGER not null Unique identifier used for primary key. 
DELETEDBOOLEANINT (1) null  
DESCRIPTIONVARCHAR (255) null Description. 
NAMEVARCHAR (100) not null Name. 
PARENT_IDINTEGER not null If this issue type is a template, the id of the issue type it Corresponds to. If is not, parent id is 0. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ISSUE_TYPEPARENT_ID

ISSUE_TYPE_ID

SCARAB_ISSUE_VOTE

Description:

The number of votes a user has cast for an issue.

Columns:

Column NameTypeDescription
ISSUE_ID * INTEGER not null Module. 
USER_ID * INTEGER not null Person. 
VOTESINTEGER (3) null The votes a user has cast for the issue. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ISSUEISSUE_ID

ISSUE_ID

TURBINE_USERUSER_ID

USER_ID

SCARAB_MODIFICATION

Description:

Modification information for table. Not currently used.

Columns:

Column NameTypeDescription
COLUMN_ID * INTEGER not null Column of the table. 
TABLE_ID * INTEGER not null Table. 
CREATED_BYINTEGER null Person that set value to the column of the table initially. 
CREATED_DATETIMESTAMP null Date of the initial set of the column of the table. 
MODIFIED_BYINTEGER null Person that made last modification to the column of the table. 
MODIFIED_DATETIMESTAMP null Date of the last modification of the column of the table. 

SCARAB_MODULE

Description:

Logical category of issues. Usually corresponds to the software project. Example: Scarab

Columns:

Column NameTypeDescription
MODULE_ID * INTEGER not null Unique identifier. 
CLASS_KEYINTEGER null  
DELETEDBOOLEANINT (1) null Flag, which marks that module has been deleted. 
DOMAINVARCHAR (127) null The instance name of scarab the module is located within. 
MODULE_CODECHAR (4) not null Abbreviation whose primary use to identify related issues. 
MODULE_DESCRIPTIONVARCHAR (255) not null Description. 
MODULE_NAMEVARCHAR (255) not null Name. It is RealName because Module implements the Turbine Group interface and having it as Name would clash with that interface. Please note that the result of group.getName() needs to be unique for each SCARAB_MODULE. 
MODULE_URLVARCHAR (255) null URL pointing to the information on the module. 
OWNER_IDINTEGER null Person that is responsible for the module. @deprecated. 
PARENT_IDINTEGER not null Parent module containing the module. Allows for hierarchical structure of modules. 
QA_CONTACT_IDINTEGER null Key quality assurance person for the module. @deprecated. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_MODULEPARENT_ID

MODULE_ID

TURBINE_USEROWNER_ID

USER_ID

TURBINE_USERQA_CONTACT_ID

USER_ID

SCARAB_OPTION_RELATIONSHIP

Description:

Possible types of dependency between options. Example: Parent-Child Example: Requires

Columns:

Column NameTypeDescription
RELATIONSHIP_ID * INTEGER not null Unique identifier. 
RELATIONSHIP_NAMEVARCHAR (100) not null Name. 

SCARAB_QUERY

Description:

A saved user query.

Columns:

Column NameTypeDescription
QUERY_ID * INTEGER not null  
APPROVEDBOOLEANINT (1) null  
CREATED_DATETIMESTAMP null  
DELETEDBOOLEANINT (1) null  
DESCRIPTIONVARCHAR (255) null The description of the saved query. 
ISSUE_TYPE_IDINTEGER not null Issue type. 
MODULE_IDINTEGER null Module. 
NAMEVARCHAR (255) not null The name the query will be saved under. 
SCOPE_IDINTEGER not null Type. 
SUBSCRIPTION_FREQUENCY_IDINTEGER null Default subscription frequency. 
USER_IDINTEGER not null Person. 
VALUELONGVARCHAR not null The query string. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_FREQUENCYSUBSCRIPTION_FREQUENCY_ID

FREQUENCY_ID

SCARAB_ISSUE_TYPEISSUE_TYPE_ID

ISSUE_TYPE_ID

SCARAB_MODULEMODULE_ID

MODULE_ID

SCARAB_SCOPESCOPE_ID

SCOPE_ID

TURBINE_USERUSER_ID

USER_ID

SCARAB_R_ATTRIBUTE_ATTRGROUP

Description:

Mapping from attributes to groups.

Columns:

Column NameTypeDescription
ATTRIBUTE_ID * INTEGER not null Attribute. 
GROUP_ID * INTEGER not null Group. 
PREFERRED_ORDERINTEGER null  

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTRIBUTEATTRIBUTE_ID

ATTRIBUTE_ID

SCARAB_ATTRIBUTE_GROUPGROUP_ID

ATTRIBUTE_GROUP_ID

SCARAB_R_MODULE_ATTRIBUTE

Description:

Attributes that are applicable to issues of the particular module.

Columns:

Column NameTypeDescription
ATTRIBUTE_ID * INTEGER not null Attribute. 
ISSUE_TYPE_ID * INTEGER not null Issue type. 
MODULE_ID * INTEGER not null Module. 
ACTIVEBOOLEANINT (1) not null Flag, which marks that module attribute is not used. 
DEFAULT_TEXT_FLAGBOOLEANINT (1) not null Flag, which marks that this attribute should be used in the email subject line, when an issue is created. May be used in other contexts as well. 
DISPLAY_VALUEVARCHAR (255) not null Value that represents the attribute in the UI. 
PREFERRED_ORDERINTEGER not null Column order. 
QUICK_SEARCHBOOLEANINT (1) not null Flag, which marks this attribute as being eligible for quick search. 
REQUIREDBOOLEANINT (1) not null Flag, which marks that issues entered for this module must have this attribute set. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTRIBUTEATTRIBUTE_ID

ATTRIBUTE_ID

SCARAB_ISSUE_TYPEISSUE_TYPE_ID

ISSUE_TYPE_ID

SCARAB_MODULEMODULE_ID

MODULE_ID

Indexes:

Index NameFields
IX_QUICKSEARCHQUICK_SEARCH

IX_REQUIREDREQUIRED

SCARAB_R_MODULE_ISSUE_TYPE

Description:

Mapping between modules and issue types.

Columns:

Column NameTypeDescription
ISSUE_TYPE_ID * INTEGER not null Artifact type. 
MODULE_ID * INTEGER not null Module. 
ACTIVEBOOLEANINT (1) not null Flag, which marks that the issue type is not used. 
COMMENTSINTEGER null Default number of comments. 
DEDUPEBOOLEANINT (1) null Deduping on/off for this module/issuetype. 
DISPLAYBOOLEANINT (1) not null Whether or not the issue type shows up in left hand nav. 
DISPLAY_DESCRIPTIONVARCHAR (255) null Value that represents the description of the issue type in the UI. 
DISPLAY_NAMEVARCHAR (255) null Value that represents the name of the issue type in the UI. 
HISTORYINTEGER null Default number of history entries. 
PREFERRED_ORDERINTEGER null Order the the issue types appear in the left nav. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ISSUE_TYPEISSUE_TYPE_ID

ISSUE_TYPE_ID

SCARAB_MODULEMODULE_ID

MODULE_ID

SCARAB_R_MODULE_OPTION

Description:

Options that are applicable to issues of the particular module.

Columns:

Column NameTypeDescription
ISSUE_TYPE_ID * INTEGER not null Issue Type. 
MODULE_ID * INTEGER not null Module. 
OPTION_ID * INTEGER not null Option. 
ACTIVEBOOLEANINT (1) not null Flag, which marks that option has been deleted within the module. 
DISPLAY_VALUEVARCHAR (255) null Value that represents the option in the UI. 
PREFERRED_ORDERINTEGER null Allows the template engineer and module owner some means to order option listings. 
WEIGHTINTEGER null  

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTRIBUTE_OPTIONOPTION_ID

OPTION_ID

SCARAB_MODULEMODULE_ID

MODULE_ID

SCARAB_R_MODULE_USER_ATTRIBUTE

Description:

User's choice of attributes to appear on the Issue List screen.

Columns:

Column NameTypeDescription
ATTRIBUTE_ID * INTEGER not null Attribute. 
ISSUE_TYPE_ID * INTEGER not null Artifact type. 
MODULE_ID * INTEGER not null Module. 
USER_ID * INTEGER not null Person. 
PREFERRED_ORDERINTEGER not null Column order. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTRIBUTEATTRIBUTE_ID

ATTRIBUTE_ID

SCARAB_ISSUE_TYPEISSUE_TYPE_ID

ISSUE_TYPE_ID

SCARAB_MODULEMODULE_ID

MODULE_ID

TURBINE_USERUSER_ID

USER_ID

SCARAB_R_OPTION_OPTION

Description:

Sets up relations between options.

Columns:

Column NameTypeDescription
OPTION1_ID * INTEGER not null Parent Option. 
OPTION2_ID * INTEGER not null Child Option. 
PREFERRED_ORDERINTEGER not null The preferred order that these options should be shown in. Each option should have a 1-N ordering for all of its options (regardless of nesting). 
RELATIONSHIP_IDINTEGER not null The type of relationship. See the SCARAB_OPTION_RELATIONSHIP table for the different types. 
WEIGHTINTEGER null This gives 'weight' to an option. In other words, it can be used to set the 'importance' of one option vs. another option. P1 can be made more 'important' than P2. This is currently not used in any of the code. This may become more useful in the future when we have outside workflow logic. This is placed here because an Attribute Option may have different weights with different parents. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTRIBUTE_OPTIONOPTION1_ID

OPTION_ID

SCARAB_ATTRIBUTE_OPTIONOPTION2_ID

OPTION_ID

SCARAB_OPTION_RELATIONSHIPRELATIONSHIP_ID

RELATIONSHIP_ID

SCARAB_R_QUERY_USER

Description:

Users subscribed to a query.

Columns:

Column NameTypeDescription
QUERY_ID * INTEGER not null Query. 
USER_ID * INTEGER not null Person. 
IS_SUBSCRIBEDBOOLEANINT (1) null Is user subscribed. 
ISDEFAULTBOOLEANINT (1) null Whether this is the user's default query. 
SUBSCRIPTION_FREQUENCY_IDINTEGER null User's subscription frequency. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_FREQUENCYSUBSCRIPTION_FREQUENCY_ID

FREQUENCY_ID

SCARAB_QUERYQUERY_ID

QUERY_ID

TURBINE_USERUSER_ID

USER_ID

SCARAB_REPORT

Description:

A saved report.

Columns:

Column NameTypeDescription
REPORT_ID * INTEGER not null  
CREATED_DATETIMESTAMP null  
DELETEDBOOLEANINT (1) null  
DESCRIPTIONVARCHAR (255) null The description of the saved report. 
ISSUE_TYPE_IDINTEGER not null Issue type. 
MODULE_IDINTEGER null Module. 
NAMEVARCHAR (255) not null The name the report will be saved under. 
QUERY_STRINGLONGVARCHAR not null The report string. 
USER_IDINTEGER not null Person. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ISSUE_TYPEISSUE_TYPE_ID

ISSUE_TYPE_ID

SCARAB_MODULEMODULE_ID

MODULE_ID

TURBINE_USERUSER_ID

USER_ID

SCARAB_SCOPE

Description:

Scope: personal, global.

Columns:

Column NameTypeDescription
SCOPE_ID * INTEGER not null Unique identifier. 
SCOPE_NAMEVARCHAR (255) not null Name. 

SCARAB_TRANSACTION

Description:

Transaction is a group of attribute modification that are performed together.

Columns:

Column NameTypeDescription
TRANSACTION_ID * INTEGER not null Unique identifier. 
ATTACHMENT_IDINTEGER null Comment added to modification. 
CREATED_BYINTEGER null Person that performed the transaction. 
CREATED_DATETIMESTAMP null Date of the transaction. 
TYPE_IDINTEGER null Possible enumerated transaction type. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_ATTACHMENTATTACHMENT_ID

ATTACHMENT_ID

SCARAB_TRANSACTION_TYPETYPE_ID

TYPE_ID

TURBINE_USERCREATED_BY

USER_ID

SCARAB_TRANSACTION_TYPE

Description:

Possible types of transactions. Example: Issue Created Example: Issue Moved

Columns:

Column NameTypeDescription
TYPE_ID * INTEGER not null Unique identifier. 
NAMEVARCHAR (100) not null Name. 

SCARAB_USER_PREFERENCE

Description:

This table is used to store user preferences and other information relating to a specific user.

Columns:

Column NameTypeDescription
USER_ID * INTEGER not null Unique identifier. 
PASSWORD_EXPIRETIMESTAMP not null This is a column that Scarab standalone needs. Torque doesn't do anything with it at this point because this is an aliased table. Leaving it in here just as an FYI and in the hope that one day, Torque will generate the right methods even for aliased tables. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
TURBINE_USERUSER_ID

USER_ID

SCARAB_USER_VOTE

Description:

A user's record of votes. It is assumed that a module that supports voting will give a new user some votes to use when the user is added, otherwise the user has no votes.

Columns:

Column NameTypeDescription
MODULE_ID * INTEGER not null Module. 
USER_ID * INTEGER not null Person. 
TOTAL_VOTESINTEGER (3) null The total votes a user is allowed to cast in a project. 
USED_VOTESINTEGER (3) null The number of votes a user has cast in a project. 

Foreign Keys:

Foreign TableLocal FieldForeign Field
SCARAB_MODULEMODULE_ID

MODULE_ID

TURBINE_USERUSER_ID

USER_ID

TURBINE_USER

Description:

Dummy table for where the USER_ID lives. In most cases, this will be a foreign table outside of the scope of Scarab itself. For example, if you are using Scarab with Turbine, then this will be defined as TURBINE_USER. For use in other systems, you will want to define this to be the name of your own USER table and update the FK references in this file to point at the new name. Then, all you need to do is regenerate the OR code to use the new table name.

Columns:

Column NameTypeDescription
USER_ID * INTEGER not null Unique identifier.