SHARE
TWEET

2-createCoreSchema (1/2)

a guest Nov 18th, 2013 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. USE [RIDW]
  2. GO
  3.  
  4. CREATE SCHEMA [CONFIG] AUTHORIZATION [db_owner]
  5. GO
  6.  
  7. CREATE SCHEMA [RIODS] AUTHORIZATION [db_owner]
  8. GO
  9.  
  10. CREATE SCHEMA [RIDW] AUTHORIZATION [db_owner]
  11. GO
  12.  
  13. CREATE SCHEMA [RIASSET] AUTHORIZATION [db_owner]
  14. GO
  15.  
  16. CREATE SCHEMA [RISCHK] AUTHORIZATION [db_owner]
  17. GO
  18.  
  19. USE [RIDW]
  20. GO
  21.  
  22. CREATE SCHEMA AUTHORIZATION CONFIG
  23. GO
  24.  
  25. CREATE TABLE CONFIG.ETL_INFO (ETL_ID NVARCHAR(36) NOT NULL, START_DATETIME DATETIME DEFAULT GETDATE() NOT NULL , END_DATETIME DATETIME, STATUS INT , DATASOURCE_ID NVARCHAR(36) NOT NULL, LOAD_TYPE NCHAR(1) DEFAULT 'D' NOT NULL) ON VNF_32K
  26. GO
  27.  
  28. CREATE TABLE CONFIG.SYSCONFIG_INFO (INFO_ID INT NOT NULL, NAME NVARCHAR(100) NOT NULL, DISPLAY_NAME NVARCHAR(100), INT_VALUE INT , CHAR_VALUE NVARCHAR(100), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL) ON VNF_32K
  29. GO
  30.  
  31. ALTER TABLE CONFIG.ETL_INFO ADD CONSTRAINT ETLINF_PK PRIMARY KEY (ETL_ID) ON VNF_IDX
  32. GO
  33.  
  34. ALTER TABLE CONFIG.SYSCONFIG_INFO ADD CONSTRAINT SYSCFG_PK PRIMARY KEY (INFO_ID) ON VNF_IDX
  35. GO
  36.  
  37. CREATE TABLE CONFIG.EXTERNAL_MAPPING (MSTERSHIP_SOURCE_ID NVARCHAR(36), TARGET_SOURCE_ID NVARCHAR(36), MASTER_PROJECT_ID INT , MASTER_REQUIREMENT_ID INT , MASTER_REQUEST_ID INT , MASTER_FILESTREAM_ID INT , TARGET_PROJECT_ID INT , TARGET_REQUIREMENT_ID INT , TARGET_REQUEST_ID INT , TARGET_FILESTREAM_ID INT , MASTER_EXTERNAL_KEY1 INT , MASTER_EXTERNAL_KEY2 NVARCHAR(40), TARGET_EXTERNAL_KEY1 INT , TARGET_EXTERNAL_KEY2 NVARCHAR(40), MASTER_PROJECT_NAME NVARCHAR(255), MASTER_REQUIREMENT_NAME NVARCHAR(255), MASTER_REQUEST_NAME NVARCHAR(255), MASTER_FILESTREAM_NAME NVARCHAR(255), TARGET_PROJECT_NAME NVARCHAR(255), TARGET_REQUIREMENT_NAME NVARCHAR(255), TARGET_REQUEST_NAME NVARCHAR(255), TARGET_FILESTREAM_NAME NVARCHAR(255), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL) ON VNF_32K
  38. GO
  39.  
  40. CREATE TABLE CONFIG.REORGANIZATION_LIST( STATS_ID INT NOT NULL, SCHEMA_NAME NVARCHAR(255), TABLE_NAME NVARCHAR(255), TABLE_TYPE NVARCHAR(255), ACTION NVARCHAR(255), COMMAND NVARCHAR(2048), ENABLED INT, ACTION_DATE DATETIME, ACTION_CODE VARCHAR(5), REC_DATETIME DATETIME DEFAULT GETDATE() ) ON VNF_32K
  41. GO
  42.  
  43. USE [RIDW]
  44. GO
  45.  
  46. CREATE SCHEMA AUTHORIZATION RIODS
  47. GO
  48.  
  49. CREATE TABLE RIODS.CUSTOMER ( CUSTOMER_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Customer Name Missing' NOT NULL, CUST_REFID NVARCHAR(100), COMPANY_NAME NVARCHAR(255), GEO_LOCATION NVARCHAR(255), CONTACT_EMAIL NVARCHAR(255), CONTACT_PHONE NVARCHAR(255), CONTACT_FAX NVARCHAR(255), CONTACT_ADDRESS NVARCHAR(255), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  50. GO
  51.  
  52. CREATE TABLE RIODS.ACTIVITY ( ACTIVITY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Missing Activity Name' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), ACTIVITY_CLASS_ID INT DEFAULT -1 NOT NULL, TASK_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, PROFILE_ID INT DEFAULT -1 NOT NULL, FAILED_BUILD INT DEFAULT -1 NOT NULL, CREATION_DATE DATETIME, VALIDATION_BUILD INT DEFAULT -1 NOT NULL, NOTEST_BUILD INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, FILE_STREAM_ID INT DEFAULT -1 NOT NULL, CHARGECODE_ID INT DEFAULT -1 NOT NULL, ACTIVITY_STATE NVARCHAR(255), PRIORITY NVARCHAR(255), STATUS NVARCHAR(255), RESOLUTION NVARCHAR(255), ACTIVITY_TYPE NVARCHAR(255), RESOLUTION_CODE NVARCHAR(255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  53. GO
  54.  
  55. CREATE TABLE RIODS.ACTIVITY_CLASSIFICATION ( ACTIVITY_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Activity Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  56. GO
  57.  
  58. CREATE TABLE RIODS.REQUEST_ACTIVITY_LOOKUP( REQUEST_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL ) ON VNF_32K
  59. GO
  60.  
  61. CREATE TABLE RIODS.COMPONENT ( COMPONENT_ID INT NOT NULL, COMPONENT_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'Component Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PRODUCT_ID INT DEFAULT -1 NOT NULL, PARENT_COMPONENT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  62. GO
  63.  
  64. CREATE TABLE RIODS.PROJECT_COMPONENT_LOOKUP ( PROJECT_ID INT DEFAULT -1 NOT NULL, COMPONENT_ID INT DEFAULT -1 NOT NULL ) ON VNF_32K
  65. GO
  66.  
  67. CREATE TABLE RIODS.COMPONENT_CLASSIFICATION ( COMPONENT_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Component Class Name Missing' NOT NULL ) ON VNF_32K
  68. GO
  69.  
  70. CREATE TABLE RIODS.BUILD_CLASSIFICATION ( BUILD_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Component Class Name Missing' NOT NULL ) ON VNF_32K
  71. GO
  72.  
  73. CREATE TABLE RIODS.BUILD ( BUILD_ID INT NOT NULL, BUILD_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'Build Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), COMPONENT_ID INT DEFAULT -1 NOT NULL, BASELINE_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, PROJECT_TYPE_ID INT DEFAULT -1 NOT NULL, ITERATION_ID INT DEFAULT -1 NOT NULL, TEAM_ID INT DEFAULT -1 NOT NULL, BUILD_STATE NVARCHAR(255), STATUS NVARCHAR(255), START_TIME DATETIME, END_TIME DATETIME, BUILD_TYPE NVARCHAR(255), CREATION_DATE DATETIME, WAITING_TIME BIGINT, BUILDING_TIME BIGINT, ENGINE NVARCHAR(255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  74. GO
  75.  
  76. CREATE TABLE RIODS.REQUIREMENT ( REQUIREMENT_ID INT NOT NULL, REQUIREMENT_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'Requirement Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, PLANNED_ITERATION_ID INT DEFAULT -1 NOT NULL, ACTUAL_ITERATION_ID INT DEFAULT -1 NOT NULL, RELEASE_ID INT DEFAULT -1 NOT NULL, STATUS NVARCHAR(255), REQUIREMENT_TYPE NVARCHAR(255), REQUIREMENT_STATE NVARCHAR(255), OWNER_ID INT DEFAULT -1 NOT NULL, DIFFICULTY NVARCHAR(255), STABILITY NVARCHAR(255), COMPONENT_ID INT DEFAULT -1 NOT NULL, CREATION_DATE DATETIME, PRIORITY NVARCHAR(255), CUSTOMER_PRIORITY NVARCHAR(255), PLATFORM NVARCHAR(255), REVISION_NUMBER NVARCHAR(50), REVISION_DATE DATETIME DEFAULT GETDATE() NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT
  77. 0 NOT NULL ) ON VNF_32K
  78. GO
  79.  
  80. CREATE TABLE RIODS.REQUIREMENT_COLLECTION ( REQUIREMENT_COLLECTION_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Requirement Collection Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, RELEASE_ID INT DEFAULT -1 NOT NULL, PLANNED_ITERATION_ID INT DEFAULT -1 NOT NULL, ACTUAL_ITERATION_ID INT DEFAULT -1 NOT NULL, STATUS NVARCHAR(255), COLLECTION_ORIGIN NVARCHAR(255), COLLECTION_TYPE NVARCHAR(255), COLLECTION_IMPACT NVARCHAR(255), COLLECTION_TARGET NVARCHAR(255), CREATION_DATE DATETIME, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  81. GO
  82.  
  83. CREATE TABLE RIODS.REQUICOL_REQUIREMENT_LOOKUP ( REQUIREMENT_COLLECTION_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL ) ON VNF_32K
  84. GO
  85.  
  86. CREATE TABLE RIODS.REQUICOL_TESTPLAN_LOOKUP ( REQUIREMENT_COLLECTION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) DEFAULT 'Unassigned' NOT NULL ) ON VNF_32K
  87. GO
  88.  
  89. CREATE TABLE RIODS.REQUIREMENT_REVISION_HISTORY ( REQUIREMENT_REVISION_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, REVISION_NUMBER NVARCHAR(50) DEFAULT '0' NOT NULL, RESOURCE_ID INT DEFAULT -1 NOT NULL, CHANGE_DATE DATETIME DEFAULT GETDATE() NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  90. GO
  91.  
  92. CREATE TABLE RIODS.TESTSUITE ( TESTSUITE_ID INT NOT NULL, TESTSUITE_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'TestSuite Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), OWNER_ID INT DEFAULT -1 NOT NULL, CONFIGURATION_ID INT DEFAULT -1 NOT NULL, ASSETREGISTRY_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, TESTSUITE_STATE_ID INT DEFAULT -1 NOT NULL, TEST_PRIORITY_ID INT DEFAULT -1 NOT NULL, TESTSUITE_STATE NVARCHAR(255), LAST_UPDATED DATETIME, CREATION_DATE DATETIME, DESCRIPTION NVARCHAR(255), ISSEQUENTIAL SMALLINT, CREATOR_ID INT DEFAULT -1 NOT NULL, WEIGHT INT , ESTIMATE INT , URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  93. GO
  94.  
  95. CREATE TABLE RIODS.EXECUTION_RESULT ( EXECUTION_RESULT_ID INT DEFAULT -1 NOT NULL, EXECRES_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'Execution Result Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), VERDICT NVARCHAR(255), OWNER_ID INT DEFAULT -1 NOT NULL, BUILD_ID INT DEFAULT -1 NOT NULL, ITERATION_ID INT DEFAULT -1 NOT NULL, TESTTYPE_ID INT DEFAULT -1 NOT NULL, TESTCASE_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, TESTSCRIPT_ID INT DEFAULT -1 NOT NULL, EXECRESULT_STATE_ID INT DEFAULT -1 NOT NULL, LAB_RESOURCE_ID INT DEFAULT -1 NOT NULL, START_DATE DATETIME, END_DATE DATETIME, POINTS_BLOCKED INT DEFAULT 0 NOT NULL, POINTS_INCONCLUSIVE INT DEFAULT 0 NOT NULL, MACHINE NVARCHAR(255), POINTS_ATTEMPTED INT DEFAULT 0 NOT NULL, POINTS_FAILED INT DEFAULT 0 NOT NULL, POINTS_PASSED INT DEFAULT 0 NOT NULL, POINTS_PERMFAILED INT DEFAULT 0 NOT NULL, POINTS_DEFERRED INT DEFAULT 0 NOT NULL, POINTS_TOTAL INT DEFAULT 0 NOT NULL, LAST_UPDATED DATETIME, CREATION_DATE
  96. DATETIME, SUITE_INDEX INT, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  97. GO
  98.  
  99. CREATE TABLE RIODS.CURRENCY ( CURRENCY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Currency Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), EXCHANGE_RATE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, VALID_START_DATE DATETIME, VALID_FINISH_DATE DATETIME, DEFAULT_CURRENCY INT DEFAULT 0 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  100. GO
  101.  
  102. CREATE TABLE RIODS.OPERATING_TERRITORY( TERRITORY_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Territory Name Missing' NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  103. GO
  104.  
  105. CREATE TABLE RIODS.COUNTRY ( COUNTRY_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Country Name Missing' NOT NULL, TERRITORY_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  106. GO
  107.  
  108. CREATE TABLE RIODS.PROVINCE_STATE ( PROVINCE_STATE_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Province or State Name Missing' NOT NULL, COUNTRY_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  109. GO
  110.  
  111. CREATE TABLE RIODS.CITY ( CITY_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'City Name Missing' NOT NULL, PROVINCE_STATE_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  112. GO
  113.  
  114. CREATE TABLE RIODS.ORGANIZATION ( ORGANIZATION_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Organization Name Missing' NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  115. GO
  116.  
  117. CREATE TABLE RIODS.POOL ( POOL_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Pool Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PARENT_POOL_ID INT DEFAULT -1 NOT NULL , POOL_TYPE NVARCHAR(255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  118. GO
  119.  
  120. CREATE TABLE RIODS.RESOURCE ( RESOURCE_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Resource Logon Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), FULL_NAME NVARCHAR(110) DEFAULT 'Resource Full Name Missing' NOT NULL, FIRST_NAME NVARCHAR(35), LAST_NAME NVARCHAR(35), MIDDLE_INITIAL NVARCHAR(35), RESOURCE_TYPE SMALLINT, STANDARD_RATE DECIMAL(18 , 2), OVERTIME_RATE DECIMAL(18 , 2), POOL_ID INT DEFAULT -1 NOT NULL, CITY_ID INT DEFAULT -1 NOT NULL, ORGANIZATION_ID INT DEFAULT -1 NOT NULL, EFFECTIVE_DATE DATETIME , DISCONTINUE_DATE DATETIME , TIME_PER_DAY INT, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  121. GO
  122.  
  123. CREATE TABLE RIODS.SKILL ( SKILL_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Skill Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  124. GO
  125.  
  126. CREATE TABLE RIODS.RESOURCE_SKILL_LOOKUP ( RESOURCE_ID INT NOT NULL, SKILL_ID INT NOT NULL ) ON VNF_32K
  127. GO
  128.  
  129. CREATE TABLE RIODS.COMPETENCY ( COMPETENCY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Competency Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  130. GO
  131.  
  132. CREATE TABLE RIODS.RESOURCE_COMPETENCY_LOOKUP ( RESOURCE_ID INT NOT NULL, COMPETENCY_ID INT NOT NULL ) ON VNF_32K
  133. GO
  134.  
  135. CREATE TABLE RIODS.TASK_BASELINE ( BASELINE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Baseline Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), TASK_ID INT DEFAULT -1 NOT NULL, BASELINE_DATE DATETIME, PLANNED_START DATETIME , PLANNED_FINISH DATETIME , PLANNED_WORK INT , PLANNED_COST DECIMAL(18 , 2), PLANNED_DURATION INT , URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(80) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  136. GO
  137.  
  138. CREATE TABLE RIODS.TASK_CLASSIFICATION ( TASK_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Task Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  139. GO
  140.  
  141. CREATE TABLE RIODS.TASK_CATEGORY ( TASK_CATEGORY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Task Category Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), OWNER_ID INT DEFAULT -1 NOT NULL, CATEGORY_TYPE NVARCHAR(255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  142. GO
  143.  
  144. CREATE TABLE RIODS.PRODUCT ( PRODUCT_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Product Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  145. GO
  146.  
  147. CREATE TABLE RIODS.ASSETREGISTRY ( ASSETREGISTRY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'AssetRegistry Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  148. GO
  149.  
  150. CREATE TABLE RIODS.ITERATION ( ITERATION_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Iteration Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), ASSETREGISTRY_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, PHASE_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, PARENT_ITERATION_ID INT DEFAULT -1 NOT NULL, TIMELINE_ID INT DEFAULT -1 NOT NULL, STATUS NVARCHAR(255), DESCRIPTION NVARCHAR(255), START_DATE DATETIME, END_DATE DATETIME, EXPECTED_START_DATE DATETIME, EXPECTED_END_DATE DATETIME, EXPECTED_TOTAL_POINTS INT DEFAULT 0 NOT NULL, EXPECTED_DEFECTS INT DEFAULT 0 NOT NULL, EXPECTED_VALIDITY_RATE DECIMAL (18,2) DEFAULT 0.00 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  151. GO
  152.  
  153. CREATE TABLE RIODS.ITERATION_DETAIL ( ITERATION_ID INT NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, ACTUAL_WORK_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_START_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_START DATETIME , ACTUAL_FINISH DATETIME , ACTUAL_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, ACTUAL_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, BASELINE_DURATION INT DEFAULT 0 NOT NULL, BASELINE_WORK INT DEFAULT 0 NOT NULL, BASELINE_WORK_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_START_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, BASELINE_START DATETIME , BASELINE_FINISH DATETIME , PLANNED_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, PLANNED_DURATION INT DEFAULT 0 NOT NULL, PLANNED_WORK INT DEFAULT 0 NOT NULL, WORK_VARIANCE INT DEFAULT 0 NOT NULL, START_VARIANCE INT DEFAULT 0 NOT
  154. NULL, FINISH_VARIANCE INT DEFAULT 0 NOT NULL, DURATION_VARIANCE INT DEFAULT 0 NOT NULL, PLANNED_START DATETIME , PLANNED_FINISH DATETIME , PERCENT_COMPLETE DECIMAL(5 , 2), PERCENT_WORK_COMPLETE DECIMAL(5 , 2) ) ON VNF_32K
  155. GO
  156.  
  157. CREATE TABLE RIODS.ITERATION_BASELINE ( BASELINE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Iteration Baseline Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), ITERATION_ID INT DEFAULT -1 NOT NULL, BASELINE_DATE DATETIME, PLANNED_START DATETIME , PLANNED_FINISH DATETIME , PLANNED_WORK INT , BASELINE_WORK_COMPLETED INT , PLANNED_COST DECIMAL(18 , 2), BASELINE_COST_COMPLETED DECIMAL(18 , 2), PLANNED_DURATION INT , URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(80) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  158. GO
  159.  
  160. CREATE TABLE RIODS.RELEASE ( RELEASE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Release Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), ITERATION_ID INT DEFAULT -1 NOT NULL, PRODUCT_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, AVAILABILITY_DATE DATETIME , DECOMISSION_DATE DATETIME , URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  161. GO
  162.  
  163. CREATE TABLE RIODS.PROGRAM ( PROGRAM_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Program Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROGRAM_MANAGER INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  164. GO
  165.  
  166. CREATE TABLE RIODS.PROGRAM_DETAIL ( PROGRAM_ID INT NOT NULL, CURRENCY_ID INT DEFAULT -1 NOT NULL, ACTUAL_BUDGET DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, CURRENT_BUDGET DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_BUDGET DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_VARIANCE INT DEFAULT 0, ACTUAL_START DATETIME , ACTUAL_FINISH DATETIME , PLANNED_START DATETIME , PLANNED_FINISH DATETIME , ACWP DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BAC DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BCWP DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BCWS DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, EAC DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, EV_ETC DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, EV_FLAG DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, ACTUAL_WORK_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_START_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_COST_VARIANCE DECIMAL(18 , 2) DEFAULT 0.00 NOT
  167. NULL, PLANNED_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BUDGETED_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, COST_VARIANCE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_DURATION INT DEFAULT 0 NOT NULL, PLANNED_WORK INT DEFAULT 0 NOT NULL, WORK_VARIANCE INT DEFAULT 0 NOT NULL, START_VARIANCE INT DEFAULT 0 NOT NULL, FINISH_VARIANCE INT DEFAULT 0 NOT NULL, DURATION_VARIANCE INT DEFAULT 0 NOT NULL, PERCENT_COMPLETE DECIMAL(5 , 2) DEFAULT 0.00 NOT NULL, PERCENT_WORK_COMPLETE DECIMAL(5 , 2) DEFAULT 0.00 NOT NULL, BUDGETED_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, NET_PRESENT_VALUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, INTERNAL_RATE_OF_RETURN DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL ) ON VNF_32K
  168. GO
  169.  
  170. CREATE TABLE RIODS.PROJECT ( PROJECT_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Project Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROGRAM_ID INT DEFAULT -1 NOT NULL, PROJECT_CLASS_ID INT DEFAULT -1 NOT NULL, PROJECT_MANAGER INT DEFAULT -1 NOT NULL, PROJECT_CATEGORY_ID INT DEFAULT -1 NOT NULL, START_DATE DATETIME, END_DATE DATETIME, SHIP_DATE DATETIME, PRIORITY NVARCHAR(255), STATUS NVARCHAR(255), FEASIBILITY NVARCHAR(255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  171. GO
  172.  
  173. CREATE TABLE RIODS.TASK ( TASK_ID INT NOT NULL, TASK_CATEGORY_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'Task Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), TASK_CLASS_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, ITERATION_ID INT DEFAULT -1 NOT NULL, TASK_STATE NVARCHAR(255), PRIORITY NVARCHAR(255), STATUS NVARCHAR(255), RESOLUTION NVARCHAR(255), TASK_TYPE NVARCHAR(255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  174. GO
  175.  
  176. CREATE TABLE RIODS.PROJECT_HIERARCHY ( PARENT_PROJECT_ID INT NOT NULL, CHILD_PROJECT_ID INT NOT NULL ) ON VNF_32K
  177. GO
  178.  
  179. CREATE TABLE RIODS.PROJECT_DETAIL ( PROJECT_ID INT DEFAULT -1 NOT NULL, CURRENCY_ID INT DEFAULT -1 NOT NULL, BASELINE_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BASELINE_START DATETIME , BASELINE_FINISH DATETIME , BASELINE_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_ESTIMATED_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BASELINE_ESTIMATED_START DATETIME , BASELINE_ESTIMATED_FINISH DATETIME , ACTUAL_BUDGET DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, CURRENT_BUDGET DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_BUDGET DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_VARIANCE INT DEFAULT 0, ACTUAL_START DATETIME , ACTUAL_FINISH DATETIME , PLANNED_START DATETIME , PLANNED_FINISH DATETIME , ACWP DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BAC DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BCWP DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BCWS DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, EAC DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, EV_ETC DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, EV_FLAG DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_DURATION INT DEFAULT
  180. 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, ACTUAL_WORK_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_START_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_COST_VARIANCE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BASELINE_DURATION INT DEFAULT 0 NOT NULL, BASELINE_WORK INT DEFAULT 0 NOT NULL, BASELINE_WORK_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_START_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_COST_VARIANCE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BUDGETED_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, COST_VARIANCE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_DURATION INT DEFAULT 0 NOT NULL, PLANNED_WORK INT DEFAULT 0 NOT NULL, WORK_VARIANCE INT DEFAULT 0 NOT NULL, START_VARIANCE INT DEFAULT 0 NOT NULL, FINISH_VARIANCE INT DEFAULT 0 NOT NULL, DURATION_VARIANCE INT DEFAULT 0 NOT NULL, PERCENT_COMPLETE DECIMAL(5 , 2) DEFAULT 0.00 NOT
  181. NULL, PERCENT_WORK_COMPLETE DECIMAL(5 , 2) DEFAULT 0.00 NOT NULL, BUDGETED_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, NET_PRESENT_VALUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, INTERNAL_RATE_OF_RETURN DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL ) ON VNF_32K
  182. GO
  183.  
  184. CREATE TABLE RIODS.PROJECT_ALLOCATION ( PROJECT_ALLOCATION_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Project Assignment Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, PROFILE_ID INT DEFAULT -1 NOT NULL, PLANNED_START DATETIME , PLANNED_FINISH DATETIME , ACTUAL_START DATETIME , ACTUAL_FINISH DATETIME , PLANNED_WORK INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, PLANNED_DURATION INT , ACTUAL_DURATION INT , PERCENT_COMPLETE DECIMAL(5 , 2), PERCENT_WORK_COMPLETE DECIMAL(5 , 2), ALLOTED_WORK INT , UNITS INT , SUNDAY_UNITS INT , MONDAY_UNITS INT , TUESDAY_UNITS INT , WEDNESDAY_UNITS INT , THURSDAY_UNITS INT , FRIDAY_UNITS INT , SATURDAY_UNITS INT , URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  185. GO
  186.  
  187. CREATE TABLE RIODS.PROJECT_TYPE ( PROJECT_TYPE_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Project Type Name Missing' NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, RECORD_TYPE NVARCHAR(255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  188. GO
  189.  
  190. CREATE TABLE RIODS.PROJECT_WORKCONFIGURATION ( PROJECT_WKCFG_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Work Configuartion Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, RECORD_TYPE NVARCHAR(255), PROJECT_TYPE_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  191. GO
  192.  
  193. CREATE TABLE RIODS.PROJECT_WORKCONFIG_HIERARCHY ( PARENT_WKCFG_ID INT NOT NULL, CHILD_WKCFG_ID INT NOT NULL ) ON VNF_32K
  194. GO
  195.  
  196. CREATE TABLE RIODS.PROJECT_CLASSIFICATION ( PROJECT_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Project Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  197. GO
  198.  
  199. CREATE TABLE RIODS.PROJECT_CATEGORY ( PROJECT_CATEGORY_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Project Category Name Missing' NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, CATEGORY_TYPE NVARCHAR(255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  200. GO
  201.  
  202. CREATE TABLE RIODS.PHASE ( PHASE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Project Phase Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, STATUS NVARCHAR(255), START_DATE DATETIME, END_DATE DATETIME, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  203. GO
  204.  
  205. CREATE TABLE RIODS.PROJECT_ROLE ( PROJECT_ROLE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Project Role Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  206. GO
  207.  
  208. CREATE TABLE RIODS.PROJECT_ROLE_MEMBER_LOOKUP ( PROJECT_ROLE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL ) ON VNF_32K
  209. GO
  210.  
  211. CREATE TABLE RIODS.TEAM ( TEAM_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Team Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  212. GO
  213.  
  214. CREATE TABLE RIODS.TEAM_ROLE ( TEAM_ROLE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Team Role Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), TEAM_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  215. GO
  216.  
  217. CREATE TABLE RIODS.TASK_DETAIL ( TASK_ID INT DEFAULT -1 NOT NULL, PLANNED_START DATETIME , PLANNED_FINISH DATETIME , BASELINE_START DATETIME , BASELINE_FINISH DATETIME , ACTUAL_START DATETIME , ACTUAL_FINISH DATETIME , PLANNED_WORK INT DEFAULT 0 NOT NULL, BASELINE_WORK INT , REGULAR_WORK INT , ACTUAL_WORK INT DEFAULT 0 NOT NULL, REMAINING_WORK INT , PLANNED_DURATION INT , BASELINE_DURATION INT , ACTUAL_DURATION INT , REMAINING_DURATION INT , START_VARIANCE INT , FINISH_VARIANCE INT , DURATION_VARIANCE INT , PLANNED_OVT_WORK INT , ACTUAL_OVT_WORK INT , REMAINING_OVT_WORK INT , PLANNED_COST DECIMAL(18 , 2), BASELINE_COST DECIMAL(18 , 2), ACTUAL_COST DECIMAL(18 , 2), REMAINING_COST DECIMAL(18 , 2), PLANNED_OVT_COST DECIMAL(18 , 2), ACTUAL_OVT_COST DECIMAL(18 , 2), REMAINING_OVT_COST DECIMAL(18 , 2), DEADLINE DATETIME , EARLY_START DATETIME , LATE_FINISH DATETIME , EARLY_FINISH DATETIME , LATE_START DATETIME , CONSTRAINT_TYPE INT , CONSTRAINT_DATE DATETIME , PERCENT_COMPLETE DECIMAL(5 , 2), PERCENT_WORK_COMPLETE
  218. DECIMAL(5 , 2), ACWP DOUBLE PRECISION, BCWP DOUBLE PRECISION, BCWS DOUBLE PRECISION, EAC DOUBLE PRECISION, VAC DOUBLE PRECISION, WBS_CODE NVARCHAR(255), ACTUAL_FINISH_VARIANCE INT , BASELINE_FINISH_VARIANCE INT , ACTUAL_WORK_VARIANCE INT , BASELINE_WORK_VARIANCE INT , ACTUAL_START_VARIANCE INT , BASELINE_START_VARIANCE INT , WORK_VARIANCE INT ) ON VNF_32K
  219. GO
  220.  
  221. CREATE TABLE RIODS.TASK_REQUIREMENT_LOOKUP ( TASK_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL ) ON VNF_32K
  222. GO
  223.  
  224. CREATE TABLE RIODS.CONFIGURATION ( CONFIGURATION_ID INT NOT NULL, CONFIGURATION_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'Configuration Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), OWNER_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, LAST_UPDATED DATETIME, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  225. GO
  226.  
  227. CREATE TABLE RIODS.CONFIGURATION_ATTRIBUTE ( CONFIGURATION_ATTRIBUTE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Configuration_Attribute Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  228. GO
  229.  
  230. CREATE TABLE RIODS.CONFIGURATION_ATTRIBUTE_LOOKUP ( CONFIGURATION_ATTRIBUTE_ID INT NOT NULL, CONFIGURATION_ID INT NOT NULL ) ON VNF_32K
  231. GO
  232.  
  233. CREATE TABLE RIODS.TESTSUITE_ITERATION_LOOKUP ( TESTSUITE_ID INT NOT NULL, ITERATION_ID INT NOT NULL ) ON VNF_32K
  234. GO
  235.  
  236. CREATE TABLE RIODS.TESTPLAN ( TESTPLAN_ID INT NOT NULL, TESTPLAN_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'TestPlan Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), OWNER_ID INT DEFAULT -1 NOT NULL, ASSETREGISTRY_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, TESTPLAN_STATE_ID INT DEFAULT -1 NOT NULL, TEST_PRIORITY_ID INT DEFAULT -1 NOT NULL, LAST_UPDATED DATETIME, TESTPLAN_STATE NVARCHAR(255), CREATION_DATE DATETIME, ESTIMATE INT , URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  237. GO
  238.  
  239. CREATE TABLE RIODS.TESTPLAN_ITERATION_LOOKUP ( TESTPLAN_ID INT NOT NULL, ITERATION_ID INT NOT NULL ) ON VNF_32K
  240. GO
  241.  
  242. CREATE TABLE RIODS.TESTTYPE ( TESTTYPE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'TestType Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  243. GO
  244.  
  245. CREATE TABLE RIODS.TESTCASE ( TESTCASE_ID INT NOT NULL, TESTCASE_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'TestCase Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), TESTCASE_STATE NVARCHAR(255), COMPONENT_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, TESTPLAN_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, TESTCASE_STATE_ID INT DEFAULT -1 NOT NULL, TEST_PRIORITY_ID INT DEFAULT -1 NOT NULL, IS_BLOCKING INT DEFAULT 0 NOT NULL, REGRESSION_TEST NVARCHAR(255), WEIGHT INT DEFAULT 0, LAST_UPDATED DATETIME, TESTCASE_FOLDER NVARCHAR(255), ESTIMATE INT , CREATION_DATE DATETIME, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  246. GO
  247.  
  248. CREATE TABLE RIODS.TESTCASE_TESTSCRIPT_LOOKUP ( TESTCASE_ID INT NOT NULL, TESTSCRIPT_ID INT NOT NULL ) ON VNF_32K
  249. GO
  250.  
  251. CREATE TABLE RIODS.TESTCASE_ITERATION_LOOKUP ( TESTCASE_ID INT NOT NULL, ITERATION_ID INT NOT NULL ) ON VNF_32K
  252. GO
  253.  
  254. CREATE TABLE RIODS.REQUIREMENT_TESTCASE_LOOKUP ( REQUIREMENT_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) DEFAULT 'Unassigned' NOT NULL ) ON VNF_32K
  255. GO
  256.  
  257. CREATE TABLE RIODS.REQUIREMENT_TESTPLAN_LOOKUP ( REQUIREMENT_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL ) ON VNF_32K
  258. GO
  259.  
  260. CREATE TABLE RIODS.REQUIREMENT_TESTSUITE_LOOKUP ( REQUIREMENT_ID INT NOT NULL, TESTSUITE_ID INT NOT NULL ) ON VNF_32K
  261. GO
  262.  
  263. CREATE TABLE RIODS.REQUIREMENT_REQUIREMENT_LOOKUP ( REQUIREMENT_ID INT NOT NULL, CREQUIREMENT_ID INT NOT NULL ) ON VNF_32K
  264. GO
  265.  
  266. CREATE TABLE RIODS.REQUIREMENT_HIERARCHY ( PRED_REQUIREMENT_ID INT NOT NULL, SUCC_REQUIREMENT_ID INT NOT NULL, LINK_TYPE NVARCHAR(255), LINK_TYPE_ID INT DEFAULT -1 NOT NULL ) ON VNF_32K
  267. GO
  268.  
  269. CREATE TABLE RIODS.REQUEST_LINK ( PRED_REQUEST_ID INT NOT NULL, SUCC_REQUEST_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) ) ON VNF_32K
  270. GO
  271.  
  272. CREATE TABLE RIODS.EXECUTION_WORKITEM ( EXECWORKITEM_ID INT NOT NULL, EXECWORKIT_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'Execution Work Item Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), OWNER_ID INT DEFAULT -1 NOT NULL, CONFIGURATION_ID INT DEFAULT -1 NOT NULL, EXECUTION_WORKITEM_STATE NVARCHAR(255), PROJECT_ID INT DEFAULT -1 NOT NULL, TESTCASE_ID INT DEFAULT -1 NOT NULL, TESTTYPE_ID INT DEFAULT -1 NOT NULL, TESTPLAN_ID INT DEFAULT -1 NOT NULL, TESTSCRIPT_ID INT DEFAULT -1 NOT NULL, CURRENT_RESULT_ID INT DEFAULT -1 NOT NULL, TEST_PRIORITY_ID INT DEFAULT -1 NOT NULL, FREQUENCY NVARCHAR(255), REGRESSION NVARCHAR(255), WEIGHT INT DEFAULT 0, TAGS NVARCHAR(255), LAST_UPDATED DATETIME, PRIORITY NVARCHAR(255), CREATION_DATE DATETIME, ESTIMATE INT , TIMESPENT INT , URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT
  273. NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  274. GO
  275.  
  276. CREATE TABLE RIODS.EXECWORKITEM_ITERATION_LOOKUP ( EXECWORKITEM_ID INT NOT NULL, ITERATION_ID INT NOT NULL ) ON VNF_32K
  277. GO
  278.  
  279. CREATE TABLE RIODS.REQUIREMENT_EXECWRKITEM_LOOKUP ( REQUIREMENT_ID INT NOT NULL, EXECWORKITEM_ID INT NOT NULL ) ON VNF_32K
  280. GO
  281.  
  282. CREATE TABLE RIODS.EXECWORKITEM_TESTSUITE_LOOKUP ( EXECWORKITEM_ID INT NOT NULL, TESTSUITE_ID INT NOT NULL ) ON VNF_32K
  283. GO
  284.  
  285. CREATE TABLE RIODS.REQUEST ( REQUEST_ID INT NOT NULL, REQUEST_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'Request Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, COMPONENT_ID INT DEFAULT -1 NOT NULL, BUILD_ID INT DEFAULT -1 NOT NULL, PROJECT_CATEGORY_ID INT DEFAULT -1 NOT NULL, PHASE_ID INT DEFAULT -1 NOT NULL, REQUEST_SEVERITY_ID INT DEFAULT -1 NOT NULL, REQUEST_STATE_ID INT DEFAULT -1 NOT NULL, REQUEST_PRIORITY_ID INT DEFAULT -1 NOT NULL, PLATFORM NVARCHAR(255), ITERATION_ID INT DEFAULT -1 NOT NULL, RELEASE_ID INT DEFAULT -1 NOT NULL, FIXEDINRELEASE_ID INT DEFAULT -1 NOT NULL, SLOC_CHANGE INT DEFAULT 0, OWNER_ID INT DEFAULT -1 NOT NULL, REQUEST_CATEGORY_ID INT DEFAULT -1 NOT NULL, TEAM_ID INT DEFAULT -1 NOT NULL, RESOLVER_ID INT DEFAULT -1 NOT NULL, IS_BLOCKING INT DEFAULT 0 NOT NULL, REQUEST_SOURCE NVARCHAR(255), CREATION_DATE DATETIME, CLOSED_DATE DATETIME, SUBMIT_DATE DATETIME, RESOLVED_DATE DATETIME, ASSIGNED_DATE DATETIME,
  286. DUPLICATE_DATE DATETIME, ACTIVATE_DATE DATETIME, DUE_DATE DATETIME, CREATOR_ID INT DEFAULT -1 NOT NULL, REQUEST_STATUS_ID INT DEFAULT -1 NOT NULL, CUSTOMER_PRIORITY NVARCHAR(255), REQUEST_RESOLUTION_ID INT DEFAULT -1 NOT NULL, REQUEST_TYPE_ID INT DEFAULT -1 NOT NULL, PLANNED_WORK INT , ACTUAL_WORK INT , COMMENT_COUNT INT , SUBSCRIBER_COUNT INT , STORY_POINTS INT , TAGS NVARCHAR (255), SUMMARY NVARCHAR (1000), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  287. GO
  288.  
  289. CREATE TABLE RIODS.REQUEST_CLASSIFICATION ( REQUEST_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Request Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  290. GO
  291.  
  292. CREATE TABLE RIODS.REQUEST_STATE ( REQUEST_STATE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Request State Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  293. GO
  294.  
  295. CREATE TABLE RIODS.REQUEST_STATUS ( REQUEST_STATUS_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Request Status Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  296. GO
  297.  
  298. CREATE TABLE RIODS.REQUEST_PRIORITY ( REQUEST_PRIORITY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Request Status Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  299. GO
  300.  
  301. CREATE TABLE RIODS.REQUEST_SEVERITY ( REQUEST_SEVERITY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Request Status Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  302. GO
  303.  
  304. CREATE TABLE RIODS.REQUEST_RESOLUTION ( REQUEST_RESOLUTION_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Request Status Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  305. GO
  306.  
  307. CREATE TABLE RIODS.REQUEST_TYPE ( REQUEST_TYPE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Request Status Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  308. GO
  309.  
  310. CREATE TABLE RIODS.REQUIREMENT_CLASSIFICATION ( REQUIREMENT_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Requirement Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  311. GO
  312.  
  313. CREATE TABLE RIODS.REQUEST_STATE_HISTORY ( REQUEST_STATE_HISTORY_ID INT NOT NULL, REQUEST_ID INT NOT NULL, PREV_REQUEST_STATE_ID INT DEFAULT -1 NOT NULL, REQUEST_STATE_ID INT DEFAULT -1 NOT NULL, PREV_REQUEST_STATUS_ID INT DEFAULT -1 NOT NULL, REQUEST_STATUS_ID INT DEFAULT -1 NOT NULL, CHANGE_DATE DATETIME DEFAULT GETDATE() NOT NULL, DAYS_IN_STATE INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  314. GO
  315.  
  316. CREATE TABLE RIODS.REQUEST_HIERARCHY ( PARENT_REQUEST_ID INT NOT NULL, CHILD_REQUEST_ID INT NOT NULL ) ON VNF_32K
  317. GO
  318.  
  319. CREATE TABLE RIODS.FILE_VERSION ( FILE_VERSION_ID INT DEFAULT -1 NOT NULL, FILE_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'File Version Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), FILE_ID INT DEFAULT -1 NOT NULL, CREATION_DATE DATETIME NOT NULL, NUM_SLOC INT DEFAULT 0 NOT NULL, NUM_SLOC_CHANGED INT DEFAULT 0 NOT NULL, AUTHOR_ID INT DEFAULT -1 NOT NULL, ACTIVITY_ID INT DEFAULT -1 NOT NULL, FILE_STREAM_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, HASCOMMENT SMALLINT DEFAULT 0 NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL ) ON VNF_32K
  320. GO
  321.  
  322. CREATE TABLE RIODS.[FILE] ( FILE_ID INT NOT NULL, FILE_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'File Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), COMPONENT_ID INT DEFAULT -1 NOT NULL, NUM_SLOC INT DEFAULT 0 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL ) ON VNF_32K
  323. GO
  324.  
  325. CREATE TABLE RIODS.FILE_BASELINE ( FILE_BASELINE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'File_Baseline Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), COMPONENT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  326. GO
  327.  
  328. CREATE TABLE RIODS.FILE_BASELINE_ACTIVITY_LOOKUP (FILE_BASELINE_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL) ON VNF_32K
  329. GO
  330.  
  331. CREATE TABLE RIODS.FILE_STREAM ( FILE_STREAM_ID INT NOT NULL, FILE_STREAM_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'File_Stream Name Missing' NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  332. GO
  333.  
  334. CREATE TABLE RIODS.CONFIG_EXECUTIONRES_LOOKUP ( CONFIGURATION_ID INT NOT NULL, EXECUTION_RESULT_ID INT NOT NULL ) ON VNF_32K
  335. GO
  336.  
  337. CREATE TABLE RIODS.TESTSUITELOG ( TESTSUITELOG_ID INT NOT NULL, TESTSUITELOG_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'Test Suite Log Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), VERDICT NVARCHAR(255), TESTSUITE_ID INT DEFAULT -1 NOT NULL, BUILD_ID INT DEFAULT -1 NOT NULL, ITERATION_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, TESTPLAN_ID INT DEFAULT -1 NOT NULL, TESTSUITE_EXECRECORD_ID INT DEFAULT -1 NOT NULL, TESTSUITELOG_STATE_ID INT DEFAULT -1 NOT NULL, WEIGHT INT , POINTS_PASSED INT , POINTS_FAILED INT , POINTS_BLOCKED INT , POINTS_INCONCLUSIVE INT , POINTS_ATTEMPTED INT , POINTS_PERMFAILED INT , POINTS_DEFERRED INT, START_DATE DATETIME, END_DATE DATETIME, TOTAL_TESTCASE_COUNT INTEGER, NOTSTARTED_TESTCASE_COUNT INTEGER, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED
  338. SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  339. GO
  340.  
  341. CREATE TABLE RIODS.TESTSUITELOG_EXECRESULT_LOOKUP ( TESTSUITELOG_ID INT NOT NULL, EXECUTION_RESULT_ID INT NOT NULL ) ON VNF_32K
  342. GO
  343.  
  344. CREATE TABLE RIODS.TASK_REQUEST_LOOKUP ( TASK_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VNF_32K
  345. GO
  346.  
  347. CREATE TABLE RIODS.REQUIREMENT_REQUEST_LOOKUP ( REQUIREMENT_ID INT NOT NULL, REQUEST_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) DEFAULT 'Unassigned' NOT NULL ) ON VNF_32K
  348. GO
  349.  
  350. CREATE TABLE RIODS.REQUEST_CUSTOMER_LOOKUP ( REQUEST_ID INT NOT NULL, CUSTOMER_ID INT NOT NULL ) ON VNF_32K
  351. GO
  352.  
  353. CREATE TABLE RIODS.REQUIREMENT_CUSTOMER_LOOKUP ( REQUIREMENT_ID INT NOT NULL, CUSTOMER_ID INT NOT NULL ) ON VNF_32K
  354. GO
  355.  
  356. CREATE TABLE RIODS.EXECRES_REQUEST_LOOKUP ( REQUEST_ID INT NOT NULL, EXECUTION_RESULT_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) DEFAULT 'Unassigned' NOT NULL ) ON VNF_32K
  357. GO
  358.  
  359. CREATE TABLE RIODS.RISK ( RISK_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Risk Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, REQUIREMENT_ID INT DEFAULT -1 NOT NULL, PRIORITY NVARCHAR(255), RISK_STATE NVARCHAR(255), OCCURED_DATETIME DATETIME, IMPACT INT, IMPACT_RANK NVARCHAR(255), PROBABILITY INT, PROBABILITY_RANK NVARCHAR(255), OWNER_ID INT DEFAULT -1 NOT NULL, RELEASE_ID INT DEFAULT -1 NOT NULL, ITERATION_ID INT DEFAULT -1 NOT NULL, TARGET_DATE DATETIME, CREATION_DATE DATETIME, CLOSE_DATE DATETIME, IMPACT_CATEGORY NVARCHAR(255), CONSEQUENCE_COST DECIMAL(18,2), PROBABILITY_COST DECIMAL(18,2), RISK_SCORE DECIMAL(18,2), RISK_MANAGEMENT_ACTION NVARCHAR(255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  360. GO
  361.  
  362. CREATE TABLE RIODS.RISK_STATE_HISTORY ( RISK_STATE_HISTORY_ID INT NOT NULL, RISK_ID INT NOT NULL, PREV_RISK_STATE NVARCHAR(255), RISK_STATE NVARCHAR(255), CHANGE_DATE DATETIME DEFAULT GETDATE() NOT NULL, DAYS_IN_STATE INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  363. GO
  364.  
  365. CREATE TABLE RIODS.FACTOR ( FACTOR_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Factor Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), RISK_ID INT DEFAULT -1 NOT NULL, MITIGATION_COST DECIMAL(18 , 2), PRIORITY NVARCHAR(255), DESCRIPTION NVARCHAR(255), WEIGHT INT , PROBABILITY INT , PROBABILITY_RANK NVARCHAR(255), MITIGATION_ACTION NVARCHAR(255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  366. GO
  367.  
  368. CREATE TABLE RIODS.PROJECT_BASELINE ( BASELINE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Project_Baseline Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), OWNER_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, FILE_STREAM_ID INT DEFAULT -1 NOT NULL, BASELINE_DATE DATETIME, PLANNED_START DATETIME , PLANNED_FINISH DATETIME , PLANNED_WORK INT , BASELINE_WORK_COMPLETED INT , PLANNED_COST DECIMAL(18 , 2), BASELINE_COST_COMPLETED DECIMAL(18 , 2), PLANNED_DURATION INT, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(80) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  369. GO
  370.  
  371. CREATE TABLE RIODS.PROJ_BASELINE_BASELINE_LOOKUP ( BASELINE_ID INT NOT NULL, COMPBASELINE_ID INT NOT NULL ) ON VNF_32K
  372. GO
  373.  
  374. CREATE TABLE RIODS.COMMENT ( COMMENT_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), RESPONSE_COMMENT_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, REQUEST_ID INT DEFAULT -1 NOT NULL, TASK_ID INT DEFAULT -1 NOT NULL, ACTIVITY_ID INT DEFAULT -1 NOT NULL, CREATION_DATE DATETIME, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  375. GO
  376.  
  377. CREATE TABLE RIODS.ACTIVITY_DETAIL ( ACTIVITY_ID INT DEFAULT -1 NOT NULL, PLANNED_START DATETIME , PLANNED_FINISH DATETIME , BASELINE_START DATETIME , ACTUAL_START DATETIME , BASELINE_FINISH DATETIME , ACTUAL_FINISH DATETIME , START_VARIANCE INT , FINISH_VARIANCE INT , PLANNED_WORK INT , BASELINE_WORK INT , REGULAR_WORK INT , ACTUAL_WORK INT , REMAINING_WORK INT , PLANNED_COST DECIMAL(18 , 2), BASELINE_COST DECIMAL(18 , 2), ACTUAL_COST DECIMAL(18 , 2), REMAINING_COST DECIMAL(18 , 2), PLANNED_OVT_WORK DECIMAL(18 , 2), ACTUAL_OVT_WORK DECIMAL(18 , 2), REMAINING_OVT_WORK DECIMAL(18 , 2), ACTUAL_OVT_COST DECIMAL(18 , 2), REMAINING_OVT_COST DECIMAL(18 , 2), UNITS INT , DELAY INT , ACWP DOUBLE PRECISION, BCWP DOUBLE PRECISION, BCWS DOUBLE PRECISION, EAC DOUBLE PRECISION, RESOURCE_TYPE NCHAR(18), IS_OVERALLOCATED SMALLINT, IS_CONFIRMED SMALLINT, PERCENT_COMPLETE DECIMAL(5 , 2), PERCENT_WORK_COMPLETE DECIMAL(5 , 2), PLANNED_DURATION INT , ACTUAL_DURATION INT ) ON VNF_32K
  378. GO
  379.  
  380. CREATE TABLE RIODS.EXECRES_EXECWKITEM_LOOKUP ( EXECUTION_RESULT_ID INT NOT NULL, EXECWORKITEM_ID INT NOT NULL ) ON VNF_32K
  381. GO
  382.  
  383. CREATE TABLE RIODS.CONFIG_EXECUTIONWORKITM_LOOKUP ( CONFIGURATION_ID INT NOT NULL, EXECWORKITEM_ID INT NOT NULL ) ON VNF_32K
  384. GO
  385.  
  386. CREATE TABLE RIODS.TEST_CATEGORY ( TEST_CATEGORY_ID INT NOT NULL, NAME NVARCHAR (255) DEFAULT 'Test Category Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), TERM NVARCHAR (255), VALUE NVARCHAR (255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  387. GO
  388.  
  389. CREATE TABLE RIODS.TESTPLAN_CATEGORY_LOOKUP ( TEST_CATEGORY_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL ) ON VNF_32K
  390. GO
  391.  
  392. CREATE TABLE RIODS.TESTCASE_CATEGORY_LOOKUP ( TEST_CATEGORY_ID INT NOT NULL, TESTCASE_ID INT NOT NULL ) ON VNF_32K
  393. GO
  394.  
  395. CREATE TABLE RIODS.TESTSUITE_TESTCASE_LOOKUP ( TESTCASE_ID INT NOT NULL, TESTSUITE_ID INT NOT NULL ) ON VNF_32K
  396. GO
  397.  
  398. CREATE TABLE RIODS.TESTSUITE_TESTSUITELOG_LOOKUP ( TESTSUITE_ID INT NOT NULL, TESTSUITELOG_ID INT NOT NULL ) ON VNF_32K
  399. GO
  400.  
  401. CREATE TABLE RIODS.TESTPLAN_TESTPLAN_HIERARCHY ( PARENT_TESTPLAN_ID INT NOT NULL, CHILD_TESTPLAN_ID INT NOT NULL ) ON VNF_32K
  402. GO
  403.  
  404. CREATE TABLE RIODS.TESTPLAN_TESTCASE_LOOKUP ( TESTPLAN_ID INT NOT NULL, TESTCASE_ID INT NOT NULL) ON VNF_32K
  405. GO
  406.  
  407. CREATE TABLE RIODS.LAB_RESOURCE ( LAB_RESOURCE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Missing Lab Resource Name' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), LAB_RESOURCE_TYPE NVARCHAR(255), LAB_RESOURCE_NAME NVARCHAR(255), MEMORY INT , IP_ADDRESS NVARCHAR(40), PRIMARY_MAC_ADDRESS NCHAR(18), ADMINISTRATIVE_STATUS NVARCHAR(255), OPERATIONAL_STATUS NVARCHAR(255), HOSTNAME NVARCHAR(255), FULLY_QUALIFIED_DOMAIN_NAME NVARCHAR(255), OS_TYPE NVARCHAR(255), OS_LOCALE NVARCHAR(255), OS_KERNEL_WIDTH NVARCHAR(255), CPU_SPEED INT , CPU_ARCHITECTURE NVARCHAR(255), CPU_ARCHITECTURE_WIDTH NVARCHAR(255), CPU_MANUFACTURER NVARCHAR(255), CPU_TYPE NVARCHAR(255), DISK_SPACE INT , SOFTWARE NVARCHAR(255), RESOURCE_GROUP_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT
  408. DEFAULT 0 NOT NULL ) ON VNF_32K
  409. GO
  410.  
  411. CREATE TABLE RIODS.RESOURCE_GROUP ( RESOURCE_GROUP_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Missing Resource Group Name' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, IS_EXPIREABLE NVARCHAR(255), START_DATE DATETIME, EXPIRATION_DATE DATETIME, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  412. GO
  413.  
  414. CREATE TABLE RIODS.RESERVATION ( RESERVATION_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Missing Reservation Name' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), RESERVED_FOR NVARCHAR(255), RESERVED_BY NVARCHAR(255), RESERVE_TO DATETIME, RESERVE_FROM DATETIME, LAB_RESOURCE_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  415. GO
  416.  
  417. CREATE TABLE RIODS.TESTCASE_CLASSIFICATION ( TESTCASE_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Testcase Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  418. GO
  419.  
  420. CREATE TABLE RIODS.TESTPLAN_CLASSIFICATION ( TESTPLAN_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Testplan Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  421. GO
  422.  
  423. CREATE TABLE RIODS.TESTSUITE_CLASSIFICATION ( TESTSUITE_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Testsuite Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  424. GO
  425.  
  426. CREATE TABLE RIODS.TESTSUITELOG_CLASSIFICATION ( TESTSUITELOG_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Testsuitelog Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  427. GO
  428.  
  429. CREATE TABLE RIODS.EXECRESULT_CLASSIFICATION ( EXECRES_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Execution Result Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  430. GO
  431.  
  432. CREATE TABLE RIODS.EXECWORKITEM_CLASSIFICATION ( EXECWORKIT_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Execution Work Item Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  433. GO
  434.  
  435. CREATE TABLE RIODS.CONFIGURATION_CLASSIFICATION ( CONFIGURATION_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Configuration Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  436. GO
  437.  
  438. CREATE TABLE RIODS.ACTIVITY_STATE_HISTORY ( ACTIVITY_STATE_HISTORY_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL, PREV_ACTIVITY_STATE NVARCHAR(255), ACTIVITY_STATE NVARCHAR(255), CHANGE_DATE DATETIME DEFAULT GETDATE() NOT NULL, DAYS_IN_STATE INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  439. GO
  440.  
  441. CREATE TABLE RIODS.REQUEST_CATEGORY ( REQUEST_CATEGORY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Request Category Name Missing' NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  442. GO
  443.  
  444. CREATE TABLE RIODS.FILE_CLASSIFICATION ( FILE_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'File Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  445. GO
  446.  
  447. CREATE TABLE RIODS.FILE_STREAM_CLASSIFICATION ( FILE_STREAM_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'File Stream Class Name Missing' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  448. GO
  449.  
  450. CREATE TABLE RIODS.TASK_STATE_HISTORY ( TASK_STATE_HISTORY_ID INT NOT NULL, TASK_ID INT NOT NULL, PREV_TASK_STATE NVARCHAR(255), TASK_STATE NVARCHAR(255), CHANGE_DATE DATETIME DEFAULT GETDATE() NOT NULL, DAYS_IN_STATE INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  451. GO
  452.  
  453. CREATE TABLE RIODS.REQUEST_CHANGE_HISTORY ( REQCHANGE_HISTORY_ID INT NOT NULL, REQUEST_CLASS_ID INT DEFAULT -1 NOT NULL, REQUEST_ID INT DEFAULT -1 NOT NULL, PREV_TEAM_ID INT DEFAULT -1 NOT NULL, PREV_REQUEST_CATEGORY_ID INT DEFAULT -1 NOT NULL, PREV_ITERATION_ID INT DEFAULT -1 NOT NULL, PREV_OWNER_ID INT DEFAULT -1 NOT NULL, CHANGE_DATE DATETIME, PREV_REQUEST_TYPE_ID INT DEFAULT -1 NOT NULL, PREV_REQUEST_STATE_ID INT DEFAULT -1 NOT NULL, PREV_REQUEST_STATUS_ID INT DEFAULT -1 NOT NULL, PREV_REQUEST_PRIORITY_ID INT DEFAULT -1 NOT NULL, PREV_REQUEST_SEVERITY_ID INT DEFAULT -1 NOT NULL, PREV_COMMENT_COUNT INT , PREV_SUBSCRIBER_COUNT INT , PREV_TAGS NVARCHAR (255), PREV_PLANNED_WORK INT , PREV_ACTUAL_WORK INT , PREV_STORY_POINTS INT , PREV_SUMMARY NVARCHAR (1000), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON
  454. VNF_32K
  455. GO
  456.  
  457. CREATE TABLE RIODS.TIMESHEET ( TIMESHEET_ID INT NOT NULL, TIMESHEET_REPORTING_WEEK DATETIME , REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), ACTIVITY_ID INT DEFAULT -1 NOT NULL, ADDITIONAL_WORK INT , BILLABLE_HOURS INT , NON_BILLABLE_HOURS INT , APPROVER_ID INT DEFAULT -1 NOT NULL, TIMESHEET_STATE NVARCHAR(255), PERCENT_COMPLETE DECIMAL(18 , 2), LAST_APPROVAL_DATE DATETIME , REGULAR_TIME INT , OVERTIME INT , MONDAY_DATE DATETIME , TUESDAY_DATE DATETIME , WEDNESDAY_DATE DATETIME , THURSDAY_DATE DATETIME , FRIDAY_DATE DATETIME , SATURDAY_DATE DATETIME , SUNDAY_DATE DATETIME , MONDAY_REGULAR_TIME INT DEFAULT 0, TUESDAY_REGULAR_TIME INT DEFAULT 0, WEDNESDAY_REGULAR_TIME INT DEFAULT 0, THURSDAY_REGULAR_TIME INT DEFAULT 0, FRIDAY_REGULAR_TIME INT DEFAULT 0, SATURDAY_REGULAR_TIME INT DEFAULT 0, SUNDAY_REGULAR_TIME INT DEFAULT 0, MONDAY_OVT INT DEFAULT 0, TUESDAY_OVT INT DEFAULT 0, WEDNESDAY_OVT INT DEFAULT 0, THURSDAY_OVT INT DEFAULT 0, FRIDAY_OVT INT DEFAULT 0, SATURDAY_OVT INT DEFAULT 0, SUNDAY_OVT INT
  458. DEFAULT 0, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  459. GO
  460.  
  461. CREATE TABLE RIODS.PROFILE ( PROFILE_ID INT NOT NULL, NAME NVARCHAR(50) DEFAULT 'Profile Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), RATE DECIMAL(18 , 2), CREATION_DATE DATETIME , EXPERIENCE_IN_MONTHS INT , CITY_ID INT DEFAULT -1 NOT NULL, ORGANIZATION_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  462. GO
  463.  
  464. CREATE TABLE RIODS.PROFILE_SKILL_LOOKUP ( PROFILE_ID INT NOT NULL, SKILL_ID INT NOT NULL ) ON VNF_32K
  465. GO
  466.  
  467. CREATE TABLE RIODS.PROFILE_COMPETENCY_LOOKUP ( PROFILE_ID INT NOT NULL, COMPETENCY_ID INT NOT NULL ) ON VNF_32K
  468. GO
  469.  
  470. CREATE TABLE RIODS.CHARGECODE( CHARGECODE_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Charge Code Name Missing' NOT NULL, PARENT_CHARGECODE_ID INT DEFAULT -1 NOT NULL, CHARGECODE_STATE NVARCHAR(255), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  471. GO
  472.  
  473. CREATE TABLE RIODS.TIMECODE( TIMECODE_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Charge Code Name Missing' NOT NULL, PARENT_TIMECODE_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  474. GO
  475.  
  476. CREATE TABLE RIODS.TIMESHEET_TIMECODE_LOOKUP ( TIMESHEET_ID INT NOT NULL, TIMECODE_ID INT NOT NULL ) ON VNF_32K
  477. GO
  478.  
  479. CREATE TABLE RIODS.BUILD_COMPILATION_RESULT ( BUILD_COMPRES_ID INT NOT NULL, BUILD_ID INT DEFAULT -1 NOT NULL, COMPONENT_ID INT DEFAULT -1 NOT NULL, COMPILE_ERROR_COUNT INT , COMPILE_WARNING_COUNT INT , URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  480. GO
  481.  
  482. CREATE TABLE RIODS.BUILD_UNIT_RESULT ( BUILD_UNITRES_ID INT NOT NULL, BUILD_ID INT DEFAULT -1 NOT NULL, COMPONENT_ID INT DEFAULT -1 NOT NULL, UNIT_TEST_COUNT INT , UNIT_FAILURE_COUNT INT , UNIT_ERROR_COUNT INT , URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  483. GO
  484.  
  485. CREATE TABLE RIODS.BUILD_UNIT_EVENT ( BUILD_UNIT_EVENT_ID INT NOT NULL, BUILD_ID INT DEFAULT -1 NOT NULL, COMPONENT_ID INT DEFAULT -1 NOT NULL, UNIT_EVENT NVARCHAR(255), UNIT_TEST NVARCHAR(255), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  486. GO
  487.  
  488. CREATE TABLE RIODS.UNIT_TEST_RESULT ( UNIT_TEST_RESULT_ID INT NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, TEAM_ID INT DEFAULT -1 NOT NULL, BUILD_TYPE NVARCHAR(255), COMPONENT_ID INT DEFAULT -1 NOT NULL, UNIT_EVENT NVARCHAR(255), UNIT_TEST NVARCHAR(255), UNIT_COUNT INT , URL NVARCHAR(2048), LAST_RUN_DATE DATETIME, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  489. GO
  490.  
  491. CREATE TABLE RIODS.JOB ( JOB_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Job Name Missing' NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  492. GO
  493.  
  494. CREATE TABLE RIODS.JOB_RESULT( JOB_RESULT_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Job Result Name Missing' NOT NULL, STATE NVARCHAR(255), VERDICT NVARCHAR(255), START_TIME DATETIME, END_TIME DATETIME, DURATION INT , LAB_RESOURCE_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, JOB_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  495. GO
  496.  
  497. CREATE TABLE RIODS.TESTSCRIPT( TESTSCRIPT_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Test Script Name Missing' NOT NULL, LAST_UPDATED DATETIME, TESTSCRIPT_STATE NVARCHAR(255), TYPE NVARCHAR(255), OWNER_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, TESTSCRIPT_STATE_ID INT DEFAULT -1 NOT NULL, CREATION_DATE DATETIME, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  498. GO
  499.  
  500. CREATE TABLE RIODS.PORTFOLIO( PORTFOLIO_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Portfolio Name Missing' NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  501. GO
  502.  
  503. CREATE TABLE RIODS.PORTFOLIO_PROG_PROJ_LOOKUP( PORTFOLIO_ID INT NOT NULL, PROGRAM_ID INT NOT NULL, PROJECT_ID INT NOT NULL ) ON VNF_32K
  504. GO
  505.  
  506. CREATE TABLE RIODS.REQUEST_TESTCASE_LOOKUP ( REQUEST_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) DEFAULT 'Unassigned' NOT NULL ) ON VNF_32K
  507. GO
  508.  
  509. CREATE TABLE RIODS.PROJECT_RESOURCE_LOOKUP ( PROJECT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL )ON VNF_32K
  510. GO
  511.  
  512. CREATE TABLE RIODS.RISK_REQUEST_LOOKUP ( RISK_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VNF_32K
  513. GO
  514.  
  515. CREATE TABLE RIODS.TESTSUITE_CATEGORY_LOOKUP ( TESTSUITE_ID INT NOT NULL, TEST_CATEGORY_ID INT NOT NULL ) ON VNF_32K
  516. GO
  517.  
  518. CREATE TABLE RIODS.TESTSUITE_TESTPLAN_LOOKUP ( TESTSUITE_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL ) ON VNF_32K
  519. GO
  520.  
  521. CREATE TABLE RIODS.TESTSUITE_EXECUTION_RECORD ( TESTSUITE_EXECRECORD_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Test Suite Execution Record Name Missing' NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, CREATOR_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, TESTSUITE_ID INT DEFAULT -1 NOT NULL, TESTPLAN_ID INT DEFAULT -1 NOT NULL, ITERATION_ID INT DEFAULT -1 NOT NULL, CONFIGURATION_ID INT DEFAULT -1 NOT NULL, TEST_PRIORITY_ID INT DEFAULT -1 NOT NULL, CURRENT_SUITELOG_ID INT DEFAULT -1 NOT NULL, WEIGHT INT , CREATION_DATE DATETIME, LAST_UPDATED DATETIME, ISSEQUENTIAL INT , ESTIMATE INT , TIMESPENT INT , EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  522. GO
  523.  
  524. CREATE TABLE RIODS.EXECWORKITEM_REQUEST_LOOKUP ( EXECWORKITEM_ID INT NOT NULL, REQUEST_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) DEFAULT 'Unassigned' NOT NULL ) ON VNF_32K
  525. GO
  526.  
  527. CREATE TABLE RIODS.EXECUTION_STEP_RESULT ( EXECUTION_STEP_RESULT_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Test Suite Execution Step Name Missing' NOT NULL, EXECUTION_RESULT_ID INT DEFAULT -1 NOT NULL, STEP_TYPE NVARCHAR(255), DESCRIPTION NVARCHAR(255), EXPECTED_RESULT NVARCHAR(255), ACTUAL_RESULT NVARCHAR(255), RESULT NVARCHAR(255), START_TIME DATETIME, END_TIME DATETIME, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  528. GO
  529.  
  530. CREATE TABLE RIODS.EXECSTEPRES_REQUEST_LOOKUP ( EXECUTION_STEP_RESULT_ID INT NOT NULL, REQUEST_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) DEFAULT 'Unassigned' NOT NULL ) ON VNF_32K
  531. GO
  532.  
  533. CREATE TABLE RIODS.TESTSUITE_ELEMENT ( TESTSUITE_ELEMENT_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Test Suite Element Name Missing' NOT NULL, TESTSUITE_ID INT DEFAULT -1 NOT NULL, TESTCASE_ID INT DEFAULT -1 NOT NULL, CONFIGURATION_ID INT DEFAULT -1 NOT NULL, TESTSCRIPT_ID INT DEFAULT -1 NOT NULL, OWNER_ID INT DEFAULT -1 NOT NULL, ELEMENT_INDEX INT, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  534. GO
  535.  
  536. CREATE TABLE RIODS.REQUIREMENT_LINK_TYPE ( LINK_TYPE_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Link Type Name Missing' NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, PRED_REQUIREMENT_LINK_LABEL NVARCHAR(255), SUCC_REQUIREMENT_LINK_LABEL NVARCHAR(255), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  537. GO
  538.  
  539. CREATE TABLE RIODS.REQUEST_RELATIONAL_LINK ( REQUEST_RELATION_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Relation Link Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), REQUEST1_ID INT NOT NULL, REQUEST2_ID INT NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  540. GO
  541.  
  542. CREATE TABLE RIODS.REQUEST_TYPE_BINDING ( REQUEST_TYPE_BINDING_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Request Type Binding Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, REQUEST_TYPE_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  543. GO
  544.  
  545. CREATE TABLE RIODS.TESTSCRIPT_CATEGORY_LOOKUP ( TESTSCRIPT_ID INT NOT NULL, TEST_CATEGORY_ID INT NOT NULL ) ON VNF_32K
  546. GO
  547.  
  548. CREATE TABLE RIODS.EXECWORKITEM_CATEGORY_LOOKUP ( EXECWORKITEM_ID INT NOT NULL, TEST_CATEGORY_ID INT NOT NULL ) ON VNF_32K
  549. GO
  550.  
  551. CREATE TABLE RIODS.TSTSUITEXECREC_CATEGORY_LOOKUP ( TESTSUITE_EXECRECORD_ID INT NOT NULL, TEST_CATEGORY_ID INT NOT NULL ) ON VNF_32K
  552. GO
  553.  
  554. CREATE TABLE RIODS.EXECRESULT_CATEGORY_LOOKUP ( EXECUTION_RESULT_ID INT NOT NULL, TEST_CATEGORY_ID INT NOT NULL ) ON VNF_32K
  555. GO
  556.  
  557. CREATE TABLE RIODS.TESTSUITELOG_CATEGORY_LOOKUP ( TESTSUITELOG_ID INT NOT NULL, TEST_CATEGORY_ID INT NOT NULL ) ON VNF_32K
  558. GO
  559.  
  560. CREATE TABLE RIODS.REQUEST_TESTPLAN_LOOKUP ( REQUEST_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) DEFAULT 'Unassigned' NOT NULL ) ON VNF_32K
  561. GO
  562.  
  563. CREATE TABLE RIODS.REQUEST_TESTSCRIPT_LOOKUP ( REQUEST_ID INT NOT NULL, TESTSCRIPT_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) DEFAULT 'Unassigned' NOT NULL ) ON VNF_32K
  564. GO
  565.  
  566. CREATE TABLE RIODS.REQUEST_TESTSUITE_LOOKUP ( REQUEST_ID INT NOT NULL, TESTSUITE_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) DEFAULT 'Unassigned' NOT NULL ) ON VNF_32K
  567. GO
  568.  
  569. CREATE TABLE RIODS.TEST_STATUS ( TEST_STATUS_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Test Status Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  570. GO
  571.  
  572. CREATE TABLE RIODS.TESTSUITE_STATE ( TESTSUITE_STATE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Test Suite State Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, TEST_STATUS_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  573. GO
  574.  
  575. CREATE TABLE RIODS.TESTSUITELOG_STATE ( TESTSUITELOG_STATE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Test Suite Log State Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, TEST_STATUS_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  576. GO
  577.  
  578. CREATE TABLE RIODS.EXECRESULT_STATE ( EXECRESULT_STATE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Execution Result State Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, TEST_STATUS_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  579. GO
  580.  
  581. CREATE TABLE RIODS.TESTCASE_STATE ( TESTCASE_STATE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Test Case State Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, TEST_STATUS_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  582. GO
  583.  
  584. CREATE TABLE RIODS.TESTPLAN_STATE ( TESTPLAN_STATE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Test Plan State Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, TEST_STATUS_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  585. GO
  586.  
  587. CREATE TABLE RIODS.TESTSCRIPT_STATE ( TESTSCRIPT_STATE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Test Script State Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, TEST_STATUS_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  588. GO
  589.  
  590. CREATE TABLE RIODS.TIMELINE ( TIMELINE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Project Timeline Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, STATUS NVARCHAR(255), START_DATE DATETIME, END_DATE DATETIME, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  591. GO
  592.  
  593. CREATE TABLE RIODS.REQUIREMENT_TESTSCRIPT_LOOKUP( REQUIREMENT_ID INT NOT NULL, TESTSCRIPT_ID INT NOT NULL, LINK_TYPE_NAME NVARCHAR(255) NOT NULL ) ON VNF_32K
  594. GO
  595.  
  596. CREATE TABLE RIODS.TEST_PRIORITY ( TEST_PRIORITY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Test Priority Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  597. GO
  598.  
  599. CREATE TABLE RIODS.M_PROJECT ( MAP_KEY1 INT , MAP_KEY2 NVARCHAR(255), TARGET_PROJECT_ID INT NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  600. GO
  601.  
  602. CREATE TABLE RIODS.M_PRODUCT ( MAP_KEY1 INT , MAP_KEY2 NVARCHAR(255), TARGET_PRODUCT_ID INT NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  603. GO
  604.  
  605. CREATE TABLE RIODS.M_COMPONENT ( MAP_KEY1 INT , MAP_KEY2 NVARCHAR(255), TARGET_COMPONENT_ID INT NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  606. GO
  607.  
  608. CREATE TABLE RIODS.M_ITERATION ( MAP_KEY1 INT , MAP_KEY2 NVARCHAR(255), TARGET_ITERATION_ID INT NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  609. GO
  610.  
  611. CREATE TABLE RIODS.M_RELEASE ( MAP_KEY1 INT , MAP_KEY2 NVARCHAR(255), TARGET_RELEASE_ID INT NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  612. GO
  613.  
  614. CREATE TABLE RIODS.M_RESOURCE ( MAP_KEY1 INT , MAP_KEY2 NVARCHAR(255), TARGET_RESOURCE_ID INT NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  615. GO
  616.  
  617. CREATE TABLE RIODS.TEMP_ITERATION ( NAME NVARCHAR(256) , SOURCE_ID NVARCHAR(36) ) ON VNF_32K
  618. GO
  619.  
  620. CREATE TABLE RIODS.TEMP_BUILD ( NAME NVARCHAR(256) , SOURCE_ID NVARCHAR(36) ) ON VNF_32K
  621. GO
  622.  
  623. CREATE TABLE RIODS.TEMP_RELEASE ( NAME NVARCHAR(256) , SOURCE_ID NVARCHAR(36) ) ON VNF_32K
  624. GO
  625.  
  626. CREATE TABLE RIODS.TEMP_PROJECT ( PROJECTUNIQUEID NVARCHAR(256), PROJECTNAME NVARCHAR(256), PROJECTDATECREATED DATETIME, PROJECTHREF NVARCHAR(2048), COMPONENTUNIQUEID NVARCHAR(256), STREAMUNIQUEID NVARCHAR(256), STREAMNAME NVARCHAR(256), STREAMHREF NVARCHAR(2048), ACTIVITYUNIQUEID NVARCHAR(256), ACTIVITYNAME NVARCHAR(256), ACTIVITYOWNER NVARCHAR(256), ACTIVITYSTATE NVARCHAR(256), ACTIVITYDATECREATED DATETIME, ACTIVITYHREF NVARCHAR(2048), VERSIONUNIQUEID NVARCHAR(256), DATASOURCE_ID NVARCHAR(36) ) ON VNF_32K
  627. GO
  628.  
  629. CREATE TABLE RIODS.TEMP_REQUEST_HISTORY ( HISTORY_DBID INT , HISTORY_UUID_DBID NVARCHAR(256), HISTORY_ACTION_TIMESTAMP DATETIME, DATASOURCE_ID NVARCHAR(36), HISTORY_OLD_STATE NVARCHAR(256), HISTORY_NEW_STATE NVARCHAR(256), DBID INT , DBID_UUID NVARCHAR(256), ENTITYDEF_ID INT ) ON VNF_32K
  630. GO
  631.  
  632. CREATE TABLE RIODS.TEMP_TEST_CATEGORY ( CATEGORY_VALUE NVARCHAR(255), CATEGORY_TERM NVARCHAR(255), DATASOURCE_ID NVARCHAR(36) ) ON VNF_32K
  633. GO
  634.  
  635. CREATE TABLE RIODS.TEMP_ACTIVITY_HISTORY ( HISTORY_DBID INT , HISTORY_ACTION_TIMESTAMP DATETIME, DATASOURCE_ID NVARCHAR(36), HISTORY_OLD_STATE NVARCHAR(256), HISTORY_NEW_STATE NVARCHAR(256), DBID INT ) ON VNF_32K
  636. GO
  637.  
  638. CREATE TABLE RIODS.TEMP_TASK_HISTORY ( HISTORY_DBID INT , HISTORY_ACTION_TIMESTAMP DATETIME, DATASOURCE_ID NVARCHAR(36), HISTORY_OLD_STATE NVARCHAR(256), HISTORY_NEW_STATE NVARCHAR(256), DBID INT ) ON VNF_32K
  639. GO
  640.  
  641. CREATE TABLE RIODS.TEMP_FILEVERSION ( CREATEDBY NVARCHAR(256), DATECREATED DATETIME, VERSIONNUMBER NVARCHAR(256), LINESOFCODE INT , BRANCH NVARCHAR(256), UNIQUEID NVARCHAR(256), CHANGESFROMPREDECESSOR INT , FILEELEMENTUNIQUEID NVARCHAR(256), FILEELEMENTNAME NVARCHAR(256), DATASOURCE_ID NVARCHAR(36) ) ON VNF_32K
  642. GO
  643.  
  644. CREATE TABLE RIODS.TEMP_COMPONENT ( COMPONENTNAME NVARCHAR(256), COMPONENTUNIQUEID NVARCHAR(256), COMPONENTHREF NVARCHAR(2048), FILEELEMENTUNIQUEID NVARCHAR(256), BASELINENAME NVARCHAR(256), BASELINEUNIQUEID NVARCHAR(256), BASELINEHREF NVARCHAR(2048), BASELINEACTIVITIESUNIQUEID NVARCHAR(256), DATASOURCE_ID NVARCHAR(36) ) ON VNF_32K
  645. GO
  646.  
  647. CREATE TABLE RIODS.TEMP_BASELINE ( BASELINE_ID NVARCHAR(256), NAME NVARCHAR(256), BASELINE_DATE DATETIME, PARENT_ID NVARCHAR(256), PARENT_TITLE NVARCHAR(256), PLANNED_SCHEDULE_ID NVARCHAR(256), PLANNED_START DATETIME , PLANNED_FINISH DATETIME , PLANNED_WORK INT , PLANNED_COST DECIMAL(18 , 2), PLANNED_DURATION INT , URL NVARCHAR(2048), BASELINE_TYPE NVARCHAR(255), DATASOURCE_ID NVARCHAR(36), ACTUAL_START DATETIME, ACTUAL_FINISH DATETIME, ACTUAL_WORK INT ) ON VNF_32K
  648. GO
  649.  
  650. CREATE TABLE RIODS.TEMP_CALENDAR ( IDREF NCHAR(40) NOT NULL , ADOPTED_CALENDAR NCHAR(40) , USER_IDREF NCHAR(40) , SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, HOURSPERDAY DECIMAL(5,2) ) ON VNF_32K
  651. GO
  652.  
  653. CREATE TABLE RIODS.TEMP_PROJECT_CALENDAR ( PROJECT_IDREF NCHAR(40) NOT NULL , CALENDAR_IDREF NCHAR(40) NOT NULL ) ON VNF_32K
  654. GO
  655.  
  656. CREATE TABLE RIODS.TEMP_RESOURCE_CALENDAR ( RESOURCE_ID INT NOT NULL , MINUTES_PER_DAY INT NOT NULL, SUNDAY_WORKTIME INT , MONDAY_WORKTIME INT , TUESDAY_WORKTIME INT , WEDNESDAY_WORKTIME INT , THURSDAY_WORKTIME INT , FRIDAY_WORKTIME INT , SATURDAY_WORKTIME INT ) ON VNF_32K
  657. GO
  658.  
  659. CREATE TABLE RIODS.TEMP_CAL_EXCEPTION_RANGE ( FROMDATE DATETIME , TODATE DATETIME , HOURSBLOCKED DECIMAL(5,2) , EXCEPTIONTYPE NVARCHAR(255) , DAYOFWEEK NVARCHAR(255) , DURATION INT , EFFORT INT , IDREF NCHAR(40) , CALENDAR_IDREF NCHAR(40) , DAYOFMONTH INT , MONTHOFYEAR INT , SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() ) ON VNF_32K
  660. GO
  661.  
  662. CREATE TABLE RIODS.TEMP_RESOURCE_CALENDAR_EXCEP( RESOURCE_ID INT NOT NULL, EXCEPTION_DATE DATETIME NOT NULL, EXCEPTION_MINUTES INT NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(80) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  663. GO
  664.  
  665. CREATE TABLE RIODS.TEMP_PROJECT_CALENDAR_EXCEP( PROJECT_ID INT NOT NULL, EXCEPTION_DATE DATETIME NOT NULL, EXCEPTION_MINUTES INT NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(80) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VNF_32K
  666. GO
  667.  
  668. CREATE TABLE RIODS.TEMP_POOL_HIERARCHY ( POOL_ID INT NOT NULL , LEVEL INT NOT NULL ) ON VNF_32K
  669. GO
  670.  
  671. CREATE TABLE RIODS.TEMP_REQUIREMENT( CREATED_ON DATETIME, CREATED_BY NVARCHAR (255), CREATED_BY_URL NVARCHAR (2048), REQUIREMENT_NAME NVARCHAR (255), IDENTIFIER NVARCHAR (255), LAST_MODIFIED_ON DATETIME, COMPONENT NVARCHAR (255), DIFFICULTY NVARCHAR (255), REQUIREMENT_TYPE NVARCHAR (255), ACTUAL_ITERATION NVARCHAR (255), CUSTOMER_PRIORITY NVARCHAR (255), PLANNED_ITERATION NVARCHAR (255), PLATFORM NVARCHAR (255), PRIORITY NVARCHAR (255), PROJECT_ID NVARCHAR (255), PROJECT_NAME NVARCHAR (255), PROJECT_URL NVARCHAR (2048), STABILITY NVARCHAR (255), STATE NVARCHAR (255), STATUS NVARCHAR (255), URL NVARCHAR (2048), DATASOURCE_ID NVARCHAR (255), CHILD_ID INT, PARENT_ID INT, SOURCE_ID NVARCHAR (255), TARGET_ID INT, DIFFICULTY2 NVARCHAR (255), DIFFICULTY3 NVARCHAR (255), PRIORITY2 NVARCHAR (255), STABILITY2 NVARCHAR (255), STATUS2 NVARCHAR (255), PRIORITY3 NVARCHAR (255), STABILITY3 NVARCHAR (255), STATUS3 NVARCHAR (255), REFERENCE_ID NVARCHAR(50), IMPLEMENTED_BY NVARCHAR(40), REQ_ARTIFACT NVARCHAR(40), INCOMING_LINK
  672. NVARCHAR(40), OUTGOING_LINK NVARCHAR(40), ORIGIN NVARCHAR(255), ORIGIN_TYPE NVARCHAR(255), IMPACT NVARCHAR(255), TARGET NVARCHAR(255) )ON VNF_32K
  673. GO
  674.  
  675. CREATE TABLE RIODS.TEMP_RESOURCE ( ID INT , STATE NVARCHAR(50) , PROJECT NVARCHAR(256) , ROW_ID NVARCHAR(20) , COLUMNID NVARCHAR(20) , VALUE NVARCHAR(20) , DATASOURCE_ID NVARCHAR(40) ) ON VNF_32K
  676. GO
  677.  
  678. CREATE TABLE RIODS.TEMP_REQUEST ( REQUEST_CLASS_ID INT DEFAULT -1 NOT NULL, NAME NVARCHAR(255) DEFAULT 'Request Name Missing' NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), PROJECT_ID INT DEFAULT -1 NOT NULL, COMPONENT_ID INT DEFAULT -1 NOT NULL, BUILD_ID INT DEFAULT -1 NOT NULL, PROJECT_CATEGORY_ID INT DEFAULT -1 NOT NULL, PHASE_ID INT DEFAULT -1 NOT NULL, SEVERITY NVARCHAR(255), REQUEST_STATE NVARCHAR(255), PRIORITY NVARCHAR(255), PLATFORM NVARCHAR(255), ITERATION_ID INT DEFAULT -1 NOT NULL, RELEASE_ID INT DEFAULT -1 NOT NULL, FIXEDINRELEASE_ID INT DEFAULT -1 NOT NULL, SLOC_CHANGE INT DEFAULT 0, OWNER_ID INT DEFAULT -1 NOT NULL, REQUEST_CATEGORY_ID INT DEFAULT -1 NOT NULL, TEAM_ID INT DEFAULT -1 NOT NULL, RESOLVER_ID INT DEFAULT -1 NOT NULL, IS_BLOCKING INT DEFAULT 0 NOT NULL, REQUEST_SOURCE NVARCHAR(255), CREATION_DATE DATETIME, CLOSED_DATE DATETIME, SUBMIT_DATE DATETIME, RESOLVED_DATE DATETIME, ASSIGNED_DATE DATETIME, DUPLICATE_DATE DATETIME, ACTIVATE_DATE DATETIME, STATUS NVARCHAR(255),
  679. CUSTOMER_PRIORITY NVARCHAR(255), RESOLUTION NVARCHAR(255), REQUEST_TYPE NVARCHAR(255), PLANNED_WORK INT , ACTUAL_WORK INT , COMMENT_COUNT INT , SUBSCRIBER_COUNT INT , STORY_POINTS INT , TAGS NVARCHAR (255), SUMMARY NVARCHAR (1000), URL NVARCHAR(2048), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  680. GO
  681.  
  682. CREATE TABLE RIODS.TEMP_TIMESHEET ( TIMESHEET_DATE DATETIME, ACTUAL_WORK INT , ITEM_ID NVARCHAR(255), TIMECODE NVARCHAR(36), DATASOURCE_ID NVARCHAR(36) ) ON VNF_32K
  683. GO
  684.  
  685. CREATE TABLE RIODS.TEMP_TIMESHEET_REQUEST_LOOKUP ( TIMESHEET_ID NVARCHAR(36), REQUEST_ID NVARCHAR(36), DATASOURCE_ID NVARCHAR(36) ) ON VNF_32K
  686. GO
  687.  
  688. CREATE TABLE RIODS.TEMP_TIMEGRID_HEAD ( COLUMN_ID NVARCHAR(10), PROJECT_ID NVARCHAR(40), CELL_ID NVARCHAR(40), SHEET INT , TIMESCALE NVARCHAR(10), DATASOURCE_ID NVARCHAR(36), YEAR INT , QUARTER INT , MONTH INT ) ON VNF_32K
  689. GO
  690.  
  691. CREATE TABLE RIODS.TEMP_FP_PROJECT ( PROJECT_ID NVARCHAR(256), TITLE NVARCHAR(256), PROJECT_STATE NVARCHAR(256), TARGET_START_DATE DATETIME, TARGET_END_DATE DATETIME, DELIVERY_DATE DATETIME, PRIORITY DOUBLE PRECISION, URL NVARCHAR(2048), MD5_URL NVARCHAR(32), CREATOR NVARCHAR(256), CREATOR_HREF NVARCHAR(32), ACTUAL_START_DATE DATETIME, BUDGETED_BENEFIT BIGINT, BUDGETED_EXPENDITURE BIGINT, PLANNED_BENEFIT BIGINT, PLANNED_EXPENDITURE BIGINT, ACTUAL_BENEFIT BIGINT, ACTUAL_EXPENDITURE BIGINT, ACTUAL_END_DATE DATETIME, PLANNED_START_DATE DATETIME, PLANNED_END_DATE DATETIME, NPV BIGINT, IRR DOUBLE PRECISION, FEASIBILITY BIGINT, TYPE NVARCHAR(256), ACTUALMANHOURS DOUBLE PRECISION, PLANNEDMANHOURS DOUBLE PRECISION, AH_COLUMN NVARCHAR(256), A_TIMESCALE NVARCHAR(256), A_SHEET BIGINT, AE_ROW BIGINT, AH_CELL NVARCHAR(256), AE_COLUMN NVARCHAR(256), AE_CELL NVARCHAR(256), AB_COLUMN NVARCHAR(256), AB_ROW BIGINT, AB_CELL NVARCHAR(256), BH_COLUMN NVARCHAR(256), BH_CELL NVARCHAR(256), B_SHEET BIGINT, B_TIMESCALE NVARCHAR(256),
  692. BE_ROW BIGINT, BE_COLUMN NVARCHAR(256), BE_CELL NVARCHAR(256), BB_COLUMN NVARCHAR(256), BB_CELL NVARCHAR(256), BB_ROW BIGINT, PH_COLUMN NVARCHAR(256), PH_CELL NVARCHAR(256), P_SHEET BIGINT, P_TIMESCALE NVARCHAR(256), PE_ROW BIGINT, PE_CELL NVARCHAR(256), PE_COLUMN NVARCHAR(256), PB_COLUMN NVARCHAR(256), PB_CELL NVARCHAR(256), PB_ROW BIGINT, DATASOURCE_ID NVARCHAR(256) ) ON VNF_32K
  693. GO
  694.  
  695. CREATE TABLE RIODS.TEMP_REVISION_HISTORY ( VERSION_ID NCHAR(40) NOT NULL, REQ_UNIQUEID NCHAR(40) NOT NULL, REVISION_NUMBER NVARCHAR(50) DEFAULT '0' NOT NULL, USER_ID NCHAR(40) DEFAULT '-1' NOT NULL, CHANGE_DATE DATETIME DEFAULT GETDATE() NOT NULL, SOURCE_ID NVARCHAR (36) DEFAULT '-1' NOT NULL ) ON VNF_32K
  696. GO
  697.  
  698. CREATE INDEX ACTI_IDX3 ON RIODS.ACTIVITY (EXTERNAL_KEY2) ON VNF_IDX
  699. GO
  700.  
  701. CREATE INDEX ASETR_IDX3 ON RIODS.ASSETREGISTRY (EXTERNAL_KEY2) ON VNF_IDX
  702. GO
  703.  
  704. CREATE INDEX BUILD_IDX3 ON RIODS.BUILD (EXTERNAL_KEY2) ON VNF_IDX
  705. GO
  706.  
  707. CREATE INDEX COMMENT_IDX3 ON RIODS.COMMENT (EXTERNAL_KEY2) ON VNF_IDX
  708. GO
  709.  
  710. CREATE INDEX COMPONENT_IDX3 ON RIODS.COMPONENT (EXTERNAL_KEY2) ON VNF_IDX
  711. GO
  712.  
  713. CREATE INDEX COMPTEAM_IDX3 ON RIODS.TEAM (EXTERNAL_KEY2) ON VNF_IDX
  714. GO
  715.  
  716. CREATE INDEX CONFIG_IDX3 ON RIODS.CONFIGURATION (EXTERNAL_KEY2) ON VNF_IDX
  717. GO
  718.  
  719. CREATE INDEX CONFIGATT_IDX3 ON RIODS.CONFIGURATION_ATTRIBUTE (EXTERNAL_KEY2) ON VNF_IDX
  720. GO
  721.  
  722. CREATE INDEX EXECWKI_TSTC_IDX3 ON RIODS.EXECUTION_WORKITEM (EXTERNAL_KEY2) ON VNF_IDX
  723. GO
  724.  
  725. CREATE INDEX CURRENCY_IDX3 ON RIODS.CURRENCY (EXTERNAL_KEY2) ON VNF_IDX
  726. GO
  727.  
  728. CREATE INDEX CUSTOMER_IDX3 ON RIODS.CUSTOMER (EXTERNAL_KEY2) ON VNF_IDX
  729. GO
  730.  
  731. CREATE INDEX FACTOR_IDX3 ON RIODS.FACTOR (EXTERNAL_KEY2) ON VNF_IDX
  732. GO
  733.  
  734. CREATE INDEX FILE_IDX3 ON RIODS.[FILE] (EXTERNAL_KEY2) ON VNF_IDX
  735. GO
  736.  
  737. CREATE INDEX FILESTR_IDX3 ON RIODS.FILE_STREAM (EXTERNAL_KEY2) ON VNF_IDX
  738. GO
  739.  
  740. CREATE INDEX FILEVER_IDX3 ON RIODS.FILE_VERSION (EXTERNAL_KEY2) ON VNF_IDX
  741. GO
  742.  
  743. CREATE INDEX ITERATION_IDX3 ON RIODS.ITERATION (EXTERNAL_KEY2) ON VNF_IDX
  744. GO
  745.  
  746. CREATE INDEX POOL_IDX3 ON RIODS.POOL (EXTERNAL_KEY2) ON VNF_IDX
  747. GO
  748.  
  749. CREATE INDEX PRODUCT_IDX3 ON RIODS.PRODUCT (EXTERNAL_KEY2) ON VNF_IDX
  750. GO
  751.  
  752. CREATE INDEX PROJECT_IDX3 ON RIODS.PROJECT (EXTERNAL_KEY2) ON VNF_IDX
  753. GO
  754.  
  755. CREATE INDEX PROJBASE_IDX3 ON RIODS.PROJECT_BASELINE (EXTERNAL_KEY2) ON VNF_IDX
  756. GO
  757.  
  758. CREATE INDEX PROJCAT_IDX3 ON RIODS.PROJECT_CATEGORY (EXTERNAL_KEY2) ON VNF_IDX
  759. GO
  760.  
  761. CREATE INDEX PHASE_IDX3 ON RIODS.PHASE (EXTERNAL_KEY2) ON VNF_IDX
  762. GO
  763.  
  764. CREATE INDEX PROJROLE_IDX3 ON RIODS.PROJECT_ROLE (EXTERNAL_KEY2) ON VNF_IDX
  765. GO
  766.  
  767. CREATE INDEX PROJTYPE_IDX3 ON RIODS.PROJECT_TYPE (EXTERNAL_KEY2) ON VNF_IDX
  768. GO
  769.  
  770. CREATE INDEX PROJWRKCFG_IDX3 ON RIODS.PROJECT_WORKCONFIGURATION (EXTERNAL_KEY2) ON VNF_IDX
  771. GO
  772.  
  773. CREATE INDEX RELEASE_IDX3 ON RIODS.RELEASE (EXTERNAL_KEY2) ON VNF_IDX
  774. GO
  775.  
  776. CREATE INDEX REQUEST_IDX3 ON RIODS.REQUEST (EXTERNAL_KEY2) ON VNF_IDX
  777. GO
  778.  
  779. CREATE INDEX REQSTH_IDX3 ON RIODS.REQUEST_STATE_HISTORY (EXTERNAL_KEY2) ON VNF_IDX
  780. GO
  781.  
  782. CREATE INDEX REQUI_IDX3 ON RIODS.REQUIREMENT (EXTERNAL_KEY2) ON VNF_IDX
  783. GO
  784.  
  785. CREATE INDEX RESOURCE_IDX3 ON RIODS.RESOURCE (EXTERNAL_KEY2) ON VNF_IDX
  786. GO
  787.  
  788. CREATE INDEX RISK_IDX3 ON RIODS.RISK (EXTERNAL_KEY2) ON VNF_IDX
  789. GO
  790.  
  791. CREATE INDEX RISKSTH_IDX3 ON RIODS.RISK_STATE_HISTORY (EXTERNAL_KEY2) ON VNF_IDX
  792. GO
  793.  
  794. CREATE INDEX TESTSUITELOG_IDX3 ON RIODS.TESTSUITELOG (EXTERNAL_KEY2) ON VNF_IDX
  795. GO
  796.  
  797. CREATE INDEX TASK_IDX3 ON RIODS.TASK (EXTERNAL_KEY2) ON VNF_IDX
  798. GO
  799.  
  800. CREATE INDEX TASKCAT_IDX3 ON RIODS.TASK_CATEGORY (EXTERNAL_KEY2) ON VNF_IDX
  801. GO
  802.  
  803. CREATE INDEX TESTCASE_IDX3 ON RIODS.TESTCASE (EXTERNAL_KEY2) ON VNF_IDX
  804. GO
  805.  
  806. CREATE INDEX EXECRES_IDX3 ON RIODS.EXECUTION_RESULT (EXTERNAL_KEY2) ON VNF_IDX
  807. GO
  808.  
  809. CREATE INDEX TESTPLAN_IDX3 ON RIODS.TESTPLAN (EXTERNAL_KEY2) ON VNF_IDX
  810. GO
  811.  
  812. CREATE INDEX TESTSUITE_IDX3 ON RIODS.TESTSUITE (EXTERNAL_KEY2) ON VNF_IDX
  813. GO
  814.  
  815. CREATE INDEX TESTTYPE_IDX3 ON RIODS.TESTTYPE (EXTERNAL_KEY2) ON VNF_IDX
  816. GO
  817.  
  818. CREATE INDEX LABRES_IDX3 ON RIODS.LAB_RESOURCE (EXTERNAL_KEY2) ON VNF_IDX
  819. GO
  820.  
  821. CREATE INDEX RESGRP_IDX3 ON RIODS.RESOURCE_GROUP (EXTERNAL_KEY2) ON VNF_IDX
  822. GO
  823.  
  824. CREATE INDEX RESERV_IDX3 ON RIODS.RESERVATION (EXTERNAL_KEY2) ON VNF_IDX
  825. GO
  826.  
  827. CREATE INDEX ACTSTH_IDX3 ON RIODS.ACTIVITY_STATE_HISTORY (EXTERNAL_KEY2) ON VNF_IDX
  828. GO
  829.  
  830. CREATE INDEX TSKSTH_IDX3 ON RIODS.TASK_STATE_HISTORY (EXTERNAL_KEY2) ON VNF_IDX
  831. GO
  832.  
  833. CREATE INDEX JOB_IDX3 ON RIODS.JOB (EXTERNAL_KEY2) ON VNF_IDX
  834. GO
  835.  
  836. CREATE INDEX JOBRES_IDX3 ON RIODS.JOB_RESULT (EXTERNAL_KEY2) ON VNF_IDX
  837. GO
  838.  
  839. CREATE INDEX TESTSCRIPT_IDX3 ON RIODS.TESTSCRIPT (EXTERNAL_KEY2) ON VNF_IDX
  840. GO
  841.  
  842. CREATE INDEX TSTSELE_IDX3 ON RIODS.TESTSUITE_ELEMENT (EXTERNAL_KEY2) ON VNF_IDX
  843. GO
  844.  
  845. CREATE INDEX REQLINKTP_IDX3 ON RIODS.REQUIREMENT_LINK_TYPE (EXTERNAL_KEY2) ON VNF_IDX
  846. GO
  847.  
  848. CREATE INDEX REQRELT_IDX3 ON RIODS.REQUEST_RELATIONAL_LINK (EXTERNAL_KEY2) ON VNF_IDX
  849. GO
  850.  
  851. CREATE INDEX ACTI_IDX4 ON RIODS.ACTIVITY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  852. GO
  853.  
  854. CREATE INDEX ASETR_IDX4 ON RIODS.ASSETREGISTRY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  855. GO
  856.  
  857. CREATE INDEX BUILD_IDX4 ON RIODS.BUILD (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  858. GO
  859.  
  860. CREATE INDEX COMMENT_IDX4 ON RIODS.COMMENT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  861. GO
  862.  
  863. CREATE INDEX COMPONENT_IDX4 ON RIODS.COMPONENT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  864. GO
  865.  
  866. CREATE INDEX COMPTEAM_IDX4 ON RIODS.TEAM (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  867. GO
  868.  
  869. CREATE INDEX CONFIG_IDX4 ON RIODS.CONFIGURATION (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  870. GO
  871.  
  872. CREATE INDEX CONFIGATT_IDX4 ON RIODS.CONFIGURATION_ATTRIBUTE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  873. GO
  874.  
  875. CREATE INDEX EXECWKI_TSTC_IDX4 ON RIODS.EXECUTION_WORKITEM (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  876. GO
  877.  
  878. CREATE INDEX CURRENCY_IDX4 ON RIODS.CURRENCY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  879. GO
  880.  
  881. CREATE INDEX CUSTOMER_IDX4 ON RIODS.CUSTOMER (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  882. GO
  883.  
  884. CREATE INDEX FACTOR_IDX4 ON RIODS.FACTOR (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  885. GO
  886.  
  887. CREATE INDEX FILE_IDX4 ON RIODS.[FILE] (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  888. GO
  889.  
  890. CREATE INDEX FILESTR_IDX4 ON RIODS.FILE_STREAM (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  891. GO
  892.  
  893. CREATE INDEX FILEVER_IDX4 ON RIODS.FILE_VERSION (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  894. GO
  895.  
  896. CREATE INDEX ITERATION_IDX4 ON RIODS.ITERATION (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  897. GO
  898.  
  899. CREATE INDEX POOL_IDX4 ON RIODS.POOL (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  900. GO
  901.  
  902. CREATE INDEX PRODUCT_IDX4 ON RIODS.PRODUCT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  903. GO
  904.  
  905. CREATE INDEX PROJECT_IDX4 ON RIODS.PROJECT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  906. GO
  907.  
  908. CREATE INDEX PROJBASE_IDX4 ON RIODS.PROJECT_BASELINE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  909. GO
  910.  
  911. CREATE INDEX PROJCAT_IDX4 ON RIODS.PROJECT_CATEGORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  912. GO
  913.  
  914. CREATE INDEX PHASE_IDX4 ON RIODS.PHASE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  915. GO
  916.  
  917. CREATE INDEX PROJROLE_IDX4 ON RIODS.PROJECT_ROLE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  918. GO
  919.  
  920. CREATE INDEX PROJTYPE_IDX4 ON RIODS.PROJECT_TYPE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  921. GO
  922.  
  923. CREATE INDEX PROJWRKCFG_IDX4 ON RIODS.PROJECT_WORKCONFIGURATION (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  924. GO
  925.  
  926. CREATE INDEX RELEASE_IDX4 ON RIODS.RELEASE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  927. GO
  928.  
  929. CREATE INDEX REQUEST_IDX4 ON RIODS.REQUEST (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  930. GO
  931.  
  932. CREATE INDEX REQSTH_IDX4 ON RIODS.REQUEST_STATE_HISTORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  933. GO
  934.  
  935. CREATE INDEX REQUI_IDX4 ON RIODS.REQUIREMENT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  936. GO
  937.  
  938. CREATE INDEX RESOURCE_IDX4 ON RIODS.RESOURCE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  939. GO
  940.  
  941. CREATE INDEX RISK_IDX4 ON RIODS.RISK (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  942. GO
  943.  
  944. CREATE INDEX RISKSTH_IDX4 ON RIODS.RISK_STATE_HISTORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  945. GO
  946.  
  947. CREATE INDEX TESTSUITELOG_IDX4 ON RIODS.TESTSUITELOG (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  948. GO
  949.  
  950. CREATE INDEX TASK_IDX4 ON RIODS.TASK (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  951. GO
  952.  
  953. CREATE INDEX TASKCAT_IDX4 ON RIODS.TASK_CATEGORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  954. GO
  955.  
  956. CREATE INDEX TESTCASE_IDX4 ON RIODS.TESTCASE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  957. GO
  958.  
  959. CREATE INDEX EXECRES_IDX4 ON RIODS.EXECUTION_RESULT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  960. GO
  961.  
  962. CREATE INDEX TESTPLAN_IDX4 ON RIODS.TESTPLAN (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  963. GO
  964.  
  965. CREATE INDEX TESTSUITE_IDX4 ON RIODS.TESTSUITE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  966. GO
  967.  
  968. CREATE INDEX TESTTYPE_IDX4 ON RIODS.TESTTYPE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  969. GO
  970.  
  971. CREATE INDEX LABRES_IDX4 ON RIODS.LAB_RESOURCE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  972. GO
  973.  
  974. CREATE INDEX RESGRP_IDX4 ON RIODS.RESOURCE_GROUP (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  975. GO
  976.  
  977. CREATE INDEX RESERV_IDX4 ON RIODS.RESERVATION (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  978. GO
  979.  
  980. CREATE INDEX ACTSTH_IDX4 ON RIODS.ACTIVITY_STATE_HISTORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  981. GO
  982.  
  983. CREATE INDEX TSKSTH_IDX4 ON RIODS.TASK_STATE_HISTORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  984. GO
  985.  
  986. CREATE INDEX JOB_IDX4 ON RIODS.JOB (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  987. GO
  988.  
  989. CREATE INDEX JOBRES_IDX4 ON RIODS.JOB_RESULT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  990. GO
  991.  
  992. CREATE INDEX TESTSCRIPT_IDX4 ON RIODS.TESTSCRIPT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  993. GO
  994.  
  995. CREATE INDEX TSTSELE_IDX4 ON RIODS.TESTSUITE_ELEMENT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  996. GO
  997.  
  998. CREATE INDEX REQLINKTP_IDX4 ON RIODS.REQUIREMENT_LINK_TYPE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  999. GO
  1000.  
  1001. CREATE INDEX REQRELT_IDX4 ON RIODS.REQUEST_RELATIONAL_LINK (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1002. GO
  1003.  
  1004. CREATE INDEX ACTI_IDX5 ON RIODS.ACTIVITY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1005. GO
  1006.  
  1007. CREATE INDEX ASETR_IDX5 ON RIODS.ASSETREGISTRY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1008. GO
  1009.  
  1010. CREATE INDEX BUILD_IDX5 ON RIODS.BUILD (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1011. GO
  1012.  
  1013. CREATE INDEX COMMENT_IDX5 ON RIODS.COMMENT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1014. GO
  1015.  
  1016. CREATE INDEX COMPONENT_IDX5 ON RIODS.COMPONENT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1017. GO
  1018.  
  1019. CREATE INDEX COMPTEAM_IDX5 ON RIODS.TEAM (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1020. GO
  1021.  
  1022. CREATE INDEX CONFIG_IDX5 ON RIODS.CONFIGURATION (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1023. GO
  1024.  
  1025. CREATE INDEX CONFIGATT_IDX5 ON RIODS.CONFIGURATION_ATTRIBUTE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1026. GO
  1027.  
  1028. CREATE INDEX EXECWKI_TSTC_IDX5 ON RIODS.EXECUTION_WORKITEM (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1029. GO
  1030.  
  1031. CREATE INDEX CURRENCY_IDX5 ON RIODS.CURRENCY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1032. GO
  1033.  
  1034. CREATE INDEX CUSTOMER_IDX5 ON RIODS.CUSTOMER (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1035. GO
  1036.  
  1037. CREATE INDEX FACTOR_IDX5 ON RIODS.FACTOR (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1038. GO
  1039.  
  1040. CREATE INDEX FILE_IDX5 ON RIODS.[FILE] (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1041. GO
  1042.  
  1043. CREATE INDEX FILESTR_IDX5 ON RIODS.FILE_STREAM (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1044. GO
  1045.  
  1046. CREATE INDEX FILEVER_IDX5 ON RIODS.FILE_VERSION (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1047. GO
  1048.  
  1049. CREATE INDEX ITERATION_IDX5 ON RIODS.ITERATION (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1050. GO
  1051.  
  1052. CREATE INDEX POOL_IDX5 ON RIODS.POOL (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1053. GO
  1054.  
  1055. CREATE INDEX PRODUCT_IDX5 ON RIODS.PRODUCT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1056. GO
  1057.  
  1058. CREATE INDEX PROJECT_IDX5 ON RIODS.PROJECT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1059. GO
  1060.  
  1061. CREATE INDEX PROJBASE_IDX5 ON RIODS.PROJECT_BASELINE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1062. GO
  1063.  
  1064. CREATE INDEX PROJCAT_IDX5 ON RIODS.PROJECT_CATEGORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1065. GO
  1066.  
  1067. CREATE INDEX PHASE_IDX5 ON RIODS.PHASE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1068. GO
  1069.  
  1070. CREATE INDEX PROJROLE_IDX5 ON RIODS.PROJECT_ROLE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1071. GO
  1072.  
  1073. CREATE INDEX PROJTYPE_IDX5 ON RIODS.PROJECT_TYPE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1074. GO
  1075.  
  1076. CREATE INDEX PROJWRKCFG_IDX5 ON RIODS.PROJECT_WORKCONFIGURATION (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1077. GO
  1078.  
  1079. CREATE INDEX RELEASE_IDX5 ON RIODS.RELEASE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1080. GO
  1081.  
  1082. CREATE INDEX REQUEST_IDX5 ON RIODS.REQUEST (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1083. GO
  1084.  
  1085. CREATE INDEX REQSTH_IDX5 ON RIODS.REQUEST_STATE_HISTORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1086. GO
  1087.  
  1088. CREATE INDEX REQUI_IDX5 ON RIODS.REQUIREMENT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1089. GO
  1090.  
  1091. CREATE INDEX RESOURCE_IDX5 ON RIODS.RESOURCE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1092. GO
  1093.  
  1094. CREATE INDEX RISK_IDX5 ON RIODS.RISK (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1095. GO
  1096.  
  1097. CREATE INDEX RISKSTH_IDX5 ON RIODS.RISK_STATE_HISTORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1098. GO
  1099.  
  1100. CREATE INDEX TESTSUITELOG_IDX5 ON RIODS.TESTSUITELOG (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1101. GO
  1102.  
  1103. CREATE INDEX TASK_IDX5 ON RIODS.TASK (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1104. GO
  1105.  
  1106. CREATE INDEX TASKCAT_IDX5 ON RIODS.TASK_CATEGORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1107. GO
  1108.  
  1109. CREATE INDEX TESTCASE_IDX5 ON RIODS.TESTCASE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1110. GO
  1111.  
  1112. CREATE INDEX EXECRES_IDX5 ON RIODS.EXECUTION_RESULT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1113. GO
  1114.  
  1115. CREATE INDEX TESTPLAN_IDX5 ON RIODS.TESTPLAN (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1116. GO
  1117.  
  1118. CREATE INDEX TESTSUITE_IDX5 ON RIODS.TESTSUITE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1119. GO
  1120.  
  1121. CREATE INDEX TESTTYPE_IDX5 ON RIODS.TESTTYPE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1122. GO
  1123.  
  1124. CREATE INDEX LABRES_IDX5 ON RIODS.LAB_RESOURCE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1125. GO
  1126.  
  1127. CREATE INDEX RESGRP_IDX5 ON RIODS.RESOURCE_GROUP (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1128. GO
  1129.  
  1130. CREATE INDEX RESERV_IDX5 ON RIODS.RESERVATION (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1131. GO
  1132.  
  1133. CREATE INDEX ACTSTH_IDX5 ON RIODS.ACTIVITY_STATE_HISTORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1134. GO
  1135.  
  1136. CREATE INDEX TSKSTH_IDX5 ON RIODS.TASK_STATE_HISTORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1137. GO
  1138.  
  1139. CREATE INDEX JOB_IDX5 ON RIODS.JOB (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1140. GO
  1141.  
  1142. CREATE INDEX JOBRES_IDX5 ON RIODS.JOB_RESULT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1143. GO
  1144.  
  1145. CREATE INDEX TESTSCRIPT_IDX5 ON RIODS.TESTSCRIPT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1146. GO
  1147.  
  1148. CREATE INDEX TSTSELE_IDX5 ON RIODS.TESTSUITE_ELEMENT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1149. GO
  1150.  
  1151. CREATE INDEX REQLINKTP_IDX5 ON RIODS.REQUIREMENT_LINK_TYPE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1152. GO
  1153.  
  1154. CREATE INDEX REQRELT_IDX5 ON RIODS.REQUEST_RELATIONAL_LINK (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1155. GO
  1156.  
  1157. CREATE INDEX REQLINKTP_IDX6 ON RIODS.REQUIREMENT_LINK_TYPE (ISSOFTDELETED) ON VNF_IDX
  1158. GO
  1159.  
  1160. CREATE INDEX REQUEST_IDX6 ON RIODS.REQUEST (ISSOFTDELETED) ON VNF_IDX
  1161. GO
  1162.  
  1163. CREATE INDEX REQUEST_IDX7 ON RIODS.REQUEST (REQUEST_CLASS_ID ,REQUEST_ID ,EXTERNAL_KEY1 ,SOURCE_ID) ON VNF_IDX
  1164. GO
  1165.  
  1166. CREATE INDEX REQUEST_IDX15 ON RIODS.REQUEST (REQUEST_CLASS_ID ,REQUEST_ID) ON VNF_IDX
  1167. GO
  1168.  
  1169. CREATE INDEX REQUEST_IDX8 ON RIODS.REQUEST (REQUEST_ID ,EXTERNAL_KEY1 ,SOURCE_ID) ON VNF_IDX
  1170. GO
  1171.  
  1172. CREATE INDEX REQUEST_IDX9 ON RIODS.REQUEST (BUILD_ID ,REQUEST_ID) ON VNF_IDX
  1173. GO
  1174.  
  1175. CREATE INDEX REQUEST_IDX10 ON RIODS.REQUEST (REQUEST_CLASS_ID ,PROJECT_ID ,COMPONENT_ID ,OWNER_ID ,REQUEST_ID ,ITERATION_ID) ON VNF_IDX
  1176. GO
  1177.  
  1178. CREATE INDEX REQUEST_IDX11 ON RIODS.REQUEST (REQUEST_SOURCE) ON VNF_IDX
  1179. GO
  1180.  
  1181. CREATE INDEX REQUEST_IDX12 ON RIODS.REQUEST (REQUEST_TYPE_ID) ON VNF_IDX
  1182. GO
  1183.  
  1184. CREATE INDEX REQUEST_IDX13 ON RIODS.REQUEST (REQUEST_STATUS_ID) ON VNF_IDX
  1185. GO
  1186.  
  1187. CREATE INDEX REQUEST_IDX14 ON RIODS.REQUEST (COMPONENT_ID ,IS_BLOCKING ,REQUEST_ID) ON VNF_IDX
  1188. GO
  1189.  
  1190. CREATE INDEX REQUI_IDX6 ON RIODS.REQUIREMENT (ISSOFTDELETED) ON VNF_IDX
  1191. GO
  1192.  
  1193. CREATE INDEX REQUI_IDX7 ON RIODS.REQUIREMENT (SOURCE_ID ,ISSOFTDELETED ,REQUIREMENT_ID ) ON VNF_IDX
  1194. GO
  1195.  
  1196. CREATE INDEX REQUI_IDX8 ON RIODS.REQUIREMENT (REQUIREMENT_CLASS_ID ,PROJECT_ID,COMPONENT_ID ,PLANNED_ITERATION_ID ,RELEASE_ID ,REQUIREMENT_ID ,OWNER_ID) ON VNF_IDX
  1197. GO
  1198.  
  1199. CREATE INDEX FILEVER_IDX6 ON RIODS.FILE_VERSION (FILE_ID ,FILE_VERSION_ID ,ACTIVITY_ID ,FILE_STREAM_ID) ON VNF_IDX
  1200. GO
  1201.  
  1202. CREATE INDEX TASK_IDX6 ON RIODS.TASK (ITERATION_ID) ON VNF_IDX
  1203. GO
  1204.  
  1205. CREATE INDEX TASK_IDX7 ON RIODS.TASK (TASK_TYPE) ON VNF_IDX
  1206. GO
  1207.  
  1208. CREATE INDEX TMPHISREQ_IDX1 ON RIODS.TEMP_REQUEST_HISTORY (DBID ,DATASOURCE_ID ,HISTORY_ACTION_TIMESTAMP) ON VNF_IDX
  1209. GO
  1210.  
  1211. CREATE INDEX TMPHISREQ_IDX2 ON RIODS.REQUEST_STATE_HISTORY (DAYS_IN_STATE ,REQUEST_ID) ON VNF_IDX
  1212. GO
  1213.  
  1214. CREATE INDEX TMPHISREQ_IDX3 ON RIODS.TEMP_REQUEST_HISTORY (HISTORY_OLD_STATE ,HISTORY_DBID ,HISTORY_NEW_STATE ,DBID ,DATASOURCE_ID) ON VNF_IDX
  1215. GO
  1216.  
  1217. CREATE INDEX FBASELNACT_IDX1 ON RIODS.FILE_BASELINE_ACTIVITY_LOOKUP (ACTIVITY_ID) ON VNF_IDX
  1218. GO
  1219.  
  1220. CREATE INDEX TMPHISREQ_IDX4 ON RIODS.TEMP_REQUEST_HISTORY (HISTORY_NEW_STATE ,HISTORY_OLD_STATE ,DBID ,DATASOURCE_ID) ON VNF_IDX
  1221. GO
  1222.  
  1223. CREATE INDEX TMPHISREQ_IDX5 ON RIODS.REQUEST_CHANGE_HISTORY (REQUEST_ID ,CHANGE_DATE) ON VNF_IDX
  1224. GO
  1225.  
  1226. CREATE INDEX ACTI_IDX6 ON RIODS.ACTIVITY (ISSOFTDELETED) ON VNF_IDX
  1227. GO
  1228.  
  1229. CREATE INDEX ACTI_IDX7 ON RIODS.ACTIVITY (OWNER_ID ,ACTIVITY_ID ,ACTIVITY_CLASS_ID ,TASK_ID) ON VNF_IDX
  1230. GO
  1231.  
  1232. CREATE INDEX ACTI_IDX8 ON RIODS.ACTIVITY (ACTIVITY_CLASS_ID ,OWNER_ID ,ACTIVITY_ID) ON VNF_IDX
  1233. GO
  1234.  
  1235. CREATE INDEX ACTI_IDX9 ON RIODS.ACTIVITY (SOURCE_ID) ON VNF_IDX
  1236. GO
  1237.  
  1238. CREATE INDEX EXECWKI_IDX6 ON RIODS.EXECUTION_WORKITEM (SOURCE_ID) ON VNF_IDX
  1239. GO
  1240.  
  1241. CREATE INDEX PROJECT_IDX6 ON RIODS.PROJECT (ISSOFTDELETED ) ON VNF_IDX
  1242. GO
  1243.  
  1244. CREATE INDEX BUILD_IDX6 ON RIODS.BUILD (ISSOFTDELETED ) ON VNF_IDX
  1245. GO
  1246.  
  1247. CREATE INDEX TESTSCRIPT_IDX6 ON RIODS.TESTSCRIPT (ISSOFTDELETED ) ON VNF_IDX
  1248. GO
  1249.  
  1250. CREATE INDEX CITY_IDX3 ON RIODS.CITY (EXTERNAL_KEY2) ON VNF_IDX
  1251. GO
  1252.  
  1253. CREATE INDEX CITY_IDX4 ON RIODS.CITY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1254. GO
  1255.  
  1256. CREATE INDEX CITY_IDX5 ON RIODS.CITY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1257. GO
  1258.  
  1259. CREATE INDEX COMPETENCY_IDX3 ON RIODS.COMPETENCY (EXTERNAL_KEY2) ON VNF_IDX
  1260. GO
  1261.  
  1262. CREATE INDEX COMPETENCY_IDX4 ON RIODS.COMPETENCY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1263. GO
  1264.  
  1265. CREATE INDEX COMPETENCY_IDX5 ON RIODS.COMPETENCY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1266. GO
  1267.  
  1268. CREATE INDEX COUNTRY_IDX3 ON RIODS.COUNTRY (EXTERNAL_KEY2) ON VNF_IDX
  1269. GO
  1270.  
  1271. CREATE INDEX COUNTRY_IDX4 ON RIODS.COUNTRY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1272. GO
  1273.  
  1274. CREATE INDEX COUNTRY_IDX5 ON RIODS.COUNTRY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1275. GO
  1276.  
  1277. CREATE INDEX ITERBASELINE_IDX3 ON RIODS.ITERATION_BASELINE (EXTERNAL_KEY2) ON VNF_IDX
  1278. GO
  1279.  
  1280. CREATE INDEX ITERBASELINE_IDX4 ON RIODS.ITERATION_BASELINE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1281. GO
  1282.  
  1283. CREATE INDEX ITERBASELINE_IDX5 ON RIODS.ITERATION_BASELINE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1284. GO
  1285.  
  1286. CREATE INDEX OPERTERRI_IDX3 ON RIODS.OPERATING_TERRITORY (EXTERNAL_KEY2) ON VNF_IDX
  1287. GO
  1288.  
  1289. CREATE INDEX OPERTERRI_IDX4 ON RIODS.OPERATING_TERRITORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1290. GO
  1291.  
  1292. CREATE INDEX OPERTERRI_IDX5 ON RIODS.OPERATING_TERRITORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1293. GO
  1294.  
  1295. CREATE INDEX PROGRAM_IDX3 ON RIODS.PROGRAM (EXTERNAL_KEY2) ON VNF_IDX
  1296. GO
  1297.  
  1298. CREATE INDEX PROGRAM_IDX4 ON RIODS.PROGRAM (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1299. GO
  1300.  
  1301. CREATE INDEX PROGRAM_IDX5 ON RIODS.PROGRAM (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1302. GO
  1303.  
  1304. CREATE INDEX PROJALLOC_IDX3 ON RIODS.PROJECT_ALLOCATION (EXTERNAL_KEY2) ON VNF_IDX
  1305. GO
  1306.  
  1307. CREATE INDEX PROJALLOC_IDX4 ON RIODS.PROJECT_ALLOCATION (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1308. GO
  1309.  
  1310. CREATE INDEX PROJALLOC_IDX5 ON RIODS.PROJECT_ALLOCATION (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1311. GO
  1312.  
  1313. CREATE INDEX PROVSTATE_IDX3 ON RIODS.PROVINCE_STATE (EXTERNAL_KEY2) ON VNF_IDX
  1314. GO
  1315.  
  1316. CREATE INDEX PROVSTATE_IDX4 ON RIODS.PROVINCE_STATE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1317. GO
  1318.  
  1319. CREATE INDEX PROVSTATE_IDX5 ON RIODS.PROVINCE_STATE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1320. GO
  1321.  
  1322. CREATE INDEX SKILL_IDX3 ON RIODS.SKILL (EXTERNAL_KEY2) ON VNF_IDX
  1323. GO
  1324.  
  1325. CREATE INDEX SKILL_IDX4 ON RIODS.SKILL (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1326. GO
  1327.  
  1328. CREATE INDEX SKILL_IDX5 ON RIODS.SKILL (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1329. GO
  1330.  
  1331. CREATE INDEX TASK_BASE_IDX3 ON RIODS.TASK_BASELINE (EXTERNAL_KEY2) ON VNF_IDX
  1332. GO
  1333.  
  1334. CREATE INDEX TASK_BASE_IDX4 ON RIODS.TASK_BASELINE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1335. GO
  1336.  
  1337. CREATE INDEX TASK_BASE_IDX5 ON RIODS.TASK_BASELINE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1338. GO
  1339.  
  1340. CREATE INDEX CHARGECODE_IDX3 ON RIODS.CHARGECODE (EXTERNAL_KEY2) ON VNF_IDX
  1341. GO
  1342.  
  1343. CREATE INDEX CHARGECODE_IDX4 ON RIODS.CHARGECODE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1344. GO
  1345.  
  1346. CREATE INDEX CHARGECODE_IDX5 ON RIODS.CHARGECODE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1347. GO
  1348.  
  1349. CREATE INDEX REQUI_COLLECT_IDX3 ON RIODS.REQUIREMENT_COLLECTION (EXTERNAL_KEY2) ON VNF_IDX
  1350. GO
  1351.  
  1352. CREATE INDEX REQUI_COLLECT_IDX4 ON RIODS.REQUIREMENT_COLLECTION (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1353. GO
  1354.  
  1355. CREATE INDEX REQUI_COLLECT_IDX5 ON RIODS.REQUIREMENT_COLLECTION (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1356. GO
  1357.  
  1358. CREATE INDEX PORTFOLIO_IDX3 ON RIODS.PORTFOLIO (EXTERNAL_KEY2) ON VNF_IDX
  1359. GO
  1360.  
  1361. CREATE INDEX PORTFOLIO_IDX4 ON RIODS.PORTFOLIO (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1362. GO
  1363.  
  1364. CREATE INDEX PORTFOLIO_IDX5 ON RIODS.PORTFOLIO (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1365. GO
  1366.  
  1367. CREATE INDEX BLD_CRESULT_IDX3 ON RIODS.BUILD_COMPILATION_RESULT (EXTERNAL_KEY2) ON VNF_IDX
  1368. GO
  1369.  
  1370. CREATE INDEX BLD_CRESULT_IDX4 ON RIODS.BUILD_COMPILATION_RESULT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1371. GO
  1372.  
  1373. CREATE INDEX BLD_CRESULT_IDX5 ON RIODS.BUILD_COMPILATION_RESULT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1374. GO
  1375.  
  1376. CREATE INDEX BLD_URESULT_IDX3 ON RIODS.BUILD_UNIT_RESULT (EXTERNAL_KEY2) ON VNF_IDX
  1377. GO
  1378.  
  1379. CREATE INDEX BLD_URESULT_IDX4 ON RIODS.BUILD_UNIT_RESULT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1380. GO
  1381.  
  1382. CREATE INDEX BLD_URESULT_IDX5 ON RIODS.BUILD_UNIT_RESULT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1383. GO
  1384.  
  1385. CREATE INDEX BLD_UEVENT_IDX3 ON RIODS.BUILD_UNIT_EVENT (EXTERNAL_KEY2) ON VNF_IDX
  1386. GO
  1387.  
  1388. CREATE INDEX BLD_UEVENT_IDX4 ON RIODS.BUILD_UNIT_EVENT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1389. GO
  1390.  
  1391. CREATE INDEX BLD_UEVENT_IDX5 ON RIODS.BUILD_UNIT_EVENT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1392. GO
  1393.  
  1394. CREATE INDEX UNT_TSTRES_IDX3 ON RIODS.UNIT_TEST_RESULT (EXTERNAL_KEY2) ON VNF_IDX
  1395. GO
  1396.  
  1397. CREATE INDEX UNT_TSTRES_IDX4 ON RIODS.UNIT_TEST_RESULT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1398. GO
  1399.  
  1400. CREATE INDEX UNT_TSTRES_IDX5 ON RIODS.UNIT_TEST_RESULT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1401. GO
  1402.  
  1403. CREATE INDEX FBASELINE_IDX3 ON RIODS.FILE_BASELINE (EXTERNAL_KEY2) ON VNF_IDX
  1404. GO
  1405.  
  1406. CREATE INDEX FBASELINE_IDX4 ON RIODS.FILE_BASELINE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1407. GO
  1408.  
  1409. CREATE INDEX FBASELINE_IDX5 ON RIODS.FILE_BASELINE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1410. GO
  1411.  
  1412. CREATE INDEX PROFILE_IDX3 ON RIODS.PROFILE (EXTERNAL_KEY2) ON VNF_IDX
  1413. GO
  1414.  
  1415. CREATE INDEX PROFILE_IDX4 ON RIODS.PROFILE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1416. GO
  1417.  
  1418. CREATE INDEX PROFILE_IDX5 ON RIODS.PROFILE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1419. GO
  1420.  
  1421. CREATE INDEX REQCAT_IDX3 ON RIODS.REQUEST_CATEGORY (EXTERNAL_KEY2) ON VNF_IDX
  1422. GO
  1423.  
  1424. CREATE INDEX REQCAT_IDX4 ON RIODS.REQUEST_CATEGORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1425. GO
  1426.  
  1427. CREATE INDEX REQCAT_IDX5 ON RIODS.REQUEST_CATEGORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1428. GO
  1429.  
  1430. CREATE INDEX REQCGNGH_IDX3 ON RIODS.REQUEST_CHANGE_HISTORY (EXTERNAL_KEY2) ON VNF_IDX
  1431. GO
  1432.  
  1433. CREATE INDEX REQCGNGH_IDX4 ON RIODS.REQUEST_CHANGE_HISTORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1434. GO
  1435.  
  1436. CREATE INDEX REQCGNGH_IDX5 ON RIODS.REQUEST_CHANGE_HISTORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1437. GO
  1438.  
  1439. CREATE INDEX REQREV_IDX3 ON RIODS.REQUIREMENT_REVISION_HISTORY (EXTERNAL_KEY2) ON VNF_IDX
  1440. GO
  1441.  
  1442. CREATE INDEX REQREV_IDX4 ON RIODS.REQUIREMENT_REVISION_HISTORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1443. GO
  1444.  
  1445. CREATE INDEX REQREV_IDX5 ON RIODS.REQUIREMENT_REVISION_HISTORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1446. GO
  1447.  
  1448. CREATE INDEX TSTCAT_IDX3 ON RIODS.TEST_CATEGORY (EXTERNAL_KEY2) ON VNF_IDX
  1449. GO
  1450.  
  1451. CREATE INDEX TSTCAT_IDX4 ON RIODS.TEST_CATEGORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1452. GO
  1453.  
  1454. CREATE INDEX TSTCAT_IDX5 ON RIODS.TEST_CATEGORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1455. GO
  1456.  
  1457. CREATE INDEX TIMECODE_IDX3 ON RIODS.TIMECODE (EXTERNAL_KEY2) ON VNF_IDX
  1458. GO
  1459.  
  1460. CREATE INDEX TIMECODE_IDX4 ON RIODS.TIMECODE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1461. GO
  1462.  
  1463. CREATE INDEX TIMECODE_IDX5 ON RIODS.TIMECODE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1464. GO
  1465.  
  1466. CREATE INDEX TIMESHEET_IDX3 ON RIODS.TIMESHEET (EXTERNAL_KEY2) ON VNF_IDX
  1467. GO
  1468.  
  1469. CREATE INDEX TIMESHEET_IDX4 ON RIODS.TIMESHEET (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1470. GO
  1471.  
  1472. CREATE INDEX TIMESHEET_IDX5 ON RIODS.TIMESHEET (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1473. GO
  1474.  
  1475. CREATE INDEX ORGANIZATION_IDX3 ON RIODS.ORGANIZATION (EXTERNAL_KEY2) ON VNF_IDX
  1476. GO
  1477.  
  1478. CREATE INDEX ORGANIZATION_IDX4 ON RIODS.ORGANIZATION (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1479. GO
  1480.  
  1481. CREATE INDEX ORGANIZATION_IDX5 ON RIODS.ORGANIZATION (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1482. GO
  1483.  
  1484. CREATE INDEX SUITEEXECREC_IDX3 ON RIODS.TESTSUITE_EXECUTION_RECORD (EXTERNAL_KEY2) ON VNF_IDX
  1485. GO
  1486.  
  1487. CREATE INDEX SUITEEXECREC_IDX4 ON RIODS.TESTSUITE_EXECUTION_RECORD (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1488. GO
  1489.  
  1490. CREATE INDEX SUITEEXECREC_IDX5 ON RIODS.TESTSUITE_EXECUTION_RECORD (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1491. GO
  1492.  
  1493. CREATE INDEX EXECSTPRES_IDX3 ON RIODS.EXECUTION_STEP_RESULT (EXTERNAL_KEY2) ON VNF_IDX
  1494. GO
  1495.  
  1496. CREATE INDEX EXECSTPRES_IDX4 ON RIODS.EXECUTION_STEP_RESULT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1497. GO
  1498.  
  1499. CREATE INDEX EXECSTPRES_IDX5 ON RIODS.EXECUTION_STEP_RESULT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1500. GO
  1501.  
  1502. CREATE INDEX TMPHISREQ_IDX6 ON RIODS.TEMP_REQUEST_HISTORY (HISTORY_UUID_DBID,DATASOURCE_ID) ON VNF_IDX
  1503. GO
  1504.  
  1505. CREATE INDEX UNT_TSTRES_IDX6 ON RIODS.UNIT_TEST_RESULT (PROJECT_ID,TEAM_ID,BUILD_TYPE,COMPONENT_ID) ON VNF_IDX
  1506. GO
  1507.  
  1508. CREATE INDEX TSTCAT_IDX6 ON RIODS.TEST_CATEGORY (TERM,VALUE,SOURCE_ID) ON VNF_IDX
  1509. GO
  1510.  
  1511. CREATE INDEX REQSTH_IDX6 ON RIODS.REQUEST_STATE_HISTORY (REQUEST_ID,SOURCE_ID) ON VNF_IDX
  1512. GO
  1513.  
  1514. CREATE INDEX COMPONENT_IDX6 ON RIODS.COMPONENT (NAME) ON VNF_IDX
  1515. GO
  1516.  
  1517. CREATE INDEX CUSTOMER_IDX6 ON RIODS.CUSTOMER (SOURCE_ID,COMPANY_NAME,NAME) ON VNF_IDX
  1518. GO
  1519.  
  1520. CREATE INDEX PRODUCT_IDX6 ON RIODS.PRODUCT (SOURCE_ID,NAME) ON VNF_IDX
  1521. GO
  1522.  
  1523. CREATE INDEX RELEASE_IDX6 ON RIODS.RELEASE (SOURCE_ID,NAME) ON VNF_IDX
  1524. GO
  1525.  
  1526. CREATE INDEX ITERATION_IDX6 ON RIODS.ITERATION (SOURCE_ID,NAME) ON VNF_IDX
  1527. GO
  1528.  
  1529. CREATE INDEX BUILD_IDX7 ON RIODS.BUILD (SOURCE_ID,NAME) ON VNF_IDX
  1530. GO
  1531.  
  1532. CREATE INDEX COMPONENT_IDX7 ON RIODS.COMPONENT (SOURCE_ID,NAME) ON VNF_IDX
  1533. GO
  1534.  
  1535. CREATE INDEX TMP_RPJ_CAL_EXC_IDX1 ON RIODS.TEMP_PROJECT_CALENDAR_EXCEP (EXCEPTION_DATE, EXTERNAL_KEY2, SOURCE_ID) ON VNF_IDX
  1536. GO
  1537.  
  1538. CREATE INDEX TMP_RSC_CAL_EXC_IDX1 ON RIODS.TEMP_RESOURCE_CALENDAR_EXCEP (EXCEPTION_DATE, EXTERNAL_KEY2, SOURCE_ID) ON VNF_IDX
  1539. GO
  1540.  
  1541. CREATE INDEX TMP_ACTIHIS_IDX ON RIODS.TEMP_ACTIVITY_HISTORY (HISTORY_DBID,DATASOURCE_ID) ON VNF_IDX
  1542. GO
  1543.  
  1544. CREATE INDEX TMP_CALENDAR_IDX ON RIODS.TEMP_CALENDAR (IDREF,SOURCE_ID) ON VNF_IDX
  1545. GO
  1546.  
  1547. CREATE INDEX TMP_CALERAN_IDX ON RIODS.TEMP_CAL_EXCEPTION_RANGE (IDREF,SOURCE_ID) ON VNF_IDX
  1548. GO
  1549.  
  1550. CREATE INDEX TMP_COMPNT_IDX ON RIODS.TEMP_COMPONENT (BASELINEACTIVITIESUNIQUEID,COMPONENTUNIQUEID,BASELINEUNIQUEID,FILEELEMENTUNIQUEID) ON VNF_IDX
  1551. GO
  1552.  
  1553. CREATE INDEX TMP_FILEVER_IDX ON RIODS.TEMP_FILEVERSION (UNIQUEID) ON VNF_IDX
  1554. GO
  1555.  
  1556. CREATE INDEX TMP_PROJ_IDX ON RIODS.TEMP_PROJECT (VERSIONUNIQUEID,ACTIVITYUNIQUEID,PROJECTUNIQUEID,STREAMUNIQUEID) ON VNF_IDX
  1557. GO
  1558.  
  1559. CREATE INDEX TMP_PROJCAL_IDX ON RIODS.TEMP_PROJECT_CALENDAR (PROJECT_IDREF) ON VNF_IDX
  1560. GO
  1561.  
  1562. CREATE INDEX TMP_REQHIS_IDX ON RIODS.TEMP_REQUEST_HISTORY (HISTORY_DBID,DATASOURCE_ID) ON VNF_IDX
  1563. GO
  1564.  
  1565. CREATE INDEX TMP_REQUI_IDX ON RIODS.TEMP_REQUIREMENT (IDENTIFIER,DATASOURCE_ID) ON VNF_IDX
  1566. GO
  1567.  
  1568. CREATE INDEX TMP_RESCAL_IDX ON RIODS.TEMP_RESOURCE_CALENDAR (RESOURCE_ID) ON VNF_IDX
  1569. GO
  1570.  
  1571. CREATE INDEX TMP_TASKHIS_IDX ON RIODS.TEMP_TASK_HISTORY (HISTORY_DBID,DATASOURCE_ID) ON VNF_IDX
  1572. GO
  1573.  
  1574. CREATE INDEX TMP_CATEG_IDX ON RIODS.TEMP_TEST_CATEGORY ( DATASOURCE_ID) ON VNF_IDX
  1575. GO
  1576.  
  1577. CREATE INDEX TMP_BSLINE_IDX ON RIODS.TEMP_BASELINE (BASELINE_ID, PARENT_ID, DATASOURCE_ID) ON VNF_IDX
  1578. GO
  1579.  
  1580. CREATE INDEX TMP_RSC_IDX ON RIODS.TEMP_RESOURCE (ID, ROW_ID, COLUMNID, DATASOURCE_ID) ON VNF_IDX
  1581. GO
  1582.  
  1583. CREATE INDEX ACTI_IDX2 ON RIODS.ACTIVITY (EXTERNAL_ID) ON VNF_IDX
  1584. GO
  1585.  
  1586. CREATE INDEX ASETR_IDX2 ON RIODS.ASSETREGISTRY (EXTERNAL_ID) ON VNF_IDX
  1587. GO
  1588.  
  1589. CREATE INDEX BUILD_IDX2 ON RIODS.BUILD (EXTERNAL_ID) ON VNF_IDX
  1590. GO
  1591.  
  1592. CREATE INDEX CHARGECODE_IDX2 ON RIODS.CHARGECODE (EXTERNAL_ID) ON VNF_IDX
  1593. GO
  1594.  
  1595. CREATE INDEX CITY_IDX2 ON RIODS.CITY (EXTERNAL_ID) ON VNF_IDX
  1596. GO
  1597.  
  1598. CREATE INDEX COMMENT_IDX2 ON RIODS.COMMENT (EXTERNAL_ID) ON VNF_IDX
  1599. GO
  1600.  
  1601. CREATE INDEX COMPETENCY_IDX2 ON RIODS.COMPETENCY (EXTERNAL_ID) ON VNF_IDX
  1602. GO
  1603.  
  1604. CREATE INDEX COMPONENT_IDX2 ON RIODS.COMPONENT (EXTERNAL_ID) ON VNF_IDX
  1605. GO
  1606.  
  1607. CREATE INDEX CONFIG_IDX2 ON RIODS.CONFIGURATION (EXTERNAL_ID) ON VNF_IDX
  1608. GO
  1609.  
  1610. CREATE INDEX CONFIGATT_IDX2 ON RIODS.CONFIGURATION_ATTRIBUTE (EXTERNAL_ID) ON VNF_IDX
  1611. GO
  1612.  
  1613. CREATE INDEX COUNTRY_IDX2 ON RIODS.COUNTRY (EXTERNAL_ID) ON VNF_IDX
  1614. GO
  1615.  
  1616. CREATE INDEX CURRENCY_IDX2 ON RIODS.CURRENCY (EXTERNAL_ID) ON VNF_IDX
  1617. GO
  1618.  
  1619. CREATE INDEX CUSTOMER_IDX2 ON RIODS.CUSTOMER (EXTERNAL_ID) ON VNF_IDX
  1620. GO
  1621.  
  1622. CREATE INDEX EXECRES_IDX2 ON RIODS.EXECUTION_RESULT (EXTERNAL_ID) ON VNF_IDX
  1623. GO
  1624.  
  1625. CREATE INDEX EXECSTPRES_IDX2 ON RIODS.EXECUTION_STEP_RESULT (EXTERNAL_ID) ON VNF_IDX
  1626. GO
  1627.  
  1628. CREATE INDEX EXECWKI_IDX2 ON RIODS.EXECUTION_WORKITEM (EXTERNAL_ID) ON VNF_IDX
  1629. GO
  1630.  
  1631. CREATE INDEX FACTOR_IDX2 ON RIODS.FACTOR (EXTERNAL_ID) ON VNF_IDX
  1632. GO
  1633.  
  1634. CREATE INDEX FILE_IDX2 ON RIODS.[FILE] (EXTERNAL_ID) ON VNF_IDX
  1635. GO
  1636.  
  1637. CREATE INDEX FBASELINE_IDX2 ON RIODS.FILE_BASELINE (EXTERNAL_ID) ON VNF_IDX
  1638. GO
  1639.  
  1640. CREATE INDEX FILESTR_IDX2 ON RIODS.FILE_STREAM (EXTERNAL_ID) ON VNF_IDX
  1641. GO
  1642.  
  1643. CREATE INDEX FILEVER_IDX2 ON RIODS.FILE_VERSION (EXTERNAL_ID) ON VNF_IDX
  1644. GO
  1645.  
  1646. CREATE INDEX ITERATION_IDX2 ON RIODS.ITERATION (EXTERNAL_ID) ON VNF_IDX
  1647. GO
  1648.  
  1649. CREATE INDEX ITERBASELINE_IDX2 ON RIODS.ITERATION_BASELINE (EXTERNAL_ID) ON VNF_IDX
  1650. GO
  1651.  
  1652. CREATE INDEX JOB_IDX2 ON RIODS.JOB (EXTERNAL_ID) ON VNF_IDX
  1653. GO
  1654.  
  1655. CREATE INDEX JOBRES_IDX2 ON RIODS.JOB_RESULT (EXTERNAL_ID) ON VNF_IDX
  1656. GO
  1657.  
  1658. CREATE INDEX LABRES_IDX2 ON RIODS.LAB_RESOURCE (EXTERNAL_ID) ON VNF_IDX
  1659. GO
  1660.  
  1661. CREATE INDEX OPERTERRI_IDX2 ON RIODS.OPERATING_TERRITORY (EXTERNAL_ID) ON VNF_IDX
  1662. GO
  1663.  
  1664. CREATE INDEX ORGANIZATION_IDX2 ON RIODS.ORGANIZATION (EXTERNAL_ID) ON VNF_IDX
  1665. GO
  1666.  
  1667. CREATE INDEX PHASE_IDX2 ON RIODS.PHASE (EXTERNAL_ID) ON VNF_IDX
  1668. GO
  1669.  
  1670. CREATE INDEX POOL_IDX2 ON RIODS.POOL (EXTERNAL_ID) ON VNF_IDX
  1671. GO
  1672.  
  1673. CREATE INDEX PORTFOLIO_IDX2 ON RIODS.PORTFOLIO (EXTERNAL_ID) ON VNF_IDX
  1674. GO
  1675.  
  1676. CREATE INDEX PRODUCT_IDX2 ON RIODS.PRODUCT (EXTERNAL_ID) ON VNF_IDX
  1677. GO
  1678.  
  1679. CREATE INDEX PROFILE_IDX2 ON RIODS.PROFILE (EXTERNAL_ID) ON VNF_IDX
  1680. GO
  1681.  
  1682. CREATE INDEX PROGRAM_IDX2 ON RIODS.PROGRAM (EXTERNAL_ID) ON VNF_IDX
  1683. GO
  1684.  
  1685. CREATE INDEX PROJECT_IDX2 ON RIODS.PROJECT (EXTERNAL_ID) ON VNF_IDX
  1686. GO
  1687.  
  1688. CREATE INDEX PROJALLOC_IDX2 ON RIODS.PROJECT_ALLOCATION (EXTERNAL_ID) ON VNF_IDX
  1689. GO
  1690.  
  1691. CREATE INDEX PROJBASE_IDX2 ON RIODS.PROJECT_BASELINE (EXTERNAL_ID) ON VNF_IDX
  1692. GO
  1693.  
  1694. CREATE INDEX PROJCAT_IDX2 ON RIODS.PROJECT_CATEGORY (EXTERNAL_ID) ON VNF_IDX
  1695. GO
  1696.  
  1697. CREATE INDEX PROJROLE_IDX2 ON RIODS.PROJECT_ROLE (EXTERNAL_ID) ON VNF_IDX
  1698. GO
  1699.  
  1700. CREATE INDEX PROJTYPE_IDX2 ON RIODS.PROJECT_TYPE (EXTERNAL_ID) ON VNF_IDX
  1701. GO
  1702.  
  1703. CREATE INDEX PROJWRKCFG_IDX2 ON RIODS.PROJECT_WORKCONFIGURATION (EXTERNAL_ID) ON VNF_IDX
  1704. GO
  1705.  
  1706. CREATE INDEX PROVSTATE_IDX2 ON RIODS.PROVINCE_STATE (EXTERNAL_ID) ON VNF_IDX
  1707. GO
  1708.  
  1709. CREATE INDEX RELEASE_IDX2 ON RIODS.RELEASE (EXTERNAL_ID) ON VNF_IDX
  1710. GO
  1711.  
  1712. CREATE INDEX REQUEST_IDX2 ON RIODS.REQUEST (EXTERNAL_ID) ON VNF_IDX
  1713. GO
  1714.  
  1715. CREATE INDEX REQCAT_IDX2 ON RIODS.REQUEST_CATEGORY (EXTERNAL_ID) ON VNF_IDX
  1716. GO
  1717.  
  1718. CREATE INDEX REQUI_IDX2 ON RIODS.REQUIREMENT (EXTERNAL_ID) ON VNF_IDX
  1719. GO
  1720.  
  1721. CREATE INDEX REQUI_COLLECT_IDX2 ON RIODS.REQUIREMENT_COLLECTION (EXTERNAL_ID) ON VNF_IDX
  1722. GO
  1723.  
  1724. CREATE INDEX RESERV_IDX2 ON RIODS.RESERVATION (EXTERNAL_ID) ON VNF_IDX
  1725. GO
  1726.  
  1727. CREATE INDEX RESOURCE_IDX2 ON RIODS.RESOURCE (EXTERNAL_ID) ON VNF_IDX
  1728. GO
  1729.  
  1730. CREATE INDEX RESGRP_IDX2 ON RIODS.RESOURCE_GROUP (EXTERNAL_ID) ON VNF_IDX
  1731. GO
  1732.  
  1733. CREATE INDEX RISK_IDX2 ON RIODS.RISK (EXTERNAL_ID) ON VNF_IDX
  1734. GO
  1735.  
  1736. CREATE INDEX SKILL_IDX2 ON RIODS.SKILL (EXTERNAL_ID) ON VNF_IDX
  1737. GO
  1738.  
  1739. CREATE INDEX TASK_IDX2 ON RIODS.TASK (EXTERNAL_ID) ON VNF_IDX
  1740. GO
  1741.  
  1742. CREATE INDEX TASK_BASE_IDX2 ON RIODS.TASK_BASELINE (EXTERNAL_ID) ON VNF_IDX
  1743. GO
  1744.  
  1745. CREATE INDEX TASKCAT_IDX2 ON RIODS.TASK_CATEGORY (EXTERNAL_ID) ON VNF_IDX
  1746. GO
  1747.  
  1748. CREATE INDEX COMPTEAM_IDX2 ON RIODS.TEAM (EXTERNAL_ID) ON VNF_IDX
  1749. GO
  1750.  
  1751. CREATE INDEX TESTCASE_IDX2 ON RIODS.TESTCASE (EXTERNAL_ID) ON VNF_IDX
  1752. GO
  1753.  
  1754. CREATE INDEX TESTPLAN_IDX2 ON RIODS.TESTPLAN (EXTERNAL_ID) ON VNF_IDX
  1755. GO
  1756.  
  1757. CREATE INDEX TESTSCRIPT_IDX2 ON RIODS.TESTSCRIPT (EXTERNAL_ID) ON VNF_IDX
  1758. GO
  1759.  
  1760. CREATE INDEX TESTSUITE_IDX2 ON RIODS.TESTSUITE (EXTERNAL_ID) ON VNF_IDX
  1761. GO
  1762.  
  1763. CREATE INDEX TESTSUITELOG_IDX2 ON RIODS.TESTSUITELOG (EXTERNAL_ID) ON VNF_IDX
  1764. GO
  1765.  
  1766. CREATE INDEX SUITEEXECREC_IDX2 ON RIODS.TESTSUITE_EXECUTION_RECORD (EXTERNAL_ID) ON VNF_IDX
  1767. GO
  1768.  
  1769. CREATE INDEX TESTTYPE_IDX2 ON RIODS.TESTTYPE (EXTERNAL_ID) ON VNF_IDX
  1770. GO
  1771.  
  1772. CREATE INDEX TSTCAT_IDX2 ON RIODS.TEST_CATEGORY (EXTERNAL_ID) ON VNF_IDX
  1773. GO
  1774.  
  1775. CREATE INDEX TIMECODE_IDX2 ON RIODS.TIMECODE (EXTERNAL_ID) ON VNF_IDX
  1776. GO
  1777.  
  1778. CREATE INDEX TIMESHEET_IDX2 ON RIODS.TIMESHEET (EXTERNAL_ID) ON VNF_IDX
  1779. GO
  1780.  
  1781. CREATE INDEX TSTSELE_IDX2 ON RIODS.TESTSUITE_ELEMENT (EXTERNAL_ID) ON VNF_IDX
  1782. GO
  1783.  
  1784. CREATE INDEX EXECRES_IDX6 ON RIODS.EXECUTION_RESULT (ISSOFTDELETED ASC,EXECUTION_RESULT_ID ASC,ITERATION_ID ASC,PROJECT_ID ASC,EXECRES_CLASS_ID ASC,VERDICT ASC,TESTCASE_ID ASC) ON VNF_IDX
  1785. GO
  1786.  
  1787. CREATE INDEX TESTPLAN_IDX6 ON RIODS.TESTPLAN (TESTPLAN_ID ASC,ASSETREGISTRY_ID ) ON VNF_IDX
  1788. GO
  1789.  
  1790. CREATE INDEX TESTCASE_IDX6 ON RIODS.TESTCASE (TESTPLAN_ID ASC,TESTCASE_ID ASC) ON VNF_IDX
  1791. GO
  1792.  
  1793. CREATE INDEX EXECWKI_IDX7 ON RIODS.EXECUTION_WORKITEM (EXECWORKITEM_ID ASC,TESTPLAN_ID ) ON VNF_IDX
  1794. GO
  1795.  
  1796. CREATE INDEX EXWKIITER_IDX1 ON RIODS.EXECWORKITEM_ITERATION_LOOKUP (EXECWORKITEM_ID ASC,ITERATION_ID DESC) ON VNF_IDX
  1797. GO
  1798.  
  1799. CREATE INDEX REQLINKTP_IDX7 ON RIODS.REQUIREMENT_LINK_TYPE (EXTERNAL_ID) ON VNF_IDX
  1800. GO
  1801.  
  1802. CREATE INDEX TMP_REQUEST_IDX3 ON RIODS.TEMP_REQUEST (EXTERNAL_KEY2) ON VNF_IDX
  1803. GO
  1804.  
  1805. CREATE INDEX TMP_REQUEST_IDX4 ON RIODS.TEMP_REQUEST (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  1806. GO
  1807.  
  1808. CREATE INDEX TMP_REQUEST_IDX5 ON RIODS.TEMP_REQUEST (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  1809. GO
  1810.  
  1811. CREATE INDEX TMP_TGHEAD ON RIODS.TEMP_TIMEGRID_HEAD (COLUMN_ID,PROJECT_ID,SHEET) ON VNF_IDX
  1812. GO
  1813.  
  1814. CREATE INDEX TMP_FP_PRJ ON RIODS.TEMP_FP_PROJECT (MD5_URL) ON VNF_IDX
  1815. GO
  1816.  
  1817. CREATE INDEX TSKSTH_IDX6 ON RIODS.TASK_STATE_HISTORY(TASK_ID) ON VNF_IDX
  1818. GO
  1819.  
  1820. CREATE INDEX TASK_IDX8 ON RIODS.TASK(PROJECT_ID, TASK_ID) ON VNF_IDX
  1821. GO
  1822.  
  1823. CREATE INDEX ACTI_IDX10 ON RIODS.ACTIVITY(ISSOFTDELETED, OWNER_ID, TASK_ID, ACTIVITY_ID) ON VNF_IDX
  1824. GO
  1825.  
  1826. CREATE INDEX REQSTH_IDX7 ON RIODS.REQUEST_STATE_HISTORY(REQUEST_ID, REQUEST_STATE_ID) ON VNF_IDX
  1827. GO
  1828.  
  1829. CREATE INDEX ACTSTH_IDX6 ON RIODS.ACTIVITY_STATE_HISTORY(ACTIVITY_ID, CHANGE_DATE) ON VNF_IDX
  1830. GO
  1831.  
  1832. CREATE INDEX BLD_CRESULT_IDX6 ON RIODS.BUILD_COMPILATION_RESULT (BUILD_ID,COMPONENT_ID) ON VNF_IDX
  1833. GO
  1834.  
  1835. CREATE INDEX BLD_UEVENT_IDX6 ON RIODS.BUILD_UNIT_EVENT (BUILD_ID,COMPONENT_ID,UNIT_TEST) ON VNF_IDX
  1836. GO
  1837.  
  1838. CREATE INDEX BLD_URESULT_IDX6 ON RIODS.BUILD_UNIT_RESULT (BUILD_ID,COMPONENT_ID) ON VNF_IDX
  1839. GO
  1840.  
  1841. CREATE INDEX ACTSTH_IDX7 ON RIODS.ACTIVITY_STATE_HISTORY (ISSOFTDELETED) ON VNF_IDX
  1842. GO
  1843.  
  1844. CREATE INDEX ASETR_IDX6 ON RIODS.ASSETREGISTRY (ISSOFTDELETED) ON VNF_IDX
  1845. GO
  1846.  
  1847. CREATE INDEX BLD_CRESULT_IDX7 ON RIODS.BUILD_COMPILATION_RESULT (ISSOFTDELETED) ON VNF_IDX
  1848. GO
  1849.  
  1850. CREATE INDEX BLD_UEVENT_IDX7 ON RIODS.BUILD_UNIT_EVENT (ISSOFTDELETED) ON VNF_IDX
  1851. GO
  1852.  
  1853. CREATE INDEX BLD_URESULT_IDX7 ON RIODS.BUILD_UNIT_RESULT (ISSOFTDELETED) ON VNF_IDX
  1854. GO
  1855.  
  1856. CREATE INDEX CHARGECODE_IDX6 ON RIODS.CHARGECODE (ISSOFTDELETED) ON VNF_IDX
  1857. GO
  1858.  
  1859. CREATE INDEX CITY_IDX6 ON RIODS.CITY (ISSOFTDELETED) ON VNF_IDX
  1860. GO
  1861.  
  1862. CREATE INDEX COMMENT_IDX6 ON RIODS.COMMENT (ISSOFTDELETED) ON VNF_IDX
  1863. GO
  1864.  
  1865. CREATE INDEX COMPETENCY_IDX6 ON RIODS.COMPETENCY (ISSOFTDELETED) ON VNF_IDX
  1866. GO
  1867.  
  1868. CREATE INDEX COMPONENT_IDX8 ON RIODS.COMPONENT (ISSOFTDELETED) ON VNF_IDX
  1869. GO
  1870.  
  1871. CREATE INDEX CONFIG_IDX6 ON RIODS.CONFIGURATION (ISSOFTDELETED) ON VNF_IDX
  1872. GO
  1873.  
  1874. CREATE INDEX CONFIGATT_IDX6 ON RIODS.CONFIGURATION_ATTRIBUTE (ISSOFTDELETED) ON VNF_IDX
  1875. GO
  1876.  
  1877. CREATE INDEX COUNTRY_IDX6 ON RIODS.COUNTRY (ISSOFTDELETED) ON VNF_IDX
  1878. GO
  1879.  
  1880. CREATE INDEX CURRENCY_IDX6 ON RIODS.CURRENCY (ISSOFTDELETED) ON VNF_IDX
  1881. GO
  1882.  
  1883. CREATE INDEX CUSTOMER_IDX7 ON RIODS.CUSTOMER (ISSOFTDELETED) ON VNF_IDX
  1884. GO
  1885.  
  1886. CREATE INDEX EXECRES_IDX7 ON RIODS.EXECUTION_RESULT (ISSOFTDELETED) ON VNF_IDX
  1887. GO
  1888.  
  1889. CREATE INDEX EXECSTPRES_IDX6 ON RIODS.EXECUTION_STEP_RESULT (ISSOFTDELETED) ON VNF_IDX
  1890. GO
  1891.  
  1892. CREATE INDEX EXECWKI_IDX8 ON RIODS.EXECUTION_WORKITEM (ISSOFTDELETED) ON VNF_IDX
  1893. GO
  1894.  
  1895. CREATE INDEX FACTOR_IDX6 ON RIODS.FACTOR (ISSOFTDELETED) ON VNF_IDX
  1896. GO
  1897.  
  1898. CREATE INDEX FILE_IDX6 ON RIODS.[FILE] (ISSOFTDELETED) ON VNF_IDX
  1899. GO
  1900.  
  1901. CREATE INDEX FBASELINE_IDX6 ON RIODS.FILE_BASELINE (ISSOFTDELETED) ON VNF_IDX
  1902. GO
  1903.  
  1904. CREATE INDEX FILESTR_IDX6 ON RIODS.FILE_STREAM (ISSOFTDELETED) ON VNF_IDX
  1905. GO
  1906.  
  1907. CREATE INDEX FILEVER_IDX7 ON RIODS.FILE_VERSION (ISSOFTDELETED) ON VNF_IDX
  1908. GO
  1909.  
  1910. CREATE INDEX ITERATION_IDX7 ON RIODS.ITERATION (ISSOFTDELETED) ON VNF_IDX
  1911. GO
  1912.  
  1913. CREATE INDEX ITERBASELINE_IDX6 ON RIODS.ITERATION_BASELINE (ISSOFTDELETED) ON VNF_IDX
  1914. GO
  1915.  
  1916. CREATE INDEX JOB_IDX6 ON RIODS.JOB (ISSOFTDELETED) ON VNF_IDX
  1917. GO
  1918.  
  1919. CREATE INDEX JOBRES_IDX6 ON RIODS.JOB_RESULT (ISSOFTDELETED) ON VNF_IDX
  1920. GO
  1921.  
  1922. CREATE INDEX LABRES_IDX6 ON RIODS.LAB_RESOURCE (ISSOFTDELETED) ON VNF_IDX
  1923. GO
  1924.  
  1925. CREATE INDEX OPERTERRI_IDX6 ON RIODS.OPERATING_TERRITORY (ISSOFTDELETED) ON VNF_IDX
  1926. GO
  1927.  
  1928. CREATE INDEX ORGANIZATION_IDX6 ON RIODS.ORGANIZATION (ISSOFTDELETED) ON VNF_IDX
  1929. GO
  1930.  
  1931. CREATE INDEX PHASE_IDX6 ON RIODS.PHASE (ISSOFTDELETED) ON VNF_IDX
  1932. GO
  1933.  
  1934. CREATE INDEX POOL_IDX6 ON RIODS.POOL (ISSOFTDELETED) ON VNF_IDX
  1935. GO
  1936.  
  1937. CREATE INDEX PORTFOLIO_IDX6 ON RIODS.PORTFOLIO (ISSOFTDELETED) ON VNF_IDX
  1938. GO
  1939.  
  1940. CREATE INDEX PRODUCT_IDX7 ON RIODS.PRODUCT (ISSOFTDELETED) ON VNF_IDX
  1941. GO
  1942.  
  1943. CREATE INDEX PROFILE_IDX6 ON RIODS.PROFILE (ISSOFTDELETED) ON VNF_IDX
  1944. GO
  1945.  
  1946. CREATE INDEX PROGRAM_IDX6 ON RIODS.PROGRAM (ISSOFTDELETED) ON VNF_IDX
  1947. GO
  1948.  
  1949. CREATE INDEX PROJALLOC_IDX6 ON RIODS.PROJECT_ALLOCATION (ISSOFTDELETED) ON VNF_IDX
  1950. GO
  1951.  
  1952. CREATE INDEX PROJBASE_IDX6 ON RIODS.PROJECT_BASELINE (ISSOFTDELETED) ON VNF_IDX
  1953. GO
  1954.  
  1955. CREATE INDEX PROJCAT_IDX6 ON RIODS.PROJECT_CATEGORY (ISSOFTDELETED) ON VNF_IDX
  1956. GO
  1957.  
  1958. CREATE INDEX PROJROLE_IDX6 ON RIODS.PROJECT_ROLE (ISSOFTDELETED) ON VNF_IDX
  1959. GO
  1960.  
  1961. CREATE INDEX PROJTYPE_IDX6 ON RIODS.PROJECT_TYPE (ISSOFTDELETED) ON VNF_IDX
  1962. GO
  1963.  
  1964. CREATE INDEX PROJWRKCFG_IDX6 ON RIODS.PROJECT_WORKCONFIGURATION (ISSOFTDELETED) ON VNF_IDX
  1965. GO
  1966.  
  1967. CREATE INDEX PROVSTATE_IDX6 ON RIODS.PROVINCE_STATE (ISSOFTDELETED) ON VNF_IDX
  1968. GO
  1969.  
  1970. CREATE INDEX RELEASE_IDX7 ON RIODS.RELEASE (ISSOFTDELETED) ON VNF_IDX
  1971. GO
  1972.  
  1973. CREATE INDEX REQCAT_IDX6 ON RIODS.REQUEST_CATEGORY (ISSOFTDELETED) ON VNF_IDX
  1974. GO
  1975.  
  1976. CREATE INDEX REQCGNGH_IDX6 ON RIODS.REQUEST_CHANGE_HISTORY (ISSOFTDELETED) ON VNF_IDX
  1977. GO
  1978.  
  1979. CREATE INDEX REQP_IDX1 ON RIODS.REQUEST_PRIORITY (ISSOFTDELETED) ON VNF_IDX
  1980. GO
  1981.  
  1982. CREATE INDEX REQRELT_IDX6 ON RIODS.REQUEST_RELATIONAL_LINK (ISSOFTDELETED) ON VNF_IDX
  1983. GO
  1984.  
  1985. CREATE INDEX REQR_IDX1 ON RIODS.REQUEST_RESOLUTION (ISSOFTDELETED) ON VNF_IDX
  1986. GO
  1987.  
  1988. CREATE INDEX REQS_IDX1 ON RIODS.REQUEST_SEVERITY (ISSOFTDELETED) ON VNF_IDX
  1989. GO
  1990.  
  1991. CREATE INDEX REQSTE_IDX1 ON RIODS.REQUEST_STATE (ISSOFTDELETED) ON VNF_IDX
  1992. GO
  1993.  
  1994. CREATE INDEX REQSTH_IDX8 ON RIODS.REQUEST_STATE_HISTORY (ISSOFTDELETED) ON VNF_IDX
  1995. GO
  1996.  
  1997. CREATE INDEX REQSTS_IDX1 ON RIODS.REQUEST_STATUS (ISSOFTDELETED) ON VNF_IDX
  1998. GO
  1999.  
  2000. CREATE INDEX REQT_IDX1 ON RIODS.REQUEST_TYPE (ISSOFTDELETED) ON VNF_IDX
  2001. GO
  2002.  
  2003. CREATE INDEX REQUI_COLLECT_IDX6 ON RIODS.REQUIREMENT_COLLECTION (ISSOFTDELETED) ON VNF_IDX
  2004. GO
  2005.  
  2006. CREATE INDEX REQREV_IDX6 ON RIODS.REQUIREMENT_REVISION_HISTORY (ISSOFTDELETED) ON VNF_IDX
  2007. GO
  2008.  
  2009. CREATE INDEX REQREV_IDX8 ON RIODS.REQUIREMENT_REVISION_HISTORY (REQUIREMENT_ID,REVISION_NUMBER,SOURCE_ID) ON VNF_IDX
  2010. GO
  2011.  
  2012. CREATE INDEX RESERV_IDX6 ON RIODS.RESERVATION (ISSOFTDELETED) ON VNF_IDX
  2013. GO
  2014.  
  2015. CREATE INDEX RESOURCE_IDX6 ON RIODS.RESOURCE (ISSOFTDELETED) ON VNF_IDX
  2016. GO
  2017.  
  2018. CREATE INDEX RESGRP_IDX6 ON RIODS.RESOURCE_GROUP (ISSOFTDELETED) ON VNF_IDX
  2019. GO
  2020.  
  2021. CREATE INDEX RISK_IDX6 ON RIODS.RISK (ISSOFTDELETED) ON VNF_IDX
  2022. GO
  2023.  
  2024. CREATE INDEX RISKSTH_IDX6 ON RIODS.RISK_STATE_HISTORY (ISSOFTDELETED) ON VNF_IDX
  2025. GO
  2026.  
  2027. CREATE INDEX SKILL_IDX6 ON RIODS.SKILL (ISSOFTDELETED) ON VNF_IDX
  2028. GO
  2029.  
  2030. CREATE INDEX TASK_IDX9 ON RIODS.TASK (ISSOFTDELETED) ON VNF_IDX
  2031. GO
  2032.  
  2033. CREATE INDEX TASK_BASE_IDX6 ON RIODS.TASK_BASELINE (ISSOFTDELETED) ON VNF_IDX
  2034. GO
  2035.  
  2036. CREATE INDEX TASKCAT_IDX6 ON RIODS.TASK_CATEGORY (ISSOFTDELETED) ON VNF_IDX
  2037. GO
  2038.  
  2039. CREATE INDEX TSKSTH_IDX7 ON RIODS.TASK_STATE_HISTORY (ISSOFTDELETED) ON VNF_IDX
  2040. GO
  2041.  
  2042. CREATE INDEX COMPTEAM_IDX6 ON RIODS.TEAM (ISSOFTDELETED) ON VNF_IDX
  2043. GO
  2044.  
  2045. CREATE INDEX TEAR_IDX1 ON RIODS.TEAM_ROLE (ISSOFTDELETED) ON VNF_IDX
  2046. GO
  2047.  
  2048. CREATE INDEX TESTCASE_IDX7 ON RIODS.TESTCASE (ISSOFTDELETED) ON VNF_IDX
  2049. GO
  2050.  
  2051. CREATE INDEX TESTPLAN_IDX7 ON RIODS.TESTPLAN (ISSOFTDELETED) ON VNF_IDX
  2052. GO
  2053.  
  2054. CREATE INDEX TESTSUITE_IDX6 ON RIODS.TESTSUITE (ISSOFTDELETED) ON VNF_IDX
  2055. GO
  2056.  
  2057. CREATE INDEX TESTSUITELOG_IDX6 ON RIODS.TESTSUITELOG (ISSOFTDELETED) ON VNF_IDX
  2058. GO
  2059.  
  2060. CREATE INDEX TSTSELE_IDX6 ON RIODS.TESTSUITE_ELEMENT (ISSOFTDELETED) ON VNF_IDX
  2061. GO
  2062.  
  2063. CREATE INDEX SUITEEXECREC_IDX6 ON RIODS.TESTSUITE_EXECUTION_RECORD (ISSOFTDELETED) ON VNF_IDX
  2064. GO
  2065.  
  2066. CREATE INDEX TESTTYPE_IDX6 ON RIODS.TESTTYPE (ISSOFTDELETED) ON VNF_IDX
  2067. GO
  2068.  
  2069. CREATE INDEX TSTCAT_IDX7 ON RIODS.TEST_CATEGORY (ISSOFTDELETED) ON VNF_IDX
  2070. GO
  2071.  
  2072. CREATE INDEX TIMECODE_IDX6 ON RIODS.TIMECODE (ISSOFTDELETED) ON VNF_IDX
  2073. GO
  2074.  
  2075. CREATE INDEX TIMESHEET_IDX6 ON RIODS.TIMESHEET (ISSOFTDELETED) ON VNF_IDX
  2076. GO
  2077.  
  2078. CREATE INDEX UNT_TSTRES_IDX7 ON RIODS.UNIT_TEST_RESULT (ISSOFTDELETED) ON VNF_IDX
  2079. GO
  2080.  
  2081. CREATE INDEX REQTBING_IDX2 ON RIODS.REQUEST_TYPE_BINDING (EXTERNAL_ID) ON VNF_IDX
  2082. GO
  2083.  
  2084. CREATE INDEX REQTBING_IDX3 ON RIODS.REQUEST_TYPE_BINDING (EXTERNAL_KEY2) ON VNF_IDX
  2085. GO
  2086.  
  2087. CREATE INDEX REQTBING_IDX4 ON RIODS.REQUEST_TYPE_BINDING (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  2088. GO
  2089.  
  2090. CREATE INDEX REQTBING_IDX5 ON RIODS.REQUEST_TYPE_BINDING (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  2091. GO
  2092.  
  2093. CREATE INDEX REQTBING_IDX6 ON RIODS.REQUEST_TYPE_BINDING (ISSOFTDELETED) ON VNF_IDX
  2094. GO
  2095.  
  2096. CREATE INDEX TSTSTATUS_IDX1 ON RIODS.TEST_STATUS (EXTERNAL_KEY2) ON VNF_IDX
  2097. GO
  2098.  
  2099. CREATE INDEX TSTSUITESTATE_IDX1 ON RIODS.TESTSUITE_STATE (EXTERNAL_KEY2) ON VNF_IDX
  2100. GO
  2101.  
  2102. CREATE INDEX TSTSULOGSTATE_IDX1 ON RIODS.TESTSUITELOG_STATE (EXTERNAL_KEY2) ON VNF_IDX
  2103. GO
  2104.  
  2105. CREATE INDEX EXECRESSTATE_IDX1 ON RIODS.EXECRESULT_STATE (EXTERNAL_KEY2) ON VNF_IDX
  2106. GO
  2107.  
  2108. CREATE INDEX TSTCASESTATE_IDX1 ON RIODS.TESTCASE_STATE (EXTERNAL_KEY2) ON VNF_IDX
  2109. GO
  2110.  
  2111. CREATE INDEX TSTPLANSTATE_IDX1 ON RIODS.TESTPLAN_STATE (EXTERNAL_KEY2) ON VNF_IDX
  2112. GO
  2113.  
  2114. CREATE INDEX TSTSCRPTSTATE_IDX1 ON RIODS.TESTSCRIPT_STATE (EXTERNAL_KEY2) ON VNF_IDX
  2115. GO
  2116.  
  2117. CREATE INDEX TSTSTATUS_IDX2 ON RIODS.TEST_STATUS (EXTERNAL_KEY1) ON VNF_IDX
  2118. GO
  2119.  
  2120. CREATE INDEX TSTPRIORI_IDX1 ON RIODS.TEST_PRIORITY (EXTERNAL_KEY1) ON VNF_IDX
  2121. GO
  2122.  
  2123. CREATE INDEX TSTPRIORI_IDX2 ON RIODS.TEST_PRIORITY (EXTERNAL_KEY2) ON VNF_IDX
  2124. GO
  2125.  
  2126. CREATE INDEX TSTSUITESTATE_IDX2 ON RIODS.TESTSUITE_STATE (EXTERNAL_KEY1) ON VNF_IDX
  2127. GO
  2128.  
  2129. CREATE INDEX TSTSULOGSTATE_IDX2 ON RIODS.TESTSUITELOG_STATE (EXTERNAL_KEY1) ON VNF_IDX
  2130. GO
  2131.  
  2132. CREATE INDEX EXECRESSTATE_IDX2 ON RIODS.EXECRESULT_STATE (EXTERNAL_KEY1) ON VNF_IDX
  2133. GO
  2134.  
  2135. CREATE INDEX TSTCASESTATE_IDX2 ON RIODS.TESTCASE_STATE (EXTERNAL_KEY1) ON VNF_IDX
  2136. GO
  2137.  
  2138. CREATE INDEX TSTPLANSTATE_IDX2 ON RIODS.TESTPLAN_STATE (EXTERNAL_KEY1) ON VNF_IDX
  2139. GO
  2140.  
  2141. CREATE INDEX TSTSCRPTSTATE_IDX2 ON RIODS.TESTSCRIPT_STATE (EXTERNAL_KEY1) ON VNF_IDX
  2142. GO
  2143.  
  2144. CREATE INDEX TSTSTATUS_IDX3 ON RIODS.TEST_STATUS (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  2145. GO
  2146.  
  2147. CREATE INDEX TSTSUITESTATE_IDX3 ON RIODS.TESTSUITE_STATE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  2148. GO
  2149.  
  2150. CREATE INDEX TSTSULOGSTATE_IDX3 ON RIODS.TESTSUITELOG_STATE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  2151. GO
  2152.  
  2153. CREATE INDEX EXECRESSTATE_IDX3 ON RIODS.EXECRESULT_STATE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  2154. GO
  2155.  
  2156. CREATE INDEX TSTCASESTATE_IDX3 ON RIODS.TESTCASE_STATE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  2157. GO
  2158.  
  2159. CREATE INDEX TSTPLANSTATE_IDX3 ON RIODS.TESTPLAN_STATE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  2160. GO
  2161.  
  2162. CREATE INDEX TSTSCRPTSTATE_IDX3 ON RIODS.TESTSCRIPT_STATE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  2163. GO
  2164.  
  2165. CREATE INDEX TSTPRIORI_IDX3 ON RIODS.TEST_PRIORITY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  2166. GO
  2167.  
  2168. CREATE INDEX TSTPRIORI_IDX4 ON RIODS.TEST_PRIORITY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  2169. GO
  2170.  
  2171. CREATE INDEX TSTSTATUS_IDX4 ON RIODS.TEST_STATUS (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  2172. GO
  2173.  
  2174. CREATE INDEX TSTSUITESTATE_IDX4 ON RIODS.TESTSUITE_STATE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  2175. GO
  2176.  
  2177. CREATE INDEX TSTSULOGSTATE_IDX4 ON RIODS.TESTSUITELOG_STATE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  2178. GO
  2179.  
  2180. CREATE INDEX EXECRESSTATE_IDX4 ON RIODS.EXECRESULT_STATE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  2181. GO
  2182.  
  2183. CREATE INDEX TSTCASESTATE_IDX4 ON RIODS.TESTCASE_STATE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  2184. GO
  2185.  
  2186. CREATE INDEX TSTPLANSTATE_IDX4 ON RIODS.TESTPLAN_STATE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  2187. GO
  2188.  
  2189. CREATE INDEX TSTSCRPTSTATE_IDX4 ON RIODS.TESTSCRIPT_STATE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  2190. GO
  2191.  
  2192. CREATE INDEX TSTSTATUS_IDX5 ON RIODS.TEST_STATUS (EXTERNAL_ID) ON VNF_IDX
  2193. GO
  2194.  
  2195. CREATE INDEX TSTSUITESTATE_IDX5 ON RIODS.TESTSUITE_STATE (EXTERNAL_ID) ON VNF_IDX
  2196. GO
  2197.  
  2198. CREATE INDEX TSTSULOGSTATE_IDX5 ON RIODS.TESTSUITELOG_STATE (EXTERNAL_ID) ON VNF_IDX
  2199. GO
  2200.  
  2201. CREATE INDEX EXECRESSTATE_IDX5 ON RIODS.EXECRESULT_STATE (EXTERNAL_ID) ON VNF_IDX
  2202. GO
  2203.  
  2204. CREATE INDEX TSTCASESTATE_IDX5 ON RIODS.TESTCASE_STATE (EXTERNAL_ID) ON VNF_IDX
  2205. GO
  2206.  
  2207. CREATE INDEX TSTPLANSTATE_IDX5 ON RIODS.TESTPLAN_STATE (EXTERNAL_ID) ON VNF_IDX
  2208. GO
  2209.  
  2210. CREATE INDEX TSTSCRPTSTATE_IDX5 ON RIODS.TESTSCRIPT_STATE (EXTERNAL_ID) ON VNF_IDX
  2211. GO
  2212.  
  2213. CREATE INDEX TSTPRIORI_IDX5 ON RIODS.TEST_PRIORITY (EXTERNAL_ID) ON VNF_IDX
  2214. GO
  2215.  
  2216. CREATE INDEX TSTPRIORI_IDX6 ON RIODS.TEST_PRIORITY (ISSOFTDELETED) ON VNF_IDX
  2217. GO
  2218.  
  2219. CREATE INDEX TSTSTATUS_IDX6 ON RIODS.TEST_STATUS (ISSOFTDELETED) ON VNF_IDX
  2220. GO
  2221.  
  2222. CREATE INDEX TSTSUITESTATE_IDX6 ON RIODS.TESTSUITE_STATE (ISSOFTDELETED) ON VNF_IDX
  2223. GO
  2224.  
  2225. CREATE INDEX TSTSULOGSTATE_IDX6 ON RIODS.TESTSUITELOG_STATE (ISSOFTDELETED) ON VNF_IDX
  2226. GO
  2227.  
  2228. CREATE INDEX EXECRESSTATE_IDX6 ON RIODS.EXECRESULT_STATE (ISSOFTDELETED) ON VNF_IDX
  2229. GO
  2230.  
  2231. CREATE INDEX TSTCASESTATE_IDX6 ON RIODS.TESTCASE_STATE (ISSOFTDELETED) ON VNF_IDX
  2232. GO
  2233.  
  2234. CREATE INDEX TSTPLANSTATE_IDX6 ON RIODS.TESTPLAN_STATE (ISSOFTDELETED) ON VNF_IDX
  2235. GO
  2236.  
  2237. CREATE INDEX TSTPSCRPTSTATE_IDX6 ON RIODS.TESTSCRIPT_STATE (ISSOFTDELETED) ON VNF_IDX
  2238. GO
  2239.  
  2240. CREATE INDEX TIMELINE_IDX1 ON RIODS.TIMELINE (EXTERNAL_KEY2) ON VNF_IDX
  2241. GO
  2242.  
  2243. CREATE INDEX TIMELINE_IDX2 ON RIODS.TIMELINE (EXTERNAL_KEY1) ON VNF_IDX
  2244. GO
  2245.  
  2246. CREATE INDEX TIMELINE_IDX3 ON RIODS.TIMELINE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  2247. GO
  2248.  
  2249. CREATE INDEX TIMELINE_IDX4 ON RIODS.TIMELINE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  2250. GO
  2251.  
  2252. CREATE INDEX TIMELINE_IDX5 ON RIODS.TIMELINE (EXTERNAL_ID) ON VNF_IDX
  2253. GO
  2254.  
  2255. CREATE INDEX TIMELINE_IDX6 ON RIODS.TIMELINE (ISSOFTDELETED) ON VNF_IDX
  2256. GO
  2257.  
  2258. CREATE INDEX TIMESHEET_IDX7 ON RIODS.TIMESHEET (TIMESHEET_REPORTING_WEEK, ACTIVITY_ID, REFERENCE_ID) ON VNF_IDX
  2259. GO
  2260.  
  2261. ALTER TABLE RIODS.CUSTOMER ADD CONSTRAINT CUSTOMER_PK PRIMARY KEY (CUSTOMER_ID) ON VNF_IDX
  2262. GO
  2263.  
  2264. ALTER TABLE RIODS.ACTIVITY_CLASSIFICATION ADD CONSTRAINT ACTIVITYCL_PK PRIMARY KEY (ACTIVITY_CLASS_ID) ON VNF_IDX
  2265. GO
  2266.  
  2267. ALTER TABLE RIODS.ACTIVITY ADD CONSTRAINT ACTIVITY_PK PRIMARY KEY (ACTIVITY_ID) ON VNF_IDX
  2268. GO
  2269.  
  2270. ALTER TABLE RIODS.REQUEST_ACTIVITY_LOOKUP ADD CONSTRAINT REQACT_PK PRIMARY KEY (REQUEST_ID,ACTIVITY_ID) ON VNF_IDX
  2271. GO
  2272.  
  2273. ALTER TABLE RIODS.COMPONENT ADD CONSTRAINT COMPONENT_PK PRIMARY KEY (COMPONENT_ID) ON VNF_IDX
  2274. GO
  2275.  
  2276. ALTER TABLE RIODS.PROJECT_COMPONENT_LOOKUP ADD CONSTRAINT PRJCOMP_PK PRIMARY KEY (PROJECT_ID,COMPONENT_ID) ON VNF_IDX
  2277. GO
  2278.  
  2279. ALTER TABLE RIODS.COMPONENT_CLASSIFICATION ADD CONSTRAINT COMPCLS_PK PRIMARY KEY (COMPONENT_CLASS_ID) ON VNF_IDX
  2280. GO
  2281.  
  2282. ALTER TABLE RIODS.BUILD ADD CONSTRAINT BUILD_PK PRIMARY KEY (BUILD_ID) ON VNF_IDX
  2283. GO
  2284.  
  2285. ALTER TABLE RIODS.REQUIREMENT ADD CONSTRAINT REQUIREMENT_PK PRIMARY KEY (REQUIREMENT_ID) ON VNF_IDX
  2286. GO
  2287.  
  2288. ALTER TABLE RIODS.REQUIREMENT_COLLECTION ADD CONSTRAINT REQUI_COLLECT_PK PRIMARY KEY (REQUIREMENT_COLLECTION_ID) ON VNF_IDX
  2289. GO
  2290.  
  2291. ALTER TABLE RIODS.REQUICOL_REQUIREMENT_LOOKUP ADD CONSTRAINT REQUICOLLECT_PK PRIMARY KEY (REQUIREMENT_COLLECTION_ID, REQUIREMENT_ID) ON VNF_IDX
  2292. GO
  2293.  
  2294. ALTER TABLE RIODS.REQUICOL_TESTPLAN_LOOKUP ADD CONSTRAINT REQUICOL_TESTP_PK PRIMARY KEY (REQUIREMENT_COLLECTION_ID, TESTPLAN_ID, LINK_TYPE) ON VNF_IDX
  2295. GO
  2296.  
  2297. ALTER TABLE RIODS.REQUIREMENT_REVISION_HISTORY ADD CONSTRAINT REQREV_PK PRIMARY KEY (REQUIREMENT_REVISION_ID) ON VNF_IDX
  2298. GO
  2299.  
  2300. ALTER TABLE RIODS.TESTSUITE ADD CONSTRAINT TESTSUITE_PK PRIMARY KEY (TESTSUITE_ID) ON VNF_IDX
  2301. GO
  2302.  
  2303. ALTER TABLE RIODS.EXECUTION_RESULT ADD CONSTRAINT EXECRES_PK PRIMARY KEY (EXECUTION_RESULT_ID) ON VNF_IDX
  2304. GO
  2305.  
  2306. ALTER TABLE RIODS.CURRENCY ADD CONSTRAINT CURRENCY_PK PRIMARY KEY (CURRENCY_ID) ON VNF_IDX
  2307. GO
  2308.  
  2309. ALTER TABLE RIODS.POOL ADD CONSTRAINT POOL_PK PRIMARY KEY (POOL_ID) ON VNF_IDX
  2310. GO
  2311.  
  2312. ALTER TABLE RIODS.RESOURCE ADD CONSTRAINT RESOURCE_PK PRIMARY KEY (RESOURCE_ID) ON VNF_IDX
  2313. GO
  2314.  
  2315. ALTER TABLE RIODS.SKILL ADD CONSTRAINT SKILL_PK PRIMARY KEY(SKILL_ID) ON VNF_IDX
  2316. GO
  2317.  
  2318. ALTER TABLE RIODS.RESOURCE_SKILL_LOOKUP ADD CONSTRAINT RESSKILL_PK PRIMARY KEY(RESOURCE_ID, SKILL_ID) ON VNF_IDX
  2319. GO
  2320.  
  2321. ALTER TABLE RIODS.COMPETENCY ADD CONSTRAINT COMPETENCY_PK PRIMARY KEY(COMPETENCY_ID) ON VNF_IDX
  2322. GO
  2323.  
  2324. ALTER TABLE RIODS.RESOURCE_COMPETENCY_LOOKUP ADD CONSTRAINT RESCOMPETENCY_PK PRIMARY KEY(RESOURCE_ID, COMPETENCY_ID) ON VNF_IDX
  2325. GO
  2326.  
  2327. ALTER TABLE RIODS.REQUEST_STATE_HISTORY ADD CONSTRAINT REQUESTSTATEHIS_PK PRIMARY KEY (REQUEST_STATE_HISTORY_ID) ON VNF_IDX
  2328. GO
  2329.  
  2330. ALTER TABLE RIODS.REQUEST_CLASSIFICATION ADD CONSTRAINT REQ_CATEGORY_PK PRIMARY KEY (REQUEST_CLASS_ID) ON VNF_IDX
  2331. GO
  2332.  
  2333. ALTER TABLE RIODS.REQUIREMENT_CLASSIFICATION ADD CONSTRAINT REQUI_CATG_PK PRIMARY KEY (REQUIREMENT_CLASS_ID) ON VNF_IDX
  2334. GO
  2335.  
  2336. ALTER TABLE RIODS.TASK_CATEGORY ADD CONSTRAINT TASK_CATEGORY_PK PRIMARY KEY (TASK_CATEGORY_ID) ON VNF_IDX
  2337. GO
  2338.  
  2339. ALTER TABLE RIODS.PRODUCT ADD CONSTRAINT PRODUCT_PK PRIMARY KEY (PRODUCT_ID) ON VNF_IDX
  2340. GO
  2341.  
  2342. ALTER TABLE RIODS.ASSETREGISTRY ADD CONSTRAINT ASSETREGISTRY_PK PRIMARY KEY (ASSETREGISTRY_ID) ON VNF_IDX
  2343. GO
  2344.  
  2345. ALTER TABLE RIODS.ITERATION ADD CONSTRAINT ITERATION_PK PRIMARY KEY (ITERATION_ID) ON VNF_IDX
  2346. GO
  2347.  
  2348. ALTER TABLE RIODS.ITERATION_BASELINE ADD CONSTRAINT ITERBASELINE_PK PRIMARY KEY (BASELINE_ID,ITERATION_ID) ON VNF_IDX
  2349. GO
  2350.  
  2351. ALTER TABLE RIODS.RELEASE ADD CONSTRAINT RELEASE_PK PRIMARY KEY (RELEASE_ID) ON VNF_IDX
  2352. GO
  2353.  
  2354. ALTER TABLE RIODS.PROJECT_CLASSIFICATION ADD CONSTRAINT PROJECTCL_PK PRIMARY KEY (PROJECT_CLASS_ID) ON VNF_IDX
  2355. GO
  2356.  
  2357. ALTER TABLE RIODS.PROJECT ADD CONSTRAINT PROJECT_PK PRIMARY KEY (PROJECT_ID) ON VNF_IDX
  2358. GO
  2359.  
  2360. ALTER TABLE RIODS.TASK_BASELINE ADD CONSTRAINT TASKBL_PK PRIMARY KEY (BASELINE_ID,TASK_ID) ON VNF_IDX
  2361. GO
  2362.  
  2363. ALTER TABLE RIODS.TASK_CLASSIFICATION ADD CONSTRAINT TASKCL_PK PRIMARY KEY (TASK_CLASS_ID) ON VNF_IDX
  2364. GO
  2365.  
  2366. ALTER TABLE RIODS.TASK ADD CONSTRAINT TASK_PK PRIMARY KEY (TASK_ID) ON VNF_IDX
  2367. GO
  2368.  
  2369. ALTER TABLE RIODS.PROJECT_HIERARCHY ADD CONSTRAINT PROJECTHIER_PK PRIMARY KEY (PARENT_PROJECT_ID, CHILD_PROJECT_ID) ON VNF_IDX
  2370. GO
  2371.  
  2372. ALTER TABLE RIODS.PROJECT_DETAIL ADD CONSTRAINT PROJECTDT_PK PRIMARY KEY (PROJECT_ID) ON VNF_IDX
  2373. GO
  2374.  
  2375. ALTER TABLE RIODS.PROJECT_TYPE ADD CONSTRAINT PRJTYPE_PK PRIMARY KEY (PROJECT_TYPE_ID) ON VNF_IDX
  2376. GO
  2377.  
  2378. ALTER TABLE RIODS.PROJECT_WORKCONFIGURATION ADD CONSTRAINT PRJWKCFG_PK PRIMARY KEY (PROJECT_WKCFG_ID) ON VNF_IDX
  2379. GO
  2380.  
  2381. ALTER TABLE RIODS.PROJECT_CATEGORY ADD CONSTRAINT PRJCAT_PK PRIMARY KEY (PROJECT_CATEGORY_ID) ON VNF_IDX
  2382. GO
  2383.  
  2384. ALTER TABLE RIODS.PHASE ADD CONSTRAINT PRJPHASE_PK PRIMARY KEY (PHASE_ID) ON VNF_IDX
  2385. GO
  2386.  
  2387. ALTER TABLE RIODS.PROJECT_ROLE ADD CONSTRAINT PRJROLE_PK PRIMARY KEY (PROJECT_ROLE_ID) ON VNF_IDX
  2388. GO
  2389.  
  2390. ALTER TABLE RIODS.PROJECT_ROLE_MEMBER_LOOKUP ADD CONSTRAINT PRJROLELK_PK PRIMARY KEY (PROJECT_ROLE_ID, RESOURCE_ID) ON VNF_IDX
  2391. GO
  2392.  
  2393. ALTER TABLE RIODS.TEAM ADD CONSTRAINT CMPTEAM_PK PRIMARY KEY (TEAM_ID) ON VNF_IDX
  2394. GO
  2395.  
  2396. ALTER TABLE RIODS.TASK_DETAIL ADD CONSTRAINT TASKDT_PK PRIMARY KEY (TASK_ID) ON VNF_IDX
  2397. GO
  2398.  
  2399. ALTER TABLE RIODS.TASK_REQUIREMENT_LOOKUP ADD CONSTRAINT TSKREQ_PK PRIMARY KEY (TASK_ID, REQUIREMENT_ID) ON VNF_IDX
  2400. GO
  2401.  
  2402. ALTER TABLE RIODS.CONFIGURATION ADD CONSTRAINT CONFIGURATION_PK PRIMARY KEY (CONFIGURATION_ID) ON VNF_IDX
  2403. GO
  2404.  
  2405. ALTER TABLE RIODS.CONFIGURATION_ATTRIBUTE ADD CONSTRAINT CFG_ATTRIBUTE_PK PRIMARY KEY (CONFIGURATION_ATTRIBUTE_ID) ON VNF_IDX
  2406. GO
  2407.  
  2408. ALTER TABLE RIODS.CONFIGURATION_ATTRIBUTE_LOOKUP ADD CONSTRAINT CFGATTR_ATTR_PK PRIMARY KEY (CONFIGURATION_ATTRIBUTE_ID, CONFIGURATION_ID) ON VNF_IDX
  2409. GO
  2410.  
  2411. ALTER TABLE RIODS.TESTSUITE_ITERATION_LOOKUP ADD CONSTRAINT TSTITER_PK PRIMARY KEY (TESTSUITE_ID, ITERATION_ID) ON VNF_IDX
  2412. GO
  2413.  
  2414. ALTER TABLE RIODS.TESTPLAN ADD CONSTRAINT TESTPLAN_PK PRIMARY KEY (TESTPLAN_ID) ON VNF_IDX
  2415. GO
  2416.  
  2417. ALTER TABLE RIODS.TESTPLAN_ITERATION_LOOKUP ADD CONSTRAINT TSPLNITER_PK PRIMARY KEY (TESTPLAN_ID, ITERATION_ID) ON VNF_IDX
  2418. GO
  2419.  
  2420. ALTER TABLE RIODS.TESTTYPE ADD CONSTRAINT TESTTYPE_PK PRIMARY KEY (TESTTYPE_ID) ON VNF_IDX
  2421. GO
  2422.  
  2423. ALTER TABLE RIODS.TESTCASE ADD CONSTRAINT TESTCASE_PK PRIMARY KEY (TESTCASE_ID) ON VNF_IDX
  2424. GO
  2425.  
  2426. ALTER TABLE RIODS.TESTCASE_ITERATION_LOOKUP ADD CONSTRAINT TESTCITER_PK PRIMARY KEY (TESTCASE_ID, ITERATION_ID) ON VNF_IDX
  2427. GO
  2428.  
  2429. ALTER TABLE RIODS.REQUIREMENT_TESTCASE_LOOKUP ADD CONSTRAINT REQTEST_PK PRIMARY KEY (REQUIREMENT_ID, TESTCASE_ID, LINK_TYPE) ON VNF_IDX
  2430. GO
  2431.  
  2432. ALTER TABLE RIODS.REQUIREMENT_TESTPLAN_LOOKUP ADD CONSTRAINT REQTESTP_PK PRIMARY KEY (REQUIREMENT_ID, TESTPLAN_ID) ON VNF_IDX
  2433. GO
  2434.  
  2435. ALTER TABLE RIODS.REQUIREMENT_TESTSUITE_LOOKUP ADD CONSTRAINT REQTESTS_PK PRIMARY KEY (REQUIREMENT_ID, TESTSUITE_ID) ON VNF_IDX
  2436. GO
  2437.  
  2438. ALTER TABLE RIODS.REQUIREMENT_REQUIREMENT_LOOKUP ADD CONSTRAINT REQTREQ_PK PRIMARY KEY (REQUIREMENT_ID, CREQUIREMENT_ID) ON VNF_IDX
  2439. GO
  2440.  
  2441. ALTER TABLE RIODS.REQUIREMENT_HIERARCHY ADD CONSTRAINT REQHIER_PK PRIMARY KEY (PRED_REQUIREMENT_ID, SUCC_REQUIREMENT_ID, LINK_TYPE_ID) ON VNF_IDX
  2442. GO
  2443.  
  2444. ALTER TABLE RIODS.REQUEST_LINK ADD CONSTRAINT REQULINK_PK PRIMARY KEY (PRED_REQUEST_ID, SUCC_REQUEST_ID) ON VNF_IDX
  2445. GO
  2446.  
  2447. ALTER TABLE RIODS.EXECUTION_WORKITEM ADD CONSTRAINT EXECWKI_PK PRIMARY KEY (EXECWORKITEM_ID) ON VNF_IDX
  2448. GO
  2449.  
  2450. ALTER TABLE RIODS.EXECWORKITEM_ITERATION_LOOKUP ADD CONSTRAINT EXWKIITER_PK PRIMARY KEY (EXECWORKITEM_ID, ITERATION_ID) ON VNF_IDX
  2451. GO
  2452.  
  2453. ALTER TABLE RIODS.REQUIREMENT_EXECWRKITEM_LOOKUP ADD CONSTRAINT REQEXWKI_PK PRIMARY KEY (REQUIREMENT_ID, EXECWORKITEM_ID) ON VNF_IDX
  2454. GO
  2455.  
  2456. ALTER TABLE RIODS.EXECWORKITEM_TESTSUITE_LOOKUP ADD CONSTRAINT EXWKITSU_PK PRIMARY KEY (EXECWORKITEM_ID, TESTSUITE_ID) ON VNF_IDX
  2457. GO
  2458.  
  2459. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_PK PRIMARY KEY (REQUEST_ID) ON VNF_IDX
  2460. GO
  2461.  
  2462. ALTER TABLE RIODS.REQUEST_HIERARCHY ADD CONSTRAINT REQUHIST_PK PRIMARY KEY (PARENT_REQUEST_ID, CHILD_REQUEST_ID) ON VNF_IDX
  2463. GO
  2464.  
  2465. ALTER TABLE RIODS.FILE_VERSION ADD CONSTRAINT FLVERSION_PK PRIMARY KEY (FILE_VERSION_ID) ON VNF_IDX
  2466. GO
  2467.  
  2468. ALTER TABLE RIODS.[FILE] ADD CONSTRAINT FILE_PK PRIMARY KEY (FILE_ID) ON VNF_IDX
  2469. GO
  2470.  
  2471. ALTER TABLE RIODS.FILE_BASELINE ADD CONSTRAINT FBASELINE_PK PRIMARY KEY (FILE_BASELINE_ID) ON VNF_IDX
  2472. GO
  2473.  
  2474. ALTER TABLE RIODS.FILE_BASELINE_ACTIVITY_LOOKUP ADD CONSTRAINT FBACT_PK PRIMARY KEY (FILE_BASELINE_ID,ACTIVITY_ID) ON VNF_IDX
  2475. GO
  2476.  
  2477. ALTER TABLE RIODS.FILE_STREAM ADD CONSTRAINT FSTREAM_PK PRIMARY KEY (FILE_STREAM_ID) ON VNF_IDX
  2478. GO
  2479.  
  2480. ALTER TABLE RIODS.CONFIG_EXECUTIONRES_LOOKUP ADD CONSTRAINT EXWKISLG_PK PRIMARY KEY (CONFIGURATION_ID, EXECUTION_RESULT_ID) ON VNF_IDX
  2481. GO
  2482.  
  2483. ALTER TABLE RIODS.TESTSUITELOG ADD CONSTRAINT TESTSUITELOG_PK PRIMARY KEY (TESTSUITELOG_ID) ON VNF_IDX
  2484. GO
  2485.  
  2486. ALTER TABLE RIODS.TESTSUITELOG_EXECRESULT_LOOKUP ADD CONSTRAINT STESEXECR_PK PRIMARY KEY (TESTSUITELOG_ID, EXECUTION_RESULT_ID) ON VNF_IDX
  2487. GO
  2488.  
  2489. ALTER TABLE RIODS.TASK_REQUEST_LOOKUP ADD CONSTRAINT TSKISS_PK PRIMARY KEY (TASK_ID, REQUEST_ID) ON VNF_IDX
  2490. GO
  2491.  
  2492. ALTER TABLE RIODS.REQUIREMENT_REQUEST_LOOKUP ADD CONSTRAINT REQIREQ_PK PRIMARY KEY (REQUIREMENT_ID, REQUEST_ID, LINK_TYPE) ON VNF_IDX
  2493. GO
  2494.  
  2495. ALTER TABLE RIODS.REQUEST_CUSTOMER_LOOKUP ADD CONSTRAINT REQUCULK_PK PRIMARY KEY (REQUEST_ID, CUSTOMER_ID) ON VNF_IDX
  2496. GO
  2497.  
  2498. ALTER TABLE RIODS.REQUIREMENT_CUSTOMER_LOOKUP ADD CONSTRAINT REQUICLK_PK PRIMARY KEY (REQUIREMENT_ID, CUSTOMER_ID) ON VNF_IDX
  2499. GO
  2500.  
  2501. ALTER TABLE RIODS.EXECRES_REQUEST_LOOKUP ADD CONSTRAINT EXECRGREQ_PK PRIMARY KEY (REQUEST_ID, EXECUTION_RESULT_ID, LINK_TYPE) ON VNF_IDX
  2502. GO
  2503.  
  2504. ALTER TABLE RIODS.RISK ADD CONSTRAINT RISK_PK PRIMARY KEY (RISK_ID) ON VNF_IDX
  2505. GO
  2506.  
  2507. ALTER TABLE RIODS.RISK_STATE_HISTORY ADD CONSTRAINT RISKSTATEHIS_PK PRIMARY KEY (RISK_STATE_HISTORY_ID) ON VNF_IDX
  2508. GO
  2509.  
  2510. ALTER TABLE RIODS.FACTOR ADD CONSTRAINT FACTOR_PK PRIMARY KEY (FACTOR_ID) ON VNF_IDX
  2511. GO
  2512.  
  2513. ALTER TABLE RIODS.PROJECT_BASELINE ADD CONSTRAINT PRJBASELINE_PK PRIMARY KEY (BASELINE_ID) ON VNF_IDX
  2514. GO
  2515.  
  2516. ALTER TABLE RIODS.PROJ_BASELINE_BASELINE_LOOKUP ADD CONSTRAINT PRJBSLTOBSL_PK PRIMARY KEY (BASELINE_ID, COMPBASELINE_ID) ON VNF_IDX
  2517. GO
  2518.  
  2519. ALTER TABLE RIODS.COMMENT ADD CONSTRAINT COMMENT_PK PRIMARY KEY (COMMENT_ID) ON VNF_IDX
  2520. GO
  2521.  
  2522. ALTER TABLE RIODS.ACTIVITY_DETAIL ADD CONSTRAINT ACTIVITY_DETAIL_PK PRIMARY KEY (ACTIVITY_ID) ON VNF_IDX
  2523. GO
  2524.  
  2525. ALTER TABLE RIODS.PROJECT_WORKCONFIG_HIERARCHY ADD CONSTRAINT PRJWCFGH_PK PRIMARY KEY(PARENT_WKCFG_ID,CHILD_WKCFG_ID) ON VNF_IDX
  2526. GO
  2527.  
  2528. ALTER TABLE RIODS.TEST_CATEGORY ADD CONSTRAINT TSTCAT_PK PRIMARY KEY (TEST_CATEGORY_ID) ON VNF_IDX
  2529. GO
  2530.  
  2531. ALTER TABLE RIODS.EXECRES_EXECWKITEM_LOOKUP ADD CONSTRAINT EXECRESWK_PK PRIMARY KEY (EXECUTION_RESULT_ID,EXECWORKITEM_ID) ON VNF_IDX
  2532. GO
  2533.  
  2534. ALTER TABLE RIODS.CONFIG_EXECUTIONWORKITM_LOOKUP ADD CONSTRAINT CFGEXECWK_PK PRIMARY KEY (CONFIGURATION_ID,EXECWORKITEM_ID) ON VNF_IDX
  2535. GO
  2536.  
  2537. ALTER TABLE RIODS.TESTPLAN_CATEGORY_LOOKUP ADD CONSTRAINT TPLNCAT_PK PRIMARY KEY (TEST_CATEGORY_ID,TESTPLAN_ID) ON VNF_IDX
  2538. GO
  2539.  
  2540. ALTER TABLE RIODS.TESTCASE_CATEGORY_LOOKUP ADD CONSTRAINT TCASECAT_PK PRIMARY KEY (TEST_CATEGORY_ID,TESTCASE_ID) ON VNF_IDX
  2541. GO
  2542.  
  2543. ALTER TABLE RIODS.TESTSUITE_TESTCASE_LOOKUP ADD CONSTRAINT TSUTCASE_PK PRIMARY KEY (TESTCASE_ID,TESTSUITE_ID) ON VNF_IDX
  2544. GO
  2545.  
  2546. ALTER TABLE RIODS.TESTSUITE_TESTSUITELOG_LOOKUP ADD CONSTRAINT TSUTSULG_PK PRIMARY KEY (TESTSUITE_ID,TESTSUITELOG_ID) ON VNF_IDX
  2547. GO
  2548.  
  2549. ALTER TABLE RIODS.TESTPLAN_TESTPLAN_HIERARCHY ADD CONSTRAINT TPLNPC_PK PRIMARY KEY (PARENT_TESTPLAN_ID,CHILD_TESTPLAN_ID) ON VNF_IDX
  2550. GO
  2551.  
  2552. ALTER TABLE RIODS.TESTPLAN_TESTCASE_LOOKUP ADD CONSTRAINT TPLNTC_PK PRIMARY KEY (TESTPLAN_ID,TESTCASE_ID) ON VNF_IDX
  2553. GO
  2554.  
  2555. ALTER TABLE RIODS.LAB_RESOURCE ADD CONSTRAINT LABRES_PK PRIMARY KEY (LAB_RESOURCE_ID) ON VNF_IDX
  2556. GO
  2557.  
  2558. ALTER TABLE RIODS.RESOURCE_GROUP ADD CONSTRAINT RESGRP_PK PRIMARY KEY (RESOURCE_GROUP_ID) ON VNF_IDX
  2559. GO
  2560.  
  2561. ALTER TABLE RIODS.RESERVATION ADD CONSTRAINT RESERV_PK PRIMARY KEY (RESERVATION_ID) ON VNF_IDX
  2562. GO
  2563.  
  2564. ALTER TABLE RIODS.TESTCASE_CLASSIFICATION ADD CONSTRAINT TCCLASS_PK PRIMARY KEY (TESTCASE_CLASS_ID) ON VNF_IDX
  2565. GO
  2566.  
  2567. ALTER TABLE RIODS.TESTPLAN_CLASSIFICATION ADD CONSTRAINT TPLCLASS_PK PRIMARY KEY (TESTPLAN_CLASS_ID) ON VNF_IDX
  2568. GO
  2569.  
  2570. ALTER TABLE RIODS.TESTSUITE_CLASSIFICATION ADD CONSTRAINT TSUCLASS_PK PRIMARY KEY (TESTSUITE_CLASS_ID) ON VNF_IDX
  2571. GO
  2572.  
  2573. ALTER TABLE RIODS.TESTSUITELOG_CLASSIFICATION ADD CONSTRAINT TSLCLASS_PK PRIMARY KEY (TESTSUITELOG_CLASS_ID) ON VNF_IDX
  2574. GO
  2575.  
  2576. ALTER TABLE RIODS.EXECRESULT_CLASSIFICATION ADD CONSTRAINT EXRESCLASS_PK PRIMARY KEY (EXECRES_CLASS_ID) ON VNF_IDX
  2577. GO
  2578.  
  2579. ALTER TABLE RIODS.EXECWORKITEM_CLASSIFICATION ADD CONSTRAINT EXEWKITCLASS_PK PRIMARY KEY (EXECWORKIT_CLASS_ID) ON VNF_IDX
  2580. GO
  2581.  
  2582. ALTER TABLE RIODS.CONFIGURATION_CLASSIFICATION ADD CONSTRAINT CONFIGCLASS_PK PRIMARY KEY (CONFIGURATION_CLASS_ID) ON VNF_IDX
  2583. GO
  2584.  
  2585. ALTER TABLE RIODS.ACTIVITY_STATE_HISTORY ADD CONSTRAINT ACTSTH_PK PRIMARY KEY (ACTIVITY_STATE_HISTORY_ID) ON VNF_IDX
  2586. GO
  2587.  
  2588. ALTER TABLE RIODS.TASK_STATE_HISTORY ADD CONSTRAINT TSKSTH_PK PRIMARY KEY (TASK_STATE_HISTORY_ID) ON VNF_IDX
  2589. GO
  2590.  
  2591. ALTER TABLE RIODS.REQUEST_CATEGORY ADD CONSTRAINT REQCAT_PK PRIMARY KEY (REQUEST_CATEGORY_ID) ON VNF_IDX
  2592. GO
  2593.  
  2594. ALTER TABLE RIODS.FILE_CLASSIFICATION ADD CONSTRAINT FILECLS_PK PRIMARY KEY (FILE_CLASS_ID) ON VNF_IDX
  2595. GO
  2596.  
  2597. ALTER TABLE RIODS.FILE_STREAM_CLASSIFICATION ADD CONSTRAINT FILESTRMCLS_PK PRIMARY KEY (FILE_STREAM_CLASS_ID) ON VNF_IDX
  2598. GO
  2599.  
  2600. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_PK PRIMARY KEY (REQCHANGE_HISTORY_ID) ON VNF_IDX
  2601. GO
  2602.  
  2603. ALTER TABLE RIODS.BUILD_CLASSIFICATION ADD CONSTRAINT BLDCLS_PK PRIMARY KEY (BUILD_CLASS_ID) ON VNF_IDX
  2604. GO
  2605.  
  2606. ALTER TABLE RIODS.BUILD_COMPILATION_RESULT ADD CONSTRAINT BLDCMPRES_PK PRIMARY KEY (BUILD_COMPRES_ID) ON VNF_IDX
  2607. GO
  2608.  
  2609. ALTER TABLE RIODS.BUILD_UNIT_RESULT ADD CONSTRAINT BLDJUNRES_PK PRIMARY KEY (BUILD_UNITRES_ID) ON VNF_IDX
  2610. GO
  2611.  
  2612. ALTER TABLE RIODS.BUILD_UNIT_EVENT ADD CONSTRAINT BLDJUNEVT_PK PRIMARY KEY (BUILD_UNIT_EVENT_ID) ON VNF_IDX
  2613. GO
  2614.  
  2615. ALTER TABLE RIODS.UNIT_TEST_RESULT ADD CONSTRAINT BLDJUNTST_PK PRIMARY KEY (UNIT_TEST_RESULT_ID) ON VNF_IDX
  2616. GO
  2617.  
  2618. ALTER TABLE RIODS.JOB ADD CONSTRAINT JOB_PK PRIMARY KEY (JOB_ID) ON VNF_IDX
  2619. GO
  2620.  
  2621. ALTER TABLE RIODS.JOB_RESULT ADD CONSTRAINT JOBRES_PK PRIMARY KEY (JOB_RESULT_ID) ON VNF_IDX
  2622. GO
  2623.  
  2624. ALTER TABLE RIODS.TESTSCRIPT ADD CONSTRAINT TESTSCRIPT_PK PRIMARY KEY (TESTSCRIPT_ID) ON VNF_IDX
  2625. GO
  2626.  
  2627. ALTER TABLE RIODS.TESTCASE_TESTSCRIPT_LOOKUP ADD CONSTRAINT TESTCSCRIPT_PK PRIMARY KEY (TESTCASE_ID,TESTSCRIPT_ID) ON VNF_IDX
  2628. GO
  2629.  
  2630. ALTER TABLE RIODS.ITERATION_DETAIL ADD CONSTRAINT ITERDET_PK PRIMARY KEY (ITERATION_ID) ON VNF_IDX
  2631. GO
  2632.  
  2633. ALTER TABLE RIODS.PROGRAM ADD CONSTRAINT PROGRAM_PK PRIMARY KEY (PROGRAM_ID) ON VNF_IDX
  2634. GO
  2635.  
  2636. ALTER TABLE RIODS.PROGRAM_DETAIL ADD CONSTRAINT PROGRAMDT_PK PRIMARY KEY (PROGRAM_ID) ON VNF_IDX
  2637. GO
  2638.  
  2639. ALTER TABLE RIODS.PROJECT_ALLOCATION ADD CONSTRAINT PROJALLO_PK PRIMARY KEY (PROJECT_ALLOCATION_ID) ON VNF_IDX
  2640. GO
  2641.  
  2642. ALTER TABLE RIODS.TIMESHEET ADD CONSTRAINT TIMESHEET_PK PRIMARY KEY(TIMESHEET_ID) ON VNF_IDX
  2643. GO
  2644.  
  2645. ALTER TABLE RIODS.PROFILE ADD CONSTRAINT PROFILE_PK PRIMARY KEY(PROFILE_ID) ON VNF_IDX
  2646. GO
  2647.  
  2648. ALTER TABLE RIODS.PROFILE_SKILL_LOOKUP ADD CONSTRAINT PROSKILL_PK PRIMARY KEY(PROFILE_ID, SKILL_ID) ON VNF_IDX
  2649. GO
  2650.  
  2651. ALTER TABLE RIODS.PROFILE_COMPETENCY_LOOKUP ADD CONSTRAINT PROCOMPETENCY_PK PRIMARY KEY (PROFILE_ID, COMPETENCY_ID) ON VNF_IDX
  2652. GO
  2653.  
  2654. ALTER TABLE RIODS.CHARGECODE ADD CONSTRAINT CHARGECODE_PK PRIMARY KEY (CHARGECODE_ID) ON VNF_IDX
  2655. GO
  2656.  
  2657. ALTER TABLE RIODS.TIMECODE ADD CONSTRAINT TIMECODE_PK PRIMARY KEY (TIMECODE_ID) ON VNF_IDX
  2658. GO
  2659.  
  2660. ALTER TABLE RIODS.TIMESHEET_TIMECODE_LOOKUP ADD CONSTRAINT TSTC_PK PRIMARY KEY(TIMESHEET_ID, TIMECODE_ID) ON VNF_IDX
  2661. GO
  2662.  
  2663. ALTER TABLE RIODS.OPERATING_TERRITORY ADD CONSTRAINT OPTERRITORY_PK PRIMARY KEY (TERRITORY_ID) ON VNF_IDX
  2664. GO
  2665.  
  2666. ALTER TABLE RIODS.COUNTRY ADD CONSTRAINT COUNTRY_PK PRIMARY KEY (COUNTRY_ID) ON VNF_IDX
  2667. GO
  2668.  
  2669. ALTER TABLE RIODS.PROVINCE_STATE ADD CONSTRAINT PROVSTATE_PK PRIMARY KEY (PROVINCE_STATE_ID) ON VNF_IDX
  2670. GO
  2671.  
  2672. ALTER TABLE RIODS.CITY ADD CONSTRAINT CITY_PK PRIMARY KEY (CITY_ID) ON VNF_IDX
  2673. GO
  2674.  
  2675. ALTER TABLE RIODS.ORGANIZATION ADD CONSTRAINT ORGANIZATION_PK PRIMARY KEY (ORGANIZATION_ID) ON VNF_IDX
  2676. GO
  2677.  
  2678. ALTER TABLE RIODS.PORTFOLIO ADD CONSTRAINT PORTFOLIO_PK PRIMARY KEY (PORTFOLIO_ID) ON VNF_IDX
  2679. GO
  2680.  
  2681. ALTER TABLE RIODS.PORTFOLIO_PROG_PROJ_LOOKUP ADD CONSTRAINT PORPROGPROJ_PK PRIMARY KEY (PORTFOLIO_ID,PROGRAM_ID,PROJECT_ID) ON VNF_IDX
  2682. GO
  2683.  
  2684. ALTER TABLE RIODS.REQUEST_TESTCASE_LOOKUP ADD CONSTRAINT REQUTCASE_PK PRIMARY KEY (REQUEST_ID, TESTCASE_ID, LINK_TYPE) ON VNF_IDX
  2685. GO
  2686.  
  2687. ALTER TABLE RIODS.REQUEST_STATE ADD CONSTRAINT REQUTST_PK PRIMARY KEY (REQUEST_STATE_ID) ON VNF_IDX
  2688. GO
  2689.  
  2690. ALTER TABLE RIODS.REQUEST_STATUS ADD CONSTRAINT REQUTSTUS_PK PRIMARY KEY (REQUEST_STATUS_ID) ON VNF_IDX
  2691. GO
  2692.  
  2693. ALTER TABLE RIODS.TEAM_ROLE ADD CONSTRAINT TEAMRL_PK PRIMARY KEY (TEAM_ROLE_ID) ON VNF_IDX
  2694. GO
  2695.  
  2696. ALTER TABLE RIODS.REQUEST_PRIORITY ADD CONSTRAINT REQUTPR_PK PRIMARY KEY (REQUEST_PRIORITY_ID) ON VNF_IDX
  2697. GO
  2698.  
  2699. ALTER TABLE RIODS.REQUEST_SEVERITY ADD CONSTRAINT REQUTSV_PK PRIMARY KEY (REQUEST_SEVERITY_ID) ON VNF_IDX
  2700. GO
  2701.  
  2702. ALTER TABLE RIODS.REQUEST_RESOLUTION ADD CONSTRAINT REQUTRES_PK PRIMARY KEY (REQUEST_RESOLUTION_ID) ON VNF_IDX
  2703. GO
  2704.  
  2705. ALTER TABLE RIODS.REQUEST_TYPE ADD CONSTRAINT REQUTTYP_PK PRIMARY KEY (REQUEST_TYPE_ID) ON VNF_IDX
  2706. GO
  2707.  
  2708. ALTER TABLE RIODS.PROJECT_RESOURCE_LOOKUP ADD CONSTRAINT PRJRESLK_PK PRIMARY KEY (PROJECT_ID,RESOURCE_ID) ON VNF_IDX
  2709. GO
  2710.  
  2711. ALTER TABLE RIODS.RISK_REQUEST_LOOKUP ADD CONSTRAINT RSKREQLK_PK PRIMARY KEY (RISK_ID,REQUEST_ID) ON VNF_IDX
  2712. GO
  2713.  
  2714. ALTER TABLE RIODS.TESTSUITE_CATEGORY_LOOKUP ADD CONSTRAINT TSTSUITECATLK_PK PRIMARY KEY (TESTSUITE_ID,TEST_CATEGORY_ID) ON VNF_IDX
  2715. GO
  2716.  
  2717. ALTER TABLE RIODS.TESTSUITE_TESTPLAN_LOOKUP ADD CONSTRAINT TSTSUITETPLNLK_PK PRIMARY KEY (TESTSUITE_ID,TESTPLAN_ID) ON VNF_IDX
  2718. GO
  2719.  
  2720. ALTER TABLE RIODS.TESTSUITE_EXECUTION_RECORD ADD CONSTRAINT TSEXECREC_PK PRIMARY KEY (TESTSUITE_EXECRECORD_ID) ON VNF_IDX
  2721. GO
  2722.  
  2723. ALTER TABLE RIODS.EXECWORKITEM_REQUEST_LOOKUP ADD CONSTRAINT EXWKITREQUE_PK PRIMARY KEY (EXECWORKITEM_ID, REQUEST_ID, LINK_TYPE) ON VNF_IDX
  2724. GO
  2725.  
  2726. ALTER TABLE RIODS.EXECUTION_STEP_RESULT ADD CONSTRAINT EXECSTEP_PK PRIMARY KEY (EXECUTION_STEP_RESULT_ID) ON VNF_IDX
  2727. GO
  2728.  
  2729. ALTER TABLE RIODS.EXECSTEPRES_REQUEST_LOOKUP ADD CONSTRAINT EXCSTRSREQUELK_PK PRIMARY KEY (EXECUTION_STEP_RESULT_ID,REQUEST_ID,LINK_TYPE) ON VNF_IDX
  2730. GO
  2731.  
  2732. ALTER TABLE RIODS.TESTSUITE_ELEMENT ADD CONSTRAINT TSTSUITELE_PK PRIMARY KEY (TESTSUITE_ELEMENT_ID) ON VNF_IDX
  2733. GO
  2734.  
  2735. ALTER TABLE RIODS.REQUIREMENT_LINK_TYPE ADD CONSTRAINT REQLINKTP_PK PRIMARY KEY (LINK_TYPE_ID) ON VNF_IDX
  2736. GO
  2737.  
  2738. ALTER TABLE RIODS.REQUEST_RELATIONAL_LINK ADD CONSTRAINT REQRELT_PK PRIMARY KEY (REQUEST_RELATION_ID) ON VNF_IDX
  2739. GO
  2740.  
  2741. ALTER TABLE RIODS.TESTSCRIPT_CATEGORY_LOOKUP ADD CONSTRAINT TSCATE_PK PRIMARY KEY (TESTSCRIPT_ID, TEST_CATEGORY_ID) ON VNF_IDX
  2742. GO
  2743.  
  2744. ALTER TABLE RIODS.EXECWORKITEM_CATEGORY_LOOKUP ADD CONSTRAINT EXWKICATEIT_PK PRIMARY KEY (EXECWORKITEM_ID, TEST_CATEGORY_ID) ON VNF_IDX
  2745. GO
  2746.  
  2747. ALTER TABLE RIODS.TSTSUITEXECREC_CATEGORY_LOOKUP ADD CONSTRAINT TSTSEXECRECCATE_PK PRIMARY KEY (TESTSUITE_EXECRECORD_ID, TEST_CATEGORY_ID) ON VNF_IDX
  2748. GO
  2749.  
  2750. ALTER TABLE RIODS.EXECRESULT_CATEGORY_LOOKUP ADD CONSTRAINT EXECRESCATE_PK PRIMARY KEY (EXECUTION_RESULT_ID, TEST_CATEGORY_ID) ON VNF_IDX
  2751. GO
  2752.  
  2753. ALTER TABLE RIODS.TESTSUITELOG_CATEGORY_LOOKUP ADD CONSTRAINT TESTSUITELOGCATE_PK PRIMARY KEY (TESTSUITELOG_ID, TEST_CATEGORY_ID) ON VNF_IDX
  2754. GO
  2755.  
  2756. ALTER TABLE RIODS.REQUEST_TESTPLAN_LOOKUP ADD CONSTRAINT REQTP_PK PRIMARY KEY (REQUEST_ID, TESTPLAN_ID, LINK_TYPE) ON VNF_IDX
  2757. GO
  2758.  
  2759. ALTER TABLE RIODS.REQUEST_TESTSCRIPT_LOOKUP ADD CONSTRAINT REQTSC_PK PRIMARY KEY (REQUEST_ID, TESTSCRIPT_ID, LINK_TYPE) ON VNF_IDX
  2760. GO
  2761.  
  2762. ALTER TABLE RIODS.REQUEST_TESTSUITE_LOOKUP ADD CONSTRAINT REQTSU_PK PRIMARY KEY (REQUEST_ID, TESTSUITE_ID, LINK_TYPE) ON VNF_IDX
  2763. GO
  2764.  
  2765. ALTER TABLE RIODS.REQUEST_TYPE_BINDING ADD CONSTRAINT REQTBING_PK PRIMARY KEY (REQUEST_TYPE_BINDING_ID) ON VNF_IDX
  2766. GO
  2767.  
  2768. ALTER TABLE RIODS.TEST_STATUS ADD CONSTRAINT TSTSTATUS_PK PRIMARY KEY (TEST_STATUS_ID) ON VNF_IDX
  2769. GO
  2770.  
  2771. ALTER TABLE RIODS.TESTSUITE_STATE ADD CONSTRAINT TSTSUITESTATE_PK PRIMARY KEY (TESTSUITE_STATE_ID) ON VNF_IDX
  2772. GO
  2773.  
  2774. ALTER TABLE RIODS.TESTSUITELOG_STATE ADD CONSTRAINT TSTSULOGSTATE_PK PRIMARY KEY (TESTSUITELOG_STATE_ID) ON VNF_IDX
  2775. GO
  2776.  
  2777. ALTER TABLE RIODS.EXECRESULT_STATE ADD CONSTRAINT EXECRESSTATE_PK PRIMARY KEY (EXECRESULT_STATE_ID) ON VNF_IDX
  2778. GO
  2779.  
  2780. ALTER TABLE RIODS.TESTCASE_STATE ADD CONSTRAINT TSTCASESTATE_PK PRIMARY KEY (TESTCASE_STATE_ID) ON VNF_IDX
  2781. GO
  2782.  
  2783. ALTER TABLE RIODS.TESTPLAN_STATE ADD CONSTRAINT TSTPLANSTATE_PK PRIMARY KEY (TESTPLAN_STATE_ID) ON VNF_IDX
  2784. GO
  2785.  
  2786. ALTER TABLE RIODS.TESTSCRIPT_STATE ADD CONSTRAINT TSTSCRPTSTATE_PK PRIMARY KEY (TESTSCRIPT_STATE_ID) ON VNF_IDX
  2787. GO
  2788.  
  2789. ALTER TABLE RIODS.TIMELINE ADD CONSTRAINT TIMELINE_PK PRIMARY KEY (TIMELINE_ID) ON VNF_IDX
  2790. GO
  2791.  
  2792. ALTER TABLE RIODS.REQUIREMENT_TESTSCRIPT_LOOKUP ADD CONSTRAINT REQTSTSRPT_PK PRIMARY KEY (REQUIREMENT_ID,TESTSCRIPT_ID,LINK_TYPE_NAME) ON VNF_IDX
  2793. GO
  2794.  
  2795. ALTER TABLE RIODS.TEST_PRIORITY ADD CONSTRAINT TSTPRIORITY_PK PRIMARY KEY (TEST_PRIORITY_ID) ON VNF_IDX
  2796. GO
  2797.  
  2798. ALTER TABLE RIODS.ACTIVITY_DETAIL ADD CONSTRAINT ACTDET_FK1 FOREIGN KEY (ACTIVITY_ID) REFERENCES RIODS.ACTIVITY (ACTIVITY_ID)
  2799. GO
  2800.  
  2801. ALTER TABLE RIODS.ACTIVITY ADD CONSTRAINT ACTIVITY_FK1 FOREIGN KEY (TASK_ID) REFERENCES RIODS.TASK (TASK_ID)
  2802. GO
  2803.  
  2804. ALTER TABLE RIODS.ACTIVITY ADD CONSTRAINT ACTIVITY_FK2 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  2805. GO
  2806.  
  2807. ALTER TABLE RIODS.ACTIVITY ADD CONSTRAINT ACTIVITY_FK3 FOREIGN KEY (FAILED_BUILD) REFERENCES RIODS.BUILD (BUILD_ID)
  2808. GO
  2809.  
  2810. ALTER TABLE RIODS.ACTIVITY ADD CONSTRAINT ACTIVITY_FK4 FOREIGN KEY (VALIDATION_BUILD) REFERENCES RIODS.BUILD (BUILD_ID)
  2811. GO
  2812.  
  2813. ALTER TABLE RIODS.ACTIVITY ADD CONSTRAINT ACTIVITY_FK5 FOREIGN KEY (NOTEST_BUILD) REFERENCES RIODS.BUILD (BUILD_ID)
  2814. GO
  2815.  
  2816. ALTER TABLE RIODS.ACTIVITY ADD CONSTRAINT ACTIVITY_FK6 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  2817. GO
  2818.  
  2819. ALTER TABLE RIODS.ACTIVITY ADD CONSTRAINT ACTIVITY_FK7 FOREIGN KEY (ACTIVITY_CLASS_ID) REFERENCES RIODS.ACTIVITY_CLASSIFICATION (ACTIVITY_CLASS_ID)
  2820. GO
  2821.  
  2822. ALTER TABLE RIODS.ACTIVITY ADD CONSTRAINT ACTIVITY_FK8 FOREIGN KEY (FILE_STREAM_ID) REFERENCES RIODS.FILE_STREAM (FILE_STREAM_ID)
  2823. GO
  2824.  
  2825. ALTER TABLE RIODS.ACTIVITY ADD CONSTRAINT ACTIVITY_FK9 FOREIGN KEY(PROFILE_ID) REFERENCES RIODS.PROFILE (PROFILE_ID)
  2826. GO
  2827.  
  2828. ALTER TABLE RIODS.ACTIVITY ADD CONSTRAINT ACTIVITY_FK10 FOREIGN KEY(CHARGECODE_ID) REFERENCES RIODS.CHARGECODE (CHARGECODE_ID)
  2829. GO
  2830.  
  2831. ALTER TABLE RIODS.REQUEST_ACTIVITY_LOOKUP ADD CONSTRAINT REQACT_FK1 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  2832. GO
  2833.  
  2834. ALTER TABLE RIODS.REQUEST_ACTIVITY_LOOKUP ADD CONSTRAINT REQACT_FK2 FOREIGN KEY (ACTIVITY_ID) REFERENCES RIODS.ACTIVITY (ACTIVITY_ID)
  2835. GO
  2836.  
  2837. ALTER TABLE RIODS.COMPONENT ADD CONSTRAINT COMPONENT_FK1 FOREIGN KEY (PRODUCT_ID) REFERENCES RIODS.PRODUCT (PRODUCT_ID)
  2838. GO
  2839.  
  2840. ALTER TABLE RIODS.COMPONENT ADD CONSTRAINT COMPONENT_FK3 FOREIGN KEY (COMPONENT_CLASS_ID) REFERENCES RIODS.COMPONENT_CLASSIFICATION(COMPONENT_CLASS_ID)
  2841. GO
  2842.  
  2843. ALTER TABLE RIODS.PROJECT_COMPONENT_LOOKUP ADD CONSTRAINT PRJCOMP_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  2844. GO
  2845.  
  2846. ALTER TABLE RIODS.PROJECT_COMPONENT_LOOKUP ADD CONSTRAINT PRJCOMP_FK2 FOREIGN KEY (COMPONENT_ID) REFERENCES RIODS.COMPONENT (COMPONENT_ID)
  2847. GO
  2848.  
  2849. ALTER TABLE RIODS.BUILD ADD CONSTRAINT BUILD_FK2 FOREIGN KEY (COMPONENT_ID) REFERENCES RIODS.COMPONENT (COMPONENT_ID)
  2850. GO
  2851.  
  2852. ALTER TABLE RIODS.BUILD ADD CONSTRAINT BUILD_FK3 FOREIGN KEY (BASELINE_ID) REFERENCES RIODS.PROJECT_BASELINE (BASELINE_ID)
  2853. GO
  2854.  
  2855. ALTER TABLE RIODS.BUILD ADD CONSTRAINT BUILD_FK4 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  2856. GO
  2857.  
  2858. ALTER TABLE RIODS.BUILD ADD CONSTRAINT BUILD_FK5 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  2859. GO
  2860.  
  2861. ALTER TABLE RIODS.BUILD ADD CONSTRAINT BUILD_FK6 FOREIGN KEY (PROJECT_TYPE_ID) REFERENCES RIODS.PROJECT_TYPE (PROJECT_TYPE_ID)
  2862. GO
  2863.  
  2864. ALTER TABLE RIODS.BUILD ADD CONSTRAINT BUILD_FK7 FOREIGN KEY (BUILD_CLASS_ID) REFERENCES RIODS.BUILD_CLASSIFICATION (BUILD_CLASS_ID)
  2865. GO
  2866.  
  2867. ALTER TABLE RIODS.BUILD ADD CONSTRAINT BUILD_FK8 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  2868. GO
  2869.  
  2870. ALTER TABLE RIODS.BUILD ADD CONSTRAINT BUILD_FK9 FOREIGN KEY (TEAM_ID) REFERENCES RIODS.TEAM (TEAM_ID)
  2871. GO
  2872.  
  2873. ALTER TABLE RIODS.PROJECT_DETAIL ADD CONSTRAINT PROJECT_DETAIL_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  2874. GO
  2875.  
  2876. ALTER TABLE RIODS.REQUIREMENT ADD CONSTRAINT REQUIREMENT_FK1 FOREIGN KEY (PLANNED_ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  2877. GO
  2878.  
  2879. ALTER TABLE RIODS.REQUIREMENT ADD CONSTRAINT REQUIREMENT_FK2 FOREIGN KEY (ACTUAL_ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  2880. GO
  2881.  
  2882. ALTER TABLE RIODS.REQUIREMENT ADD CONSTRAINT REQUIREMENT_FK3 FOREIGN KEY (RELEASE_ID) REFERENCES RIODS.RELEASE (RELEASE_ID)
  2883. GO
  2884.  
  2885. ALTER TABLE RIODS.REQUIREMENT ADD CONSTRAINT REQUIREMENT_FK4 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  2886. GO
  2887.  
  2888. ALTER TABLE RIODS.REQUIREMENT ADD CONSTRAINT REQUIREMENT_FK5 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  2889. GO
  2890.  
  2891. ALTER TABLE RIODS.REQUIREMENT ADD CONSTRAINT REQUIREMENT_FK7 FOREIGN KEY (COMPONENT_ID) REFERENCES RIODS.COMPONENT (COMPONENT_ID)
  2892. GO
  2893.  
  2894. ALTER TABLE RIODS.REQUIREMENT ADD CONSTRAINT REQUIREMENT_FK8 FOREIGN KEY (REQUIREMENT_CLASS_ID) REFERENCES RIODS.REQUIREMENT_CLASSIFICATION (REQUIREMENT_CLASS_ID)
  2895. GO
  2896.  
  2897. ALTER TABLE RIODS.REQUIREMENT_COLLECTION ADD CONSTRAINT REQUI_COLLECT_FK1 FOREIGN KEY (RELEASE_ID) REFERENCES RIODS.RELEASE (RELEASE_ID)
  2898. GO
  2899.  
  2900. ALTER TABLE RIODS.REQUIREMENT_COLLECTION ADD CONSTRAINT REQUI_COLLECT_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  2901. GO
  2902.  
  2903. ALTER TABLE RIODS.REQUIREMENT_COLLECTION ADD CONSTRAINT REQUI_COLLECT_FK3 FOREIGN KEY (PLANNED_ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  2904. GO
  2905.  
  2906. ALTER TABLE RIODS.REQUIREMENT_COLLECTION ADD CONSTRAINT REQUI_COLLECT_FK4 FOREIGN KEY (ACTUAL_ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  2907. GO
  2908.  
  2909. ALTER TABLE RIODS.REQUICOL_REQUIREMENT_LOOKUP ADD CONSTRAINT REQUICOLLECT_FK1 FOREIGN KEY (REQUIREMENT_COLLECTION_ID) REFERENCES RIODS.REQUIREMENT_COLLECTION (REQUIREMENT_COLLECTION_ID)
  2910. GO
  2911.  
  2912. ALTER TABLE RIODS.REQUICOL_REQUIREMENT_LOOKUP ADD CONSTRAINT REQUICOLLECT_FK2 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  2913. GO
  2914.  
  2915. ALTER TABLE RIODS.REQUICOL_TESTPLAN_LOOKUP ADD CONSTRAINT REQUICOL_TESTP_FK1 FOREIGN KEY (REQUIREMENT_COLLECTION_ID) REFERENCES RIODS.REQUIREMENT_COLLECTION (REQUIREMENT_COLLECTION_ID)
  2916. GO
  2917.  
  2918. ALTER TABLE RIODS.REQUICOL_TESTPLAN_LOOKUP ADD CONSTRAINT REQUICOL_TESTP_FK2 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  2919. GO
  2920.  
  2921. ALTER TABLE RIODS.REQUIREMENT_REVISION_HISTORY ADD CONSTRAINT REQREV_FK1 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  2922. GO
  2923.  
  2924. ALTER TABLE RIODS.REQUIREMENT_REVISION_HISTORY ADD CONSTRAINT REQREV_FK2 FOREIGN KEY (RESOURCE_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  2925. GO
  2926.  
  2927. ALTER TABLE RIODS.RESOURCE ADD CONSTRAINT RESOURCE_FK1 FOREIGN KEY (POOL_ID) REFERENCES RIODS.POOL (POOL_ID)
  2928. GO
  2929.  
  2930. ALTER TABLE RIODS.RESOURCE ADD CONSTRAINT RESOURCE_FK2 FOREIGN KEY (CITY_ID) REFERENCES RIODS.CITY (CITY_ID)
  2931. GO
  2932.  
  2933. ALTER TABLE RIODS.RESOURCE ADD CONSTRAINT RESOURCE_FK3 FOREIGN KEY (ORGANIZATION_ID) REFERENCES RIODS.ORGANIZATION (ORGANIZATION_ID)
  2934. GO
  2935.  
  2936. ALTER TABLE RIODS.RESOURCE_SKILL_LOOKUP ADD CONSTRAINT RESSKILL_FK1 FOREIGN KEY (RESOURCE_ID) REFERENCES RIODS.RESOURCE(RESOURCE_ID)
  2937. GO
  2938.  
  2939. ALTER TABLE RIODS.RESOURCE_SKILL_LOOKUP ADD CONSTRAINT RESSKILL_FK FOREIGN KEY(SKILL_ID) REFERENCES RIODS.SKILL(SKILL_ID)
  2940. GO
  2941.  
  2942. ALTER TABLE RIODS.RESOURCE_COMPETENCY_LOOKUP ADD CONSTRAINT RESCOMPETENCY_FK1 FOREIGN KEY (RESOURCE_ID) REFERENCES RIODS.RESOURCE(RESOURCE_ID)
  2943. GO
  2944.  
  2945. ALTER TABLE RIODS.RESOURCE_COMPETENCY_LOOKUP ADD CONSTRAINT RESCOMPETENCY_FK FOREIGN KEY(COMPETENCY_ID) REFERENCES RIODS.COMPETENCY(COMPETENCY_ID)
  2946. GO
  2947.  
  2948. ALTER TABLE RIODS.TESTSUITE ADD CONSTRAINT TESTSUITE_FK1 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  2949. GO
  2950.  
  2951. ALTER TABLE RIODS.TESTSUITE ADD CONSTRAINT TESTSUITE_FK2 FOREIGN KEY (CONFIGURATION_ID) REFERENCES RIODS.CONFIGURATION (CONFIGURATION_ID)
  2952. GO
  2953.  
  2954. ALTER TABLE RIODS.TESTSUITE ADD CONSTRAINT TESTSUITE_FK3 FOREIGN KEY (ASSETREGISTRY_ID) REFERENCES RIODS.ASSETREGISTRY (ASSETREGISTRY_ID)
  2955. GO
  2956.  
  2957. ALTER TABLE RIODS.TESTSUITE ADD CONSTRAINT TESTSUITE_FK4 FOREIGN KEY (TESTSUITE_CLASS_ID) REFERENCES RIODS.TESTSUITE_CLASSIFICATION (TESTSUITE_CLASS_ID)
  2958. GO
  2959.  
  2960. ALTER TABLE RIODS.TESTSUITE ADD CONSTRAINT TESTSUITE_FK5 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  2961. GO
  2962.  
  2963. ALTER TABLE RIODS.TESTSUITE ADD CONSTRAINT TESTSUITE_FK6 FOREIGN KEY (CREATOR_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  2964. GO
  2965.  
  2966. ALTER TABLE RIODS.TESTSUITE ADD CONSTRAINT TESTSUITE_FK7 FOREIGN KEY (TESTSUITE_STATE_ID) REFERENCES RIODS.TESTSUITE_STATE (TESTSUITE_STATE_ID)
  2967. GO
  2968.  
  2969. ALTER TABLE RIODS.TESTSUITE ADD CONSTRAINT TESTSUITE_FK8 FOREIGN KEY (TEST_PRIORITY_ID) REFERENCES RIODS.TEST_PRIORITY (TEST_PRIORITY_ID)
  2970. GO
  2971.  
  2972. ALTER TABLE RIODS.EXECUTION_RESULT ADD CONSTRAINT EXECRES_FK1 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  2973. GO
  2974.  
  2975. ALTER TABLE RIODS.EXECUTION_RESULT ADD CONSTRAINT EXECRES_FK2 FOREIGN KEY (BUILD_ID) REFERENCES RIODS.BUILD (BUILD_ID)
  2976. GO
  2977.  
  2978. ALTER TABLE RIODS.EXECUTION_RESULT ADD CONSTRAINT EXECRES_FK3 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  2979. GO
  2980.  
  2981. ALTER TABLE RIODS.EXECUTION_RESULT ADD CONSTRAINT EXECRES_FK4 FOREIGN KEY (TESTTYPE_ID) REFERENCES RIODS.TESTTYPE (TESTTYPE_ID)
  2982. GO
  2983.  
  2984. ALTER TABLE RIODS.EXECUTION_RESULT ADD CONSTRAINT EXECRES_FK5 FOREIGN KEY (TESTCASE_ID) REFERENCES RIODS.TESTCASE (TESTCASE_ID)
  2985. GO
  2986.  
  2987. ALTER TABLE RIODS.EXECUTION_RESULT ADD CONSTRAINT EXECRES_FK6 FOREIGN KEY (EXECRES_CLASS_ID) REFERENCES RIODS.EXECRESULT_CLASSIFICATION (EXECRES_CLASS_ID)
  2988. GO
  2989.  
  2990. ALTER TABLE RIODS.EXECUTION_RESULT ADD CONSTRAINT EXECRES_FK7 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  2991. GO
  2992.  
  2993. ALTER TABLE RIODS.EXECUTION_RESULT ADD CONSTRAINT EXECRES_FK8 FOREIGN KEY (TESTSCRIPT_ID) REFERENCES RIODS.TESTSCRIPT (TESTSCRIPT_ID)
  2994. GO
  2995.  
  2996. ALTER TABLE RIODS.EXECUTION_RESULT ADD CONSTRAINT EXECRES_FK9 FOREIGN KEY (EXECRESULT_STATE_ID) REFERENCES RIODS.EXECRESULT_STATE (EXECRESULT_STATE_ID)
  2997. GO
  2998.  
  2999. ALTER TABLE RIODS.EXECUTION_RESULT ADD CONSTRAINT EXECRES_FK10 FOREIGN KEY (LAB_RESOURCE_ID) REFERENCES RIODS.LAB_RESOURCE (LAB_RESOURCE_ID)
  3000. GO
  3001.  
  3002. ALTER TABLE RIODS.ITERATION ADD CONSTRAINT ITERATION_FK1 FOREIGN KEY (ASSETREGISTRY_ID) REFERENCES RIODS.ASSETREGISTRY (ASSETREGISTRY_ID)
  3003. GO
  3004.  
  3005. ALTER TABLE RIODS.ITERATION ADD CONSTRAINT ITERATION_FK4 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3006. GO
  3007.  
  3008. ALTER TABLE RIODS.ITERATION ADD CONSTRAINT ITERATION_FK5 FOREIGN KEY (PARENT_ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3009. GO
  3010.  
  3011. ALTER TABLE RIODS.ITERATION ADD CONSTRAINT ITERATION_FK6 FOREIGN KEY (TIMELINE_ID) REFERENCES RIODS.TIMELINE (TIMELINE_ID)
  3012. GO
  3013.  
  3014. ALTER TABLE RIODS.ITERATION_DETAIL ADD CONSTRAINT ITERDET_FK1 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3015. GO
  3016.  
  3017. ALTER TABLE RIODS.ITERATION_BASELINE ADD CONSTRAINT ITERBASELINE_FK2 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3018. GO
  3019.  
  3020. ALTER TABLE RIODS.ITERATION_BASELINE ADD CONSTRAINT ITERBASELINE_FK3 FOREIGN KEY (BASELINE_ID) REFERENCES RIODS.PROJECT_BASELINE (BASELINE_ID)
  3021. GO
  3022.  
  3023. ALTER TABLE RIODS.RELEASE ADD CONSTRAINT RELEASE_FK1 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3024. GO
  3025.  
  3026. ALTER TABLE RIODS.RELEASE ADD CONSTRAINT RELEASE_FK2 FOREIGN KEY (PRODUCT_ID) REFERENCES RIODS.PRODUCT (PRODUCT_ID)
  3027. GO
  3028.  
  3029. ALTER TABLE RIODS.RELEASE ADD CONSTRAINT RELEASE_FK3 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3030. GO
  3031.  
  3032. ALTER TABLE RIODS.PROJECT ADD CONSTRAINT PROJECT_FK1 FOREIGN KEY (PROJECT_MANAGER) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3033. GO
  3034.  
  3035. ALTER TABLE RIODS.PROJECT ADD CONSTRAINT PROJECT_FK2 FOREIGN KEY (PROJECT_CATEGORY_ID) REFERENCES RIODS.PROJECT_CATEGORY (PROJECT_CATEGORY_ID)
  3036. GO
  3037.  
  3038. ALTER TABLE RIODS.PROJECT ADD CONSTRAINT PROJECT_FK3 FOREIGN KEY (PROJECT_CLASS_ID) REFERENCES RIODS.PROJECT_CLASSIFICATION (PROJECT_CLASS_ID)
  3039. GO
  3040.  
  3041. ALTER TABLE RIODS.PROJECT ADD CONSTRAINT PROJECT_FK4 FOREIGN KEY(PROGRAM_ID) REFERENCES RIODS.PROGRAM(PROGRAM_ID)
  3042. GO
  3043.  
  3044. ALTER TABLE RIODS.TASK ADD CONSTRAINT TASK_FK1 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3045. GO
  3046.  
  3047. ALTER TABLE RIODS.TASK ADD CONSTRAINT TASK_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3048. GO
  3049.  
  3050. ALTER TABLE RIODS.TASK ADD CONSTRAINT TASK_FK3 FOREIGN KEY (TASK_CATEGORY_ID) REFERENCES RIODS.TASK_CATEGORY (TASK_CATEGORY_ID)
  3051. GO
  3052.  
  3053. ALTER TABLE RIODS.TASK ADD CONSTRAINT TASK_FK4 FOREIGN KEY (TASK_CLASS_ID) REFERENCES RIODS.TASK_CLASSIFICATION (TASK_CLASS_ID)
  3054. GO
  3055.  
  3056. ALTER TABLE RIODS.TASK ADD CONSTRAINT TASK_FK5 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3057. GO
  3058.  
  3059. ALTER TABLE RIODS.TASK_BASELINE ADD CONSTRAINT TASKBL_FK1 FOREIGN KEY (TASK_ID) REFERENCES RIODS.TASK (TASK_ID)
  3060. GO
  3061.  
  3062. ALTER TABLE RIODS.TASK_BASELINE ADD CONSTRAINT TASKBL_FK2 FOREIGN KEY (BASELINE_ID) REFERENCES RIODS.PROJECT_BASELINE (BASELINE_ID)
  3063. GO
  3064.  
  3065. ALTER TABLE RIODS.TASK_DETAIL ADD CONSTRAINT TASK_DETAIL_FK1 FOREIGN KEY (TASK_ID) REFERENCES RIODS.TASK (TASK_ID)
  3066. GO
  3067.  
  3068. ALTER TABLE RIODS.PROJECT_HIERARCHY ADD CONSTRAINT PROJECTHIER_FK1 FOREIGN KEY (PARENT_PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3069. GO
  3070.  
  3071. ALTER TABLE RIODS.PROJECT_HIERARCHY ADD CONSTRAINT PROJECTHIER_FK2 FOREIGN KEY (CHILD_PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3072. GO
  3073.  
  3074. ALTER TABLE RIODS.PROJECT_DETAIL ADD CONSTRAINT PROJECTDT_FK1 FOREIGN KEY (CURRENCY_ID) REFERENCES RIODS.CURRENCY (CURRENCY_ID)
  3075. GO
  3076.  
  3077. ALTER TABLE RIODS.PROJECT_TYPE ADD CONSTRAINT PRJTYPE_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3078. GO
  3079.  
  3080. ALTER TABLE RIODS.PROJECT_WORKCONFIGURATION ADD CONSTRAINT PRJWKCFG_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3081. GO
  3082.  
  3083. ALTER TABLE RIODS.PROJECT_WORKCONFIGURATION ADD CONSTRAINT PRJWKCFG_FK2 FOREIGN KEY (PROJECT_TYPE_ID) REFERENCES RIODS.PROJECT_TYPE (PROJECT_TYPE_ID)
  3084. GO
  3085.  
  3086. ALTER TABLE RIODS.PROJECT_CATEGORY ADD CONSTRAINT PRJCAT_FK1 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3087. GO
  3088.  
  3089. ALTER TABLE RIODS.PHASE ADD CONSTRAINT PRJPHASE_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3090. GO
  3091.  
  3092. ALTER TABLE RIODS.PROJECT_ROLE ADD CONSTRAINT PRJROLE_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3093. GO
  3094.  
  3095. ALTER TABLE RIODS.PROJECT_ROLE ADD CONSTRAINT PRJROLE_FK2 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3096. GO
  3097.  
  3098. ALTER TABLE RIODS.PROJECT_ROLE_MEMBER_LOOKUP ADD CONSTRAINT PRJROLELK_FK1 FOREIGN KEY (PROJECT_ROLE_ID) REFERENCES RIODS.PROJECT_ROLE (PROJECT_ROLE_ID)
  3099. GO
  3100.  
  3101. ALTER TABLE RIODS.PROJECT_ROLE_MEMBER_LOOKUP ADD CONSTRAINT PRJROLELK_FK2 FOREIGN KEY (RESOURCE_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3102. GO
  3103.  
  3104. ALTER TABLE RIODS.TASK_REQUIREMENT_LOOKUP ADD CONSTRAINT TSKREQ_FK1 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3105. GO
  3106.  
  3107. ALTER TABLE RIODS.TASK_REQUIREMENT_LOOKUP ADD CONSTRAINT TSKREQ_FK2 FOREIGN KEY (TASK_ID) REFERENCES RIODS.TASK (TASK_ID)
  3108. GO
  3109.  
  3110. ALTER TABLE RIODS.CONFIGURATION ADD CONSTRAINT CONFIGURATION_FK1 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3111. GO
  3112.  
  3113. ALTER TABLE RIODS.CONFIGURATION ADD CONSTRAINT CONFIGURATION_FK2 FOREIGN KEY (CONFIGURATION_CLASS_ID) REFERENCES RIODS.CONFIGURATION_CLASSIFICATION (CONFIGURATION_CLASS_ID)
  3114. GO
  3115.  
  3116. ALTER TABLE RIODS.CONFIGURATION ADD CONSTRAINT CONFIGURATION_FK3 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3117. GO
  3118.  
  3119. ALTER TABLE RIODS.CONFIGURATION_ATTRIBUTE_LOOKUP ADD CONSTRAINT CFGATTR_ATTR_FK1 FOREIGN KEY (CONFIGURATION_ATTRIBUTE_ID) REFERENCES RIODS.CONFIGURATION_ATTRIBUTE (CONFIGURATION_ATTRIBUTE_ID)
  3120. GO
  3121.  
  3122. ALTER TABLE RIODS.CONFIGURATION_ATTRIBUTE_LOOKUP ADD CONSTRAINT CFGATTR_ATTR_FK2 FOREIGN KEY (CONFIGURATION_ID) REFERENCES RIODS.CONFIGURATION (CONFIGURATION_ID)
  3123. GO
  3124.  
  3125. ALTER TABLE RIODS.TESTSUITE_ITERATION_LOOKUP ADD CONSTRAINT TSTITER_FK1 FOREIGN KEY (TESTSUITE_ID) REFERENCES RIODS.TESTSUITE (TESTSUITE_ID)
  3126. GO
  3127.  
  3128. ALTER TABLE RIODS.TESTSUITE_ITERATION_LOOKUP ADD CONSTRAINT TSTITER_FK2 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3129. GO
  3130.  
  3131. ALTER TABLE RIODS.TESTPLAN ADD CONSTRAINT TESTPLAN_FK1 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3132. GO
  3133.  
  3134. ALTER TABLE RIODS.TESTPLAN ADD CONSTRAINT TESTPLAN_FK2 FOREIGN KEY (ASSETREGISTRY_ID) REFERENCES RIODS.ASSETREGISTRY (ASSETREGISTRY_ID)
  3135. GO
  3136.  
  3137. ALTER TABLE RIODS.TESTPLAN ADD CONSTRAINT TESTPLAN_FK3 FOREIGN KEY (TESTPLAN_CLASS_ID) REFERENCES RIODS.TESTPLAN_CLASSIFICATION (TESTPLAN_CLASS_ID)
  3138. GO
  3139.  
  3140. ALTER TABLE RIODS.TESTPLAN ADD CONSTRAINT TESTPLAN_FK4 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3141. GO
  3142.  
  3143. ALTER TABLE RIODS.TESTPLAN ADD CONSTRAINT TESTPLAN_FK5 FOREIGN KEY (TESTPLAN_STATE_ID) REFERENCES RIODS.TESTPLAN_STATE (TESTPLAN_STATE_ID)
  3144. GO
  3145.  
  3146. ALTER TABLE RIODS.TESTPLAN ADD CONSTRAINT TESTPLAN_FK6 FOREIGN KEY (TEST_PRIORITY_ID) REFERENCES RIODS.TEST_PRIORITY (TEST_PRIORITY_ID)
  3147. GO
  3148.  
  3149. ALTER TABLE RIODS.TESTPLAN_ITERATION_LOOKUP ADD CONSTRAINT TSPLNITER_FK1 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  3150. GO
  3151.  
  3152. ALTER TABLE RIODS.TESTPLAN_ITERATION_LOOKUP ADD CONSTRAINT TSPLNITER_FK2 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3153. GO
  3154.  
  3155. ALTER TABLE RIODS.TESTCASE ADD CONSTRAINT TESTCASE_FK1 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3156. GO
  3157.  
  3158. ALTER TABLE RIODS.TESTCASE ADD CONSTRAINT TESTCASE_FK2 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  3159. GO
  3160.  
  3161. ALTER TABLE RIODS.TESTCASE ADD CONSTRAINT TESTCASE_FK3 FOREIGN KEY (COMPONENT_ID) REFERENCES RIODS.COMPONENT (COMPONENT_ID)
  3162. GO
  3163.  
  3164. ALTER TABLE RIODS.TESTCASE ADD CONSTRAINT TESTCASE_FK4 FOREIGN KEY (TESTCASE_CLASS_ID) REFERENCES RIODS.TESTCASE_CLASSIFICATION (TESTCASE_CLASS_ID)
  3165. GO
  3166.  
  3167. ALTER TABLE RIODS.TESTCASE ADD CONSTRAINT TESTCASE_FK5 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3168. GO
  3169.  
  3170. ALTER TABLE RIODS.TESTCASE ADD CONSTRAINT TESTCASE_FK6 FOREIGN KEY (TESTCASE_STATE_ID) REFERENCES RIODS.TESTCASE_STATE (TESTCASE_STATE_ID)
  3171. GO
  3172.  
  3173. ALTER TABLE RIODS.TESTCASE ADD CONSTRAINT TESTCASE_FK7 FOREIGN KEY (TEST_PRIORITY_ID) REFERENCES RIODS.TEST_PRIORITY (TEST_PRIORITY_ID)
  3174. GO
  3175.  
  3176. ALTER TABLE RIODS.TESTCASE_TESTSCRIPT_LOOKUP ADD CONSTRAINT TESTCSCRIPT_FK1 FOREIGN KEY (TESTCASE_ID) REFERENCES RIODS.TESTCASE (TESTCASE_ID)
  3177. GO
  3178.  
  3179. ALTER TABLE RIODS.TESTCASE_TESTSCRIPT_LOOKUP ADD CONSTRAINT TESTCSCRIPT_FK2 FOREIGN KEY (TESTSCRIPT_ID) REFERENCES RIODS.TESTSCRIPT (TESTSCRIPT_ID)
  3180. GO
  3181.  
  3182. ALTER TABLE RIODS.TESTCASE_ITERATION_LOOKUP ADD CONSTRAINT TESTCITER_FK1 FOREIGN KEY (TESTCASE_ID) REFERENCES RIODS.TESTCASE (TESTCASE_ID)
  3183. GO
  3184.  
  3185. ALTER TABLE RIODS.TESTCASE_ITERATION_LOOKUP ADD CONSTRAINT TESTCITER_FK2 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3186. GO
  3187.  
  3188. ALTER TABLE RIODS.REQUIREMENT_TESTCASE_LOOKUP ADD CONSTRAINT REQTEST_FK1 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3189. GO
  3190.  
  3191. ALTER TABLE RIODS.REQUIREMENT_TESTCASE_LOOKUP ADD CONSTRAINT REQTEST_FK2 FOREIGN KEY (TESTCASE_ID) REFERENCES RIODS.TESTCASE (TESTCASE_ID)
  3192. GO
  3193.  
  3194. ALTER TABLE RIODS.REQUIREMENT_TESTPLAN_LOOKUP ADD CONSTRAINT REQTESTP_FK1 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3195. GO
  3196.  
  3197. ALTER TABLE RIODS.REQUIREMENT_TESTPLAN_LOOKUP ADD CONSTRAINT REQTESTP_FK2 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  3198. GO
  3199.  
  3200. ALTER TABLE RIODS.REQUIREMENT_TESTSUITE_LOOKUP ADD CONSTRAINT REQTESTS_FK1 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3201. GO
  3202.  
  3203. ALTER TABLE RIODS.REQUIREMENT_TESTSUITE_LOOKUP ADD CONSTRAINT REQTESTS_FK2 FOREIGN KEY (TESTSUITE_ID) REFERENCES RIODS.TESTSUITE (TESTSUITE_ID)
  3204. GO
  3205.  
  3206. ALTER TABLE RIODS.REQUIREMENT_REQUIREMENT_LOOKUP ADD CONSTRAINT REQTREQ_FK1 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3207. GO
  3208.  
  3209. ALTER TABLE RIODS.REQUIREMENT_REQUIREMENT_LOOKUP ADD CONSTRAINT REQTREQ_FK2 FOREIGN KEY (CREQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3210. GO
  3211.  
  3212. ALTER TABLE RIODS.REQUIREMENT_HIERARCHY ADD CONSTRAINT REQHIER_FK1 FOREIGN KEY (PRED_REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3213. GO
  3214.  
  3215. ALTER TABLE RIODS.REQUIREMENT_HIERARCHY ADD CONSTRAINT REQHIER_FK2 FOREIGN KEY (SUCC_REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3216. GO
  3217.  
  3218. ALTER TABLE RIODS.REQUIREMENT_HIERARCHY ADD CONSTRAINT REQHIER_FK3 FOREIGN KEY (LINK_TYPE_ID) REFERENCES RIODS.REQUIREMENT_LINK_TYPE (LINK_TYPE_ID)
  3219. GO
  3220.  
  3221. ALTER TABLE RIODS.REQUEST_LINK ADD CONSTRAINT REQULINK_FK1 FOREIGN KEY (PRED_REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3222. GO
  3223.  
  3224. ALTER TABLE RIODS.REQUEST_LINK ADD CONSTRAINT REQULINK_FK2 FOREIGN KEY (SUCC_REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3225. GO
  3226.  
  3227. ALTER TABLE RIODS.EXECUTION_WORKITEM ADD CONSTRAINT EXECWKI_FK1 FOREIGN KEY (TESTCASE_ID) REFERENCES RIODS.TESTCASE (TESTCASE_ID)
  3228. GO
  3229.  
  3230. ALTER TABLE RIODS.EXECUTION_WORKITEM ADD CONSTRAINT EXECWKI_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3231. GO
  3232.  
  3233. ALTER TABLE RIODS.EXECUTION_WORKITEM ADD CONSTRAINT EXECWKI_FK3 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3234. GO
  3235.  
  3236. ALTER TABLE RIODS.EXECUTION_WORKITEM ADD CONSTRAINT EXECWKI_FK4 FOREIGN KEY (TESTTYPE_ID) REFERENCES RIODS.TESTTYPE (TESTTYPE_ID)
  3237. GO
  3238.  
  3239. ALTER TABLE RIODS.EXECUTION_WORKITEM ADD CONSTRAINT EXECWKI_FK5 FOREIGN KEY (CONFIGURATION_ID) REFERENCES RIODS.CONFIGURATION (CONFIGURATION_ID)
  3240. GO
  3241.  
  3242. ALTER TABLE RIODS.EXECUTION_WORKITEM ADD CONSTRAINT EXECWKI_FK7 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  3243. GO
  3244.  
  3245. ALTER TABLE RIODS.EXECUTION_WORKITEM ADD CONSTRAINT EXECWKI_FK9 FOREIGN KEY (EXECWORKIT_CLASS_ID) REFERENCES RIODS.EXECWORKITEM_CLASSIFICATION (EXECWORKIT_CLASS_ID)
  3246. GO
  3247.  
  3248. ALTER TABLE RIODS.EXECUTION_WORKITEM ADD CONSTRAINT EXECWKI_FK10 FOREIGN KEY (TESTSCRIPT_ID) REFERENCES RIODS.TESTSCRIPT (TESTSCRIPT_ID)
  3249. GO
  3250.  
  3251. ALTER TABLE RIODS.EXECUTION_WORKITEM ADD CONSTRAINT EXECWKI_FK11 FOREIGN KEY (TEST_PRIORITY_ID) REFERENCES RIODS.TEST_PRIORITY (TEST_PRIORITY_ID)
  3252. GO
  3253.  
  3254. ALTER TABLE RIODS.EXECWORKITEM_ITERATION_LOOKUP ADD CONSTRAINT EXWKIITER_FK1 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3255. GO
  3256.  
  3257. ALTER TABLE RIODS.EXECWORKITEM_ITERATION_LOOKUP ADD CONSTRAINT EXECWKITER_FK2 FOREIGN KEY (EXECWORKITEM_ID) REFERENCES RIODS.EXECUTION_WORKITEM (EXECWORKITEM_ID)
  3258. GO
  3259.  
  3260. ALTER TABLE RIODS.REQUIREMENT_EXECWRKITEM_LOOKUP ADD CONSTRAINT REQEXWKI_FK1 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3261. GO
  3262.  
  3263. ALTER TABLE RIODS.REQUIREMENT_EXECWRKITEM_LOOKUP ADD CONSTRAINT REQEXECWK_FK2 FOREIGN KEY (EXECWORKITEM_ID) REFERENCES RIODS.EXECUTION_WORKITEM (EXECWORKITEM_ID)
  3264. GO
  3265.  
  3266. ALTER TABLE RIODS.EXECWORKITEM_TESTSUITE_LOOKUP ADD CONSTRAINT EXWKITSU_FK1 FOREIGN KEY (TESTSUITE_ID) REFERENCES RIODS.TESTSUITE (TESTSUITE_ID)
  3267. GO
  3268.  
  3269. ALTER TABLE RIODS.EXECWORKITEM_TESTSUITE_LOOKUP ADD CONSTRAINT EXECWKTSU_FK2 FOREIGN KEY (EXECWORKITEM_ID) REFERENCES RIODS.EXECUTION_WORKITEM (EXECWORKITEM_ID)
  3270. GO
  3271.  
  3272. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3273. GO
  3274.  
  3275. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK10 FOREIGN KEY (BUILD_ID) REFERENCES RIODS.BUILD (BUILD_ID)
  3276. GO
  3277.  
  3278. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK11 FOREIGN KEY (PROJECT_CATEGORY_ID) REFERENCES RIODS.PROJECT_CATEGORY (PROJECT_CATEGORY_ID)
  3279. GO
  3280.  
  3281. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK12 FOREIGN KEY (TEAM_ID) REFERENCES RIODS.TEAM (TEAM_ID)
  3282. GO
  3283.  
  3284. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK13 FOREIGN KEY (PHASE_ID) REFERENCES RIODS.PHASE (PHASE_ID)
  3285. GO
  3286.  
  3287. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK2 FOREIGN KEY (COMPONENT_ID) REFERENCES RIODS.COMPONENT (COMPONENT_ID)
  3288. GO
  3289.  
  3290. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK3 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3291. GO
  3292.  
  3293. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK5 FOREIGN KEY (RELEASE_ID) REFERENCES RIODS.RELEASE (RELEASE_ID)
  3294. GO
  3295.  
  3296. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK6 FOREIGN KEY (FIXEDINRELEASE_ID) REFERENCES RIODS.RELEASE (RELEASE_ID)
  3297. GO
  3298.  
  3299. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK7 FOREIGN KEY (REQUEST_CLASS_ID) REFERENCES RIODS.REQUEST_CLASSIFICATION (REQUEST_CLASS_ID)
  3300. GO
  3301.  
  3302. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK8 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3303. GO
  3304.  
  3305. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK9 FOREIGN KEY (RESOLVER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3306. GO
  3307.  
  3308. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK14 FOREIGN KEY (REQUEST_STATE_ID) REFERENCES RIODS.REQUEST_STATE (REQUEST_STATE_ID)
  3309. GO
  3310.  
  3311. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK15 FOREIGN KEY (REQUEST_STATUS_ID) REFERENCES RIODS.REQUEST_STATUS (REQUEST_STATUS_ID)
  3312. GO
  3313.  
  3314. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK16 FOREIGN KEY (REQUEST_RESOLUTION_ID) REFERENCES RIODS.REQUEST_RESOLUTION (REQUEST_RESOLUTION_ID)
  3315. GO
  3316.  
  3317. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK17 FOREIGN KEY (REQUEST_SEVERITY_ID) REFERENCES RIODS.REQUEST_SEVERITY (REQUEST_SEVERITY_ID)
  3318. GO
  3319.  
  3320. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK18 FOREIGN KEY (REQUEST_PRIORITY_ID) REFERENCES RIODS.REQUEST_PRIORITY (REQUEST_PRIORITY_ID)
  3321. GO
  3322.  
  3323. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK19 FOREIGN KEY (REQUEST_TYPE_ID) REFERENCES RIODS.REQUEST_TYPE (REQUEST_TYPE_ID)
  3324. GO
  3325.  
  3326. ALTER TABLE RIODS.REQUEST ADD CONSTRAINT REQUEST_FK20 FOREIGN KEY (CREATOR_ID) REFERENCES RIODS.RESOURCE(RESOURCE_ID)
  3327. GO
  3328.  
  3329. ALTER TABLE RIODS.REQUEST_HIERARCHY ADD CONSTRAINT REQUHIST_FK1 FOREIGN KEY (PARENT_REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3330. GO
  3331.  
  3332. ALTER TABLE RIODS.REQUEST_HIERARCHY ADD CONSTRAINT REQUHIST_FK2 FOREIGN KEY (CHILD_REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3333. GO
  3334.  
  3335. ALTER TABLE RIODS.[FILE] ADD CONSTRAINT FILE_FK1 FOREIGN KEY (COMPONENT_ID) REFERENCES RIODS.COMPONENT (COMPONENT_ID)
  3336. GO
  3337.  
  3338. ALTER TABLE RIODS.[FILE] ADD CONSTRAINT FILE_FK2 FOREIGN KEY (FILE_CLASS_ID) REFERENCES RIODS.FILE_CLASSIFICATION (FILE_CLASS_ID)
  3339. GO
  3340.  
  3341. ALTER TABLE RIODS.FILE_VERSION ADD CONSTRAINT FILE_VERSION_FK1 FOREIGN KEY (FILE_ID) REFERENCES RIODS.[FILE] (FILE_ID)
  3342. GO
  3343.  
  3344. ALTER TABLE RIODS.FILE_VERSION ADD CONSTRAINT FILE_VERSION_FK2 FOREIGN KEY (AUTHOR_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3345. GO
  3346.  
  3347. ALTER TABLE RIODS.FILE_VERSION ADD CONSTRAINT FILE_VERSION_FK3 FOREIGN KEY (ACTIVITY_ID) REFERENCES RIODS.ACTIVITY (ACTIVITY_ID)
  3348. GO
  3349.  
  3350. ALTER TABLE RIODS.FILE_VERSION ADD CONSTRAINT FILE_VERSION_FK4 FOREIGN KEY (FILE_STREAM_ID) REFERENCES RIODS.FILE_STREAM (FILE_STREAM_ID)
  3351. GO
  3352.  
  3353. ALTER TABLE RIODS.FILE_VERSION ADD CONSTRAINT FILE_FK5 FOREIGN KEY (FILE_CLASS_ID) REFERENCES RIODS.FILE_CLASSIFICATION (FILE_CLASS_ID)
  3354. GO
  3355.  
  3356. ALTER TABLE RIODS.FILE_BASELINE ADD CONSTRAINT FBASE_FK1 FOREIGN KEY (COMPONENT_ID) REFERENCES RIODS.COMPONENT (COMPONENT_ID)
  3357. GO
  3358.  
  3359. ALTER TABLE RIODS.FILE_BASELINE_ACTIVITY_LOOKUP ADD CONSTRAINT FBACT_FK1 FOREIGN KEY (FILE_BASELINE_ID) REFERENCES RIODS.FILE_BASELINE(FILE_BASELINE_ID)
  3360. GO
  3361.  
  3362. ALTER TABLE RIODS.FILE_BASELINE_ACTIVITY_LOOKUP ADD CONSTRAINT FBACT_FK2 FOREIGN KEY (ACTIVITY_ID) REFERENCES RIODS.ACTIVITY (ACTIVITY_ID)
  3363. GO
  3364.  
  3365. ALTER TABLE RIODS.FILE_STREAM ADD CONSTRAINT FSTREAM_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3366. GO
  3367.  
  3368. ALTER TABLE RIODS.FILE_STREAM ADD CONSTRAINT FSTREAM_FK2 FOREIGN KEY (FILE_STREAM_CLASS_ID) REFERENCES RIODS.FILE_STREAM_CLASSIFICATION (FILE_STREAM_CLASS_ID)
  3369. GO
  3370.  
  3371. ALTER TABLE RIODS.CONFIG_EXECUTIONRES_LOOKUP ADD CONSTRAINT CFGEXECRES_FK1 FOREIGN KEY (CONFIGURATION_ID) REFERENCES RIODS.CONFIGURATION (CONFIGURATION_ID)
  3372. GO
  3373.  
  3374. ALTER TABLE RIODS.CONFIG_EXECUTIONRES_LOOKUP ADD CONSTRAINT CFGEXECRES_FK2 FOREIGN KEY (EXECUTION_RESULT_ID) REFERENCES RIODS.EXECUTION_RESULT (EXECUTION_RESULT_ID)
  3375. GO
  3376.  
  3377. ALTER TABLE RIODS.TESTSUITELOG ADD CONSTRAINT TESTSUITELOG_FK1 FOREIGN KEY (TESTSUITE_ID) REFERENCES RIODS.TESTSUITE (TESTSUITE_ID)
  3378. GO
  3379.  
  3380. ALTER TABLE RIODS.TESTSUITELOG ADD CONSTRAINT TESTSUITELOG_FK2 FOREIGN KEY (BUILD_ID) REFERENCES RIODS.BUILD (BUILD_ID)
  3381. GO
  3382.  
  3383. ALTER TABLE RIODS.TESTSUITELOG ADD CONSTRAINT TESTSUITELOG_FK3 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3384. GO
  3385.  
  3386. ALTER TABLE RIODS.TESTSUITELOG ADD CONSTRAINT TESTSUITELOG_FK4 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3387. GO
  3388.  
  3389. ALTER TABLE RIODS.TESTSUITELOG ADD CONSTRAINT TESTSUITELOG_FK5 FOREIGN KEY (TESTSUITELOG_CLASS_ID) REFERENCES RIODS.TESTSUITELOG_CLASSIFICATION (TESTSUITELOG_CLASS_ID)
  3390. GO
  3391.  
  3392. ALTER TABLE RIODS.TESTSUITELOG ADD CONSTRAINT TESTSUITELOG_FK6 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  3393. GO
  3394.  
  3395. ALTER TABLE RIODS.TESTSUITELOG ADD CONSTRAINT TESTSUITELOG_FK7 FOREIGN KEY (TESTSUITE_EXECRECORD_ID) REFERENCES RIODS.TESTSUITE_EXECUTION_RECORD (TESTSUITE_EXECRECORD_ID)
  3396. GO
  3397.  
  3398. ALTER TABLE RIODS.TESTSUITELOG ADD CONSTRAINT TESTSUITELOG_FK8 FOREIGN KEY (TESTSUITELOG_STATE_ID) REFERENCES RIODS.TESTSUITELOG_STATE (TESTSUITELOG_STATE_ID)
  3399. GO
  3400.  
  3401. ALTER TABLE RIODS.TESTSUITELOG_EXECRESULT_LOOKUP ADD CONSTRAINT STESEXECR_FK1 FOREIGN KEY (TESTSUITELOG_ID) REFERENCES RIODS.TESTSUITELOG (TESTSUITELOG_ID)
  3402. GO
  3403.  
  3404. ALTER TABLE RIODS.TESTSUITELOG_EXECRESULT_LOOKUP ADD CONSTRAINT STESEXECR_FK2 FOREIGN KEY (EXECUTION_RESULT_ID) REFERENCES RIODS.EXECUTION_RESULT (EXECUTION_RESULT_ID)
  3405. GO
  3406.  
  3407. ALTER TABLE RIODS.TASK_REQUEST_LOOKUP ADD CONSTRAINT TSKISSU_FK1 FOREIGN KEY (TASK_ID) REFERENCES RIODS.TASK (TASK_ID)
  3408. GO
  3409.  
  3410. ALTER TABLE RIODS.TASK_REQUEST_LOOKUP ADD CONSTRAINT TSKISSU_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3411. GO
  3412.  
  3413. ALTER TABLE RIODS.REQUIREMENT_REQUEST_LOOKUP ADD CONSTRAINT REQIREQ_FK1 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3414. GO
  3415.  
  3416. ALTER TABLE RIODS.REQUIREMENT_REQUEST_LOOKUP ADD CONSTRAINT REQREQ_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3417. GO
  3418.  
  3419. ALTER TABLE RIODS.REQUEST_CUSTOMER_LOOKUP ADD CONSTRAINT REQUCULK_FK1 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3420. GO
  3421.  
  3422. ALTER TABLE RIODS.REQUEST_STATE_HISTORY ADD CONSTRAINT REQSTATEHIST_FK1 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3423. GO
  3424.  
  3425. ALTER TABLE RIODS.REQUEST_STATE_HISTORY ADD CONSTRAINT REQSTATEHIST_FK2 FOREIGN KEY (PREV_REQUEST_STATE_ID) REFERENCES RIODS.REQUEST_STATE (REQUEST_STATE_ID)
  3426. GO
  3427.  
  3428. ALTER TABLE RIODS.REQUEST_STATE_HISTORY ADD CONSTRAINT REQSTATEHIST_FK3 FOREIGN KEY (REQUEST_STATE_ID) REFERENCES RIODS.REQUEST_STATE (REQUEST_STATE_ID)
  3429. GO
  3430.  
  3431. ALTER TABLE RIODS.REQUEST_STATE_HISTORY ADD CONSTRAINT REQSTATEHIST_FK4 FOREIGN KEY (PREV_REQUEST_STATUS_ID) REFERENCES RIODS.REQUEST_STATUS (REQUEST_STATUS_ID)
  3432. GO
  3433.  
  3434. ALTER TABLE RIODS.REQUEST_STATE_HISTORY ADD CONSTRAINT REQSTATEHIST_FK5 FOREIGN KEY (REQUEST_STATUS_ID) REFERENCES RIODS.REQUEST_STATUS (REQUEST_STATUS_ID)
  3435. GO
  3436.  
  3437. ALTER TABLE RIODS.REQUEST_CUSTOMER_LOOKUP ADD CONSTRAINT REQUCULK_FK2 FOREIGN KEY (CUSTOMER_ID) REFERENCES RIODS.CUSTOMER (CUSTOMER_ID)
  3438. GO
  3439.  
  3440. ALTER TABLE RIODS.REQUIREMENT_CUSTOMER_LOOKUP ADD CONSTRAINT REQUICLK_FK1 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3441. GO
  3442.  
  3443. ALTER TABLE RIODS.REQUIREMENT_CUSTOMER_LOOKUP ADD CONSTRAINT REQUICLK_FK2 FOREIGN KEY (CUSTOMER_ID) REFERENCES RIODS.CUSTOMER (CUSTOMER_ID)
  3444. GO
  3445.  
  3446. ALTER TABLE RIODS.EXECRES_REQUEST_LOOKUP ADD CONSTRAINT EXECRESREQ_FK1 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3447. GO
  3448.  
  3449. ALTER TABLE RIODS.EXECRES_REQUEST_LOOKUP ADD CONSTRAINT EXECRESREQ_FK2 FOREIGN KEY (EXECUTION_RESULT_ID) REFERENCES RIODS.EXECUTION_RESULT (EXECUTION_RESULT_ID)
  3450. GO
  3451.  
  3452. ALTER TABLE RIODS.RISK ADD CONSTRAINT RISK_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3453. GO
  3454.  
  3455. ALTER TABLE RIODS.RISK ADD CONSTRAINT RISK_FK2 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3456. GO
  3457.  
  3458. ALTER TABLE RIODS.RISK ADD CONSTRAINT RISK_FK3 FOREIGN KEY (RELEASE_ID) REFERENCES RIODS.RELEASE (RELEASE_ID)
  3459. GO
  3460.  
  3461. ALTER TABLE RIODS.RISK ADD CONSTRAINT RISK_FK4 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3462. GO
  3463.  
  3464. ALTER TABLE RIODS.RISK ADD CONSTRAINT RISK_FK5 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3465. GO
  3466.  
  3467. ALTER TABLE RIODS.RISK_STATE_HISTORY ADD CONSTRAINT RISKSTATEHIST_FK1 FOREIGN KEY (RISK_ID) REFERENCES RIODS.RISK (RISK_ID)
  3468. GO
  3469.  
  3470. ALTER TABLE RIODS.FACTOR ADD CONSTRAINT FACTOR_FK1 FOREIGN KEY (RISK_ID) REFERENCES RIODS.RISK (RISK_ID)
  3471. GO
  3472.  
  3473. ALTER TABLE RIODS.PROJECT_BASELINE ADD CONSTRAINT PRJBASELINE_FK1 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3474. GO
  3475.  
  3476. ALTER TABLE RIODS.PROJECT_BASELINE ADD CONSTRAINT PRJBASELINE_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3477. GO
  3478.  
  3479. ALTER TABLE RIODS.PROJECT_BASELINE ADD CONSTRAINT PRJBASELINE_FK3 FOREIGN KEY (FILE_STREAM_ID) REFERENCES RIODS.FILE_STREAM (FILE_STREAM_ID)
  3480. GO
  3481.  
  3482. ALTER TABLE RIODS.PROJ_BASELINE_BASELINE_LOOKUP ADD CONSTRAINT PRJBSLTOBSL_FK1 FOREIGN KEY (BASELINE_ID) REFERENCES RIODS.PROJECT_BASELINE (BASELINE_ID)
  3483. GO
  3484.  
  3485. ALTER TABLE RIODS.PROJ_BASELINE_BASELINE_LOOKUP ADD CONSTRAINT PRJBSLTOBSL_FK2 FOREIGN KEY (COMPBASELINE_ID) REFERENCES RIODS.PROJECT_BASELINE (BASELINE_ID)
  3486. GO
  3487.  
  3488. ALTER TABLE RIODS.COMMENT ADD CONSTRAINT COMMENT_FK1 FOREIGN KEY (RESPONSE_COMMENT_ID) REFERENCES RIODS.COMMENT (COMMENT_ID)
  3489. GO
  3490.  
  3491. ALTER TABLE RIODS.COMMENT ADD CONSTRAINT COMMENT_FK2 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3492. GO
  3493.  
  3494. ALTER TABLE RIODS.COMMENT ADD CONSTRAINT COMMENT_FK3 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3495. GO
  3496.  
  3497. ALTER TABLE RIODS.COMMENT ADD CONSTRAINT COMMENT_FK4 FOREIGN KEY (TASK_ID) REFERENCES RIODS.TASK (TASK_ID)
  3498. GO
  3499.  
  3500. ALTER TABLE RIODS.COMMENT ADD CONSTRAINT COMMENT_FK5 FOREIGN KEY (ACTIVITY_ID) REFERENCES RIODS.ACTIVITY (ACTIVITY_ID)
  3501. GO
  3502.  
  3503. ALTER TABLE RIODS.PROJECT_WORKCONFIG_HIERARCHY ADD CONSTRAINT PRJWCFGH_FK1 FOREIGN KEY(PARENT_WKCFG_ID) REFERENCES RIODS.PROJECT_WORKCONFIGURATION (PROJECT_WKCFG_ID)
  3504. GO
  3505.  
  3506. ALTER TABLE RIODS.PROJECT_WORKCONFIG_HIERARCHY ADD CONSTRAINT PRJWCFGH_FK2 FOREIGN KEY(CHILD_WKCFG_ID) REFERENCES RIODS.PROJECT_WORKCONFIGURATION (PROJECT_WKCFG_ID)
  3507. GO
  3508.  
  3509. ALTER TABLE RIODS.EXECRES_EXECWKITEM_LOOKUP ADD CONSTRAINT EXECRESWK_FK1 FOREIGN KEY (EXECUTION_RESULT_ID) REFERENCES RIODS.EXECUTION_RESULT (EXECUTION_RESULT_ID)
  3510. GO
  3511.  
  3512. ALTER TABLE RIODS.EXECRES_EXECWKITEM_LOOKUP ADD CONSTRAINT EXECRESWK_FK2 FOREIGN KEY (EXECWORKITEM_ID) REFERENCES RIODS.EXECUTION_WORKITEM (EXECWORKITEM_ID)
  3513. GO
  3514.  
  3515. ALTER TABLE RIODS.CONFIG_EXECUTIONWORKITM_LOOKUP ADD CONSTRAINT CFGEXECWK_FK1 FOREIGN KEY (CONFIGURATION_ID) REFERENCES RIODS.CONFIGURATION (CONFIGURATION_ID)
  3516. GO
  3517.  
  3518. ALTER TABLE RIODS.CONFIG_EXECUTIONWORKITM_LOOKUP ADD CONSTRAINT CFGEXECWK_FK2 FOREIGN KEY (EXECWORKITEM_ID) REFERENCES RIODS.EXECUTION_WORKITEM (EXECWORKITEM_ID)
  3519. GO
  3520.  
  3521. ALTER TABLE RIODS.TESTPLAN_CATEGORY_LOOKUP ADD CONSTRAINT TPLNCAT_FK1 FOREIGN KEY (TEST_CATEGORY_ID) REFERENCES RIODS.TEST_CATEGORY (TEST_CATEGORY_ID)
  3522. GO
  3523.  
  3524. ALTER TABLE RIODS.TESTPLAN_CATEGORY_LOOKUP ADD CONSTRAINT TPLNCAT_FK2 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  3525. GO
  3526.  
  3527. ALTER TABLE RIODS.TESTCASE_CATEGORY_LOOKUP ADD CONSTRAINT TCASECAT_FK1 FOREIGN KEY (TEST_CATEGORY_ID) REFERENCES RIODS.TEST_CATEGORY (TEST_CATEGORY_ID)
  3528. GO
  3529.  
  3530. ALTER TABLE RIODS.TESTCASE_CATEGORY_LOOKUP ADD CONSTRAINT TCASECAT_FK2 FOREIGN KEY (TESTCASE_ID) REFERENCES RIODS.TESTCASE (TESTCASE_ID)
  3531. GO
  3532.  
  3533. ALTER TABLE RIODS.TESTSUITE_TESTCASE_LOOKUP ADD CONSTRAINT TSUTCASE_FK1 FOREIGN KEY (TESTCASE_ID) REFERENCES RIODS.TESTCASE (TESTCASE_ID)
  3534. GO
  3535.  
  3536. ALTER TABLE RIODS.TESTSUITE_TESTCASE_LOOKUP ADD CONSTRAINT TSUTCASE_FK2 FOREIGN KEY (TESTSUITE_ID) REFERENCES RIODS.TESTSUITE (TESTSUITE_ID)
  3537. GO
  3538.  
  3539. ALTER TABLE RIODS.TESTSUITE_TESTSUITELOG_LOOKUP ADD CONSTRAINT TSUTSULG_FK1 FOREIGN KEY (TESTSUITE_ID) REFERENCES RIODS.TESTSUITE (TESTSUITE_ID)
  3540. GO
  3541.  
  3542. ALTER TABLE RIODS.TESTSUITE_TESTSUITELOG_LOOKUP ADD CONSTRAINT TSUTSULG_FK2 FOREIGN KEY (TESTSUITELOG_ID) REFERENCES RIODS.TESTSUITELOG (TESTSUITELOG_ID)
  3543. GO
  3544.  
  3545. ALTER TABLE RIODS.TESTPLAN_TESTPLAN_HIERARCHY ADD CONSTRAINT TPLNPC_FK1 FOREIGN KEY (PARENT_TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  3546. GO
  3547.  
  3548. ALTER TABLE RIODS.TESTPLAN_TESTPLAN_HIERARCHY ADD CONSTRAINT TPLNPC_FK2 FOREIGN KEY (CHILD_TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  3549. GO
  3550.  
  3551. ALTER TABLE RIODS.TESTPLAN_TESTCASE_LOOKUP ADD CONSTRAINT TPLNTC_FK1 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN(TESTPLAN_ID)
  3552. GO
  3553.  
  3554. ALTER TABLE RIODS.TESTPLAN_TESTCASE_LOOKUP ADD CONSTRAINT TPLNTC_FK2 FOREIGN KEY (TESTCASE_ID) REFERENCES RIODS.TESTCASE (TESTCASE_ID)
  3555. GO
  3556.  
  3557. ALTER TABLE RIODS.LAB_RESOURCE ADD CONSTRAINT LABRES_FK1 FOREIGN KEY (RESOURCE_GROUP_ID) REFERENCES RIODS.RESOURCE_GROUP (RESOURCE_GROUP_ID)
  3558. GO
  3559.  
  3560. ALTER TABLE RIODS.LAB_RESOURCE ADD CONSTRAINT LABRES_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3561. GO
  3562.  
  3563. ALTER TABLE RIODS.RESOURCE_GROUP ADD CONSTRAINT RESGRP_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3564. GO
  3565.  
  3566. ALTER TABLE RIODS.RESERVATION ADD CONSTRAINT RESERV_FK1 FOREIGN KEY (LAB_RESOURCE_ID) REFERENCES RIODS.LAB_RESOURCE (LAB_RESOURCE_ID)
  3567. GO
  3568.  
  3569. ALTER TABLE RIODS.RESERVATION ADD CONSTRAINT RESERV_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3570. GO
  3571.  
  3572. ALTER TABLE RIODS.ACTIVITY_STATE_HISTORY ADD CONSTRAINT ACTSTH_FK1 FOREIGN KEY (ACTIVITY_ID) REFERENCES RIODS.ACTIVITY (ACTIVITY_ID)
  3573. GO
  3574.  
  3575. ALTER TABLE RIODS.TASK_STATE_HISTORY ADD CONSTRAINT TSKSTH_FK1 FOREIGN KEY (TASK_ID) REFERENCES RIODS.TASK (TASK_ID)
  3576. GO
  3577.  
  3578. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_FK1 FOREIGN KEY (REQUEST_CLASS_ID) REFERENCES RIODS.REQUEST_CLASSIFICATION (REQUEST_CLASS_ID)
  3579. GO
  3580.  
  3581. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3582. GO
  3583.  
  3584. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_FK3 FOREIGN KEY (PREV_TEAM_ID) REFERENCES RIODS.TEAM (TEAM_ID)
  3585. GO
  3586.  
  3587. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_FK4 FOREIGN KEY (PREV_REQUEST_CATEGORY_ID) REFERENCES RIODS.REQUEST_CATEGORY (REQUEST_CATEGORY_ID)
  3588. GO
  3589.  
  3590. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_FK5 FOREIGN KEY (PREV_ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3591. GO
  3592.  
  3593. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_FK6 FOREIGN KEY (PREV_OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3594. GO
  3595.  
  3596. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_FK7 FOREIGN KEY (PREV_REQUEST_STATE_ID) REFERENCES RIODS.REQUEST_STATE (REQUEST_STATE_ID)
  3597. GO
  3598.  
  3599. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_FK8 FOREIGN KEY (PREV_REQUEST_STATUS_ID) REFERENCES RIODS.REQUEST_STATUS (REQUEST_STATUS_ID)
  3600. GO
  3601.  
  3602. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_FK9 FOREIGN KEY (PREV_REQUEST_PRIORITY_ID) REFERENCES RIODS.REQUEST_PRIORITY (REQUEST_PRIORITY_ID)
  3603. GO
  3604.  
  3605. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_FK10 FOREIGN KEY (PREV_REQUEST_SEVERITY_ID) REFERENCES RIODS.REQUEST_SEVERITY (REQUEST_SEVERITY_ID)
  3606. GO
  3607.  
  3608. ALTER TABLE RIODS.REQUEST_CHANGE_HISTORY ADD CONSTRAINT REQCGNGH_FK11 FOREIGN KEY (PREV_REQUEST_TYPE_ID) REFERENCES RIODS.REQUEST_TYPE (REQUEST_TYPE_ID)
  3609. GO
  3610.  
  3611. ALTER TABLE RIODS.BUILD_COMPILATION_RESULT ADD CONSTRAINT BLDCMPRES_FK1 FOREIGN KEY (COMPONENT_ID) REFERENCES RIODS.COMPONENT (COMPONENT_ID)
  3612. GO
  3613.  
  3614. ALTER TABLE RIODS.BUILD_COMPILATION_RESULT ADD CONSTRAINT BLDCMPRES_FK2 FOREIGN KEY (BUILD_ID) REFERENCES RIODS.BUILD (BUILD_ID)
  3615. GO
  3616.  
  3617. ALTER TABLE RIODS.BUILD_UNIT_RESULT ADD CONSTRAINT BLDJUNRES_FK1 FOREIGN KEY (COMPONENT_ID) REFERENCES RIODS.COMPONENT (COMPONENT_ID)
  3618. GO
  3619.  
  3620. ALTER TABLE RIODS.BUILD_UNIT_RESULT ADD CONSTRAINT BLDJUNRES_FK2 FOREIGN KEY (BUILD_ID) REFERENCES RIODS.BUILD (BUILD_ID)
  3621. GO
  3622.  
  3623. ALTER TABLE RIODS.BUILD_UNIT_EVENT ADD CONSTRAINT BLDJUNEVT_FK1 FOREIGN KEY (COMPONENT_ID) REFERENCES RIODS.COMPONENT (COMPONENT_ID)
  3624. GO
  3625.  
  3626. ALTER TABLE RIODS.BUILD_UNIT_EVENT ADD CONSTRAINT BLDJUNEVT_FK2 FOREIGN KEY (BUILD_ID) REFERENCES RIODS.BUILD (BUILD_ID)
  3627. GO
  3628.  
  3629. ALTER TABLE RIODS.UNIT_TEST_RESULT ADD CONSTRAINT BLDJUNTST_FK1 FOREIGN KEY (COMPONENT_ID) REFERENCES RIODS.COMPONENT (COMPONENT_ID)
  3630. GO
  3631.  
  3632. ALTER TABLE RIODS.UNIT_TEST_RESULT ADD CONSTRAINT BLDJUNTST_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3633. GO
  3634.  
  3635. ALTER TABLE RIODS.UNIT_TEST_RESULT ADD CONSTRAINT BLDJUNTST_FK3 FOREIGN KEY (TEAM_ID) REFERENCES RIODS.TEAM(TEAM_ID)
  3636. GO
  3637.  
  3638. ALTER TABLE RIODS.JOB ADD CONSTRAINT JOB_FK1 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3639. GO
  3640.  
  3641. ALTER TABLE RIODS.JOB ADD CONSTRAINT JOB_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3642. GO
  3643.  
  3644. ALTER TABLE RIODS.JOB_RESULT ADD CONSTRAINT JOBRES_FK1 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3645. GO
  3646.  
  3647. ALTER TABLE RIODS.JOB_RESULT ADD CONSTRAINT JOBRES_FK2 FOREIGN KEY (JOB_ID) REFERENCES RIODS.JOB (JOB_ID)
  3648. GO
  3649.  
  3650. ALTER TABLE RIODS.JOB_RESULT ADD CONSTRAINT JOBRES_FK3 FOREIGN KEY (LAB_RESOURCE_ID) REFERENCES RIODS.LAB_RESOURCE (LAB_RESOURCE_ID)
  3651. GO
  3652.  
  3653. ALTER TABLE RIODS.TESTSCRIPT ADD CONSTRAINT TESTSCRIPT_FK1 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE(RESOURCE_ID)
  3654. GO
  3655.  
  3656. ALTER TABLE RIODS.TESTSCRIPT ADD CONSTRAINT TESTSCRIPT_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3657. GO
  3658.  
  3659. ALTER TABLE RIODS.TESTSCRIPT ADD CONSTRAINT TESTSCRIPT_FK3 FOREIGN KEY (TESTSCRIPT_STATE_ID) REFERENCES RIODS.TESTSCRIPT_STATE (TESTSCRIPT_STATE_ID)
  3660. GO
  3661.  
  3662. ALTER TABLE RIODS.PROGRAM ADD CONSTRAINT PROGRAM_FK1 FOREIGN KEY (PROGRAM_MANAGER) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3663. GO
  3664.  
  3665. ALTER TABLE RIODS.PROGRAM_DETAIL ADD CONSTRAINT PROGRAM_DETAIL_FK1 FOREIGN KEY (PROGRAM_ID) REFERENCES RIODS.PROGRAM (PROGRAM_ID)
  3666. GO
  3667.  
  3668. ALTER TABLE RIODS.PROJECT_ALLOCATION ADD CONSTRAINT PROJALLO_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3669. GO
  3670.  
  3671. ALTER TABLE RIODS.PROJECT_ALLOCATION ADD CONSTRAINT PROJALLO_FK2 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3672. GO
  3673.  
  3674. ALTER TABLE RIODS.PROJECT_ALLOCATION ADD CONSTRAINT PROJALLO_FK3 FOREIGN KEY (PROFILE_ID) REFERENCES RIODS.PROFILE (PROFILE_ID)
  3675. GO
  3676.  
  3677. ALTER TABLE RIODS.TIMESHEET ADD CONSTRAINT TIMESHEET_FK1 FOREIGN KEY (ACTIVITY_ID) REFERENCES RIODS.ACTIVITY (ACTIVITY_ID)
  3678. GO
  3679.  
  3680. ALTER TABLE RIODS.TIMESHEET ADD CONSTRAINT TIMESHEET_FK2 FOREIGN KEY (APPROVER_ID) REFERENCES RIODS.RESOURCE(RESOURCE_ID)
  3681. GO
  3682.  
  3683. ALTER TABLE RIODS.PROFILE ADD CONSTRAINT PROFILE_FK1 FOREIGN KEY(CITY_ID) REFERENCES RIODS.CITY(CITY_ID)
  3684. GO
  3685.  
  3686. ALTER TABLE RIODS.PROFILE ADD CONSTRAINT PROFILE_FK2 FOREIGN KEY(ORGANIZATION_ID) REFERENCES RIODS.ORGANIZATION (ORGANIZATION_ID)
  3687. GO
  3688.  
  3689. ALTER TABLE RIODS.PROFILE_SKILL_LOOKUP ADD CONSTRAINT PROSKILL_FK1 FOREIGN KEY(SKILL_ID) REFERENCES RIODS.SKILL(SKILL_ID)
  3690. GO
  3691.  
  3692. ALTER TABLE RIODS.PROFILE_SKILL_LOOKUP ADD CONSTRAINT PROSKILL_FK2 FOREIGN KEY(PROFILE_ID) REFERENCES RIODS.PROFILE(PROFILE_ID)
  3693. GO
  3694.  
  3695. ALTER TABLE RIODS.PROFILE_COMPETENCY_LOOKUP ADD CONSTRAINT PROCOMPETENCY_FK1 FOREIGN KEY(COMPETENCY_ID) REFERENCES RIODS.COMPETENCY(COMPETENCY_ID)
  3696. GO
  3697.  
  3698. ALTER TABLE RIODS.PROFILE_COMPETENCY_LOOKUP ADD CONSTRAINT PROCOMPETENCY_FK2 FOREIGN KEY(PROFILE_ID) REFERENCES RIODS.PROFILE(PROFILE_ID)
  3699. GO
  3700.  
  3701. ALTER TABLE RIODS.TIMESHEET_TIMECODE_LOOKUP ADD CONSTRAINT TSTC_FK1 FOREIGN KEY (TIMESHEET_ID) REFERENCES RIODS.TIMESHEET (TIMESHEET_ID)
  3702. GO
  3703.  
  3704. ALTER TABLE RIODS.TIMESHEET_TIMECODE_LOOKUP ADD CONSTRAINT TSTC_FK2 FOREIGN KEY(TIMECODE_ID) REFERENCES RIODS.TIMECODE(TIMECODE_ID)
  3705. GO
  3706.  
  3707. ALTER TABLE RIODS.COUNTRY ADD CONSTRAINT COUNTRY_FK1 FOREIGN KEY (TERRITORY_ID) REFERENCES RIODS.OPERATING_TERRITORY (TERRITORY_ID)
  3708. GO
  3709.  
  3710. ALTER TABLE RIODS.PROVINCE_STATE ADD CONSTRAINT PROVSTATE_FK1 FOREIGN KEY (COUNTRY_ID) REFERENCES RIODS.COUNTRY (COUNTRY_ID)
  3711. GO
  3712.  
  3713. ALTER TABLE RIODS.CITY ADD CONSTRAINT CITY_FK1 FOREIGN KEY (PROVINCE_STATE_ID) REFERENCES RIODS.PROVINCE_STATE (PROVINCE_STATE_ID)
  3714. GO
  3715.  
  3716. ALTER TABLE RIODS.PORTFOLIO_PROG_PROJ_LOOKUP ADD CONSTRAINT PORPROGPROJ_FK1 FOREIGN KEY (PORTFOLIO_ID) REFERENCES RIODS.PORTFOLIO (PORTFOLIO_ID)
  3717. GO
  3718.  
  3719. ALTER TABLE RIODS.PORTFOLIO_PROG_PROJ_LOOKUP ADD CONSTRAINT PORPROGPROJ_FK2 FOREIGN KEY (PROGRAM_ID) REFERENCES RIODS.PROGRAM (PROGRAM_ID)
  3720. GO
  3721.  
  3722. ALTER TABLE RIODS.PORTFOLIO_PROG_PROJ_LOOKUP ADD CONSTRAINT PORPROGPROJ_FK3 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3723. GO
  3724.  
  3725. ALTER TABLE RIODS.REQUEST_TESTCASE_LOOKUP ADD CONSTRAINT REQUTCASE_FK1 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3726. GO
  3727.  
  3728. ALTER TABLE RIODS.REQUEST_TESTCASE_LOOKUP ADD CONSTRAINT REQUTCASE_FK2 FOREIGN KEY (TESTCASE_ID) REFERENCES RIODS.TESTCASE (TESTCASE_ID)
  3729. GO
  3730.  
  3731. ALTER TABLE RIODS.REQUEST_STATE ADD CONSTRAINT REQUTST_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3732. GO
  3733.  
  3734. ALTER TABLE RIODS.REQUEST_STATUS ADD CONSTRAINT REQUTSTUS_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3735. GO
  3736.  
  3737. ALTER TABLE RIODS.TEAM ADD CONSTRAINT CMPTEAM_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3738. GO
  3739.  
  3740. ALTER TABLE RIODS.TEAM_ROLE ADD CONSTRAINT TEAMRL_FK1 FOREIGN KEY (TEAM_ID) REFERENCES RIODS.TEAM (TEAM_ID)
  3741. GO
  3742.  
  3743. ALTER TABLE RIODS.PROJECT_RESOURCE_LOOKUP ADD CONSTRAINT PRJRESLK_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3744. GO
  3745.  
  3746. ALTER TABLE RIODS.PROJECT_RESOURCE_LOOKUP ADD CONSTRAINT PRJRESLK_FK2 FOREIGN KEY (RESOURCE_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3747. GO
  3748.  
  3749. ALTER TABLE RIODS.RISK_REQUEST_LOOKUP ADD CONSTRAINT RSKREQLK_FK1 FOREIGN KEY (RISK_ID) REFERENCES RIODS.RISK (RISK_ID)
  3750. GO
  3751.  
  3752. ALTER TABLE RIODS.RISK_REQUEST_LOOKUP ADD CONSTRAINT RSKREQLK_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3753. GO
  3754.  
  3755. ALTER TABLE RIODS.TESTSUITE_CATEGORY_LOOKUP ADD CONSTRAINT TSTSUITECATLK_FK1 FOREIGN KEY (TESTSUITE_ID) REFERENCES RIODS.TESTSUITE (TESTSUITE_ID)
  3756. GO
  3757.  
  3758. ALTER TABLE RIODS.TESTSUITE_CATEGORY_LOOKUP ADD CONSTRAINT TSTSUITECATLK_FK2 FOREIGN KEY (TEST_CATEGORY_ID) REFERENCES RIODS.TEST_CATEGORY (TEST_CATEGORY_ID)
  3759. GO
  3760.  
  3761. ALTER TABLE RIODS.TESTSUITE_TESTPLAN_LOOKUP ADD CONSTRAINT TSTSUITETPLNLK_FK1 FOREIGN KEY (TESTSUITE_ID) REFERENCES RIODS.TESTSUITE (TESTSUITE_ID)
  3762. GO
  3763.  
  3764. ALTER TABLE RIODS.TESTSUITE_TESTPLAN_LOOKUP ADD CONSTRAINT TSTSUITETPLNLK_FK2 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  3765. GO
  3766.  
  3767. ALTER TABLE RIODS.TESTSUITE_EXECUTION_RECORD ADD CONSTRAINT TSEXECREC_FK1 FOREIGN KEY (CREATOR_ID) REFERENCES RIODS.RESOURCE(RESOURCE_ID)
  3768. GO
  3769.  
  3770. ALTER TABLE RIODS.TESTSUITE_EXECUTION_RECORD ADD CONSTRAINT TSEXECREC_FK2 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE(RESOURCE_ID)
  3771. GO
  3772.  
  3773. ALTER TABLE RIODS.TESTSUITE_EXECUTION_RECORD ADD CONSTRAINT TSEXECREC_FK3 FOREIGN KEY (TESTSUITE_ID) REFERENCES RIODS.TESTSUITE (TESTSUITE_ID)
  3774. GO
  3775.  
  3776. ALTER TABLE RIODS.TESTSUITE_EXECUTION_RECORD ADD CONSTRAINT TSEXECREC_FK4 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN(TESTPLAN_ID)
  3777. GO
  3778.  
  3779. ALTER TABLE RIODS.TESTSUITE_EXECUTION_RECORD ADD CONSTRAINT TSEXECREC_FK5 FOREIGN KEY (CONFIGURATION_ID) REFERENCES RIODS.CONFIGURATION (CONFIGURATION_ID)
  3780. GO
  3781.  
  3782. ALTER TABLE RIODS.TESTSUITE_EXECUTION_RECORD ADD CONSTRAINT TSEXECREC_FK7 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3783. GO
  3784.  
  3785. ALTER TABLE RIODS.TESTSUITE_EXECUTION_RECORD ADD CONSTRAINT TSEXECREC_FK8 FOREIGN KEY (ITERATION_ID) REFERENCES RIODS.ITERATION (ITERATION_ID)
  3786. GO
  3787.  
  3788. ALTER TABLE RIODS.TESTSUITE_EXECUTION_RECORD ADD CONSTRAINT TSEXECREC_FK9 FOREIGN KEY (TEST_PRIORITY_ID) REFERENCES RIODS.TEST_PRIORITY (TEST_PRIORITY_ID)
  3789. GO
  3790.  
  3791. ALTER TABLE RIODS.EXECWORKITEM_REQUEST_LOOKUP ADD CONSTRAINT EXWKITREQUE_FK1 FOREIGN KEY (EXECWORKITEM_ID) REFERENCES RIODS.EXECUTION_WORKITEM (EXECWORKITEM_ID)
  3792. GO
  3793.  
  3794. ALTER TABLE RIODS.EXECWORKITEM_REQUEST_LOOKUP ADD CONSTRAINT EXWKITREQUE_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3795. GO
  3796.  
  3797. ALTER TABLE RIODS.EXECUTION_STEP_RESULT ADD CONSTRAINT EXECSTEP_FK1 FOREIGN KEY (EXECUTION_RESULT_ID) REFERENCES RIODS.EXECUTION_RESULT (EXECUTION_RESULT_ID)
  3798. GO
  3799.  
  3800. ALTER TABLE RIODS.EXECSTEPRES_REQUEST_LOOKUP ADD CONSTRAINT EXCSTRSREQUELK_FK1 FOREIGN KEY (EXECUTION_STEP_RESULT_ID) REFERENCES RIODS.EXECUTION_STEP_RESULT (EXECUTION_STEP_RESULT_ID)
  3801. GO
  3802.  
  3803. ALTER TABLE RIODS.EXECSTEPRES_REQUEST_LOOKUP ADD CONSTRAINT EXCSTRSREQUELK_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3804. GO
  3805.  
  3806. ALTER TABLE RIODS.TESTSUITE_ELEMENT ADD CONSTRAINT TSTSUITELE_FK1 FOREIGN KEY (TESTSUITE_ID) REFERENCES RIODS.TESTSUITE (TESTSUITE_ID)
  3807. GO
  3808.  
  3809. ALTER TABLE RIODS.TESTSUITE_ELEMENT ADD CONSTRAINT TSTSUITELE_FK2 FOREIGN KEY (TESTCASE_ID) REFERENCES RIODS.TESTCASE (TESTCASE_ID)
  3810. GO
  3811.  
  3812. ALTER TABLE RIODS.TESTSUITE_ELEMENT ADD CONSTRAINT TSTSUITELE_FK3 FOREIGN KEY (CONFIGURATION_ID) REFERENCES RIODS.CONFIGURATION (CONFIGURATION_ID)
  3813. GO
  3814.  
  3815. ALTER TABLE RIODS.TESTSUITE_ELEMENT ADD CONSTRAINT TSTSUITELE_FK4 FOREIGN KEY (TESTSCRIPT_ID) REFERENCES RIODS.TESTSCRIPT (TESTSCRIPT_ID)
  3816. GO
  3817.  
  3818. ALTER TABLE RIODS.TESTSUITE_ELEMENT ADD CONSTRAINT TSTSUITELE_FK5 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  3819. GO
  3820.  
  3821. ALTER TABLE RIODS.REQUIREMENT_LINK_TYPE ADD CONSTRAINT REQLINKTP_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3822. GO
  3823.  
  3824. ALTER TABLE RIODS.REQUEST_RELATIONAL_LINK ADD CONSTRAINT REQRELT_FK1 FOREIGN KEY (REQUEST1_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3825. GO
  3826.  
  3827. ALTER TABLE RIODS.REQUEST_RELATIONAL_LINK ADD CONSTRAINT REQRELT_FK2 FOREIGN KEY (REQUEST2_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3828. GO
  3829.  
  3830. ALTER TABLE RIODS.REQUEST_CATEGORY ADD CONSTRAINT REQUECAT_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3831. GO
  3832.  
  3833. ALTER TABLE RIODS.TESTSCRIPT_CATEGORY_LOOKUP ADD CONSTRAINT TSCATE_FK1 FOREIGN KEY (TESTSCRIPT_ID) REFERENCES RIODS.TESTSCRIPT (TESTSCRIPT_ID)
  3834. GO
  3835.  
  3836. ALTER TABLE RIODS.TESTSCRIPT_CATEGORY_LOOKUP ADD CONSTRAINT TSCATE_FK2 FOREIGN KEY (TEST_CATEGORY_ID) REFERENCES RIODS.TEST_CATEGORY (TEST_CATEGORY_ID)
  3837. GO
  3838.  
  3839. ALTER TABLE RIODS.EXECWORKITEM_CATEGORY_LOOKUP ADD CONSTRAINT EXWKITCATE_FK1 FOREIGN KEY (EXECWORKITEM_ID) REFERENCES RIODS.EXECUTION_WORKITEM (EXECWORKITEM_ID)
  3840. GO
  3841.  
  3842. ALTER TABLE RIODS.EXECWORKITEM_CATEGORY_LOOKUP ADD CONSTRAINT EXWKITCATE_FK2 FOREIGN KEY (TEST_CATEGORY_ID) REFERENCES RIODS.TEST_CATEGORY (TEST_CATEGORY_ID)
  3843. GO
  3844.  
  3845. ALTER TABLE RIODS.TSTSUITEXECREC_CATEGORY_LOOKUP ADD CONSTRAINT TSTSEXECRECCATE_FK1 FOREIGN KEY (TESTSUITE_EXECRECORD_ID) REFERENCES RIODS.TESTSUITE_EXECUTION_RECORD (TESTSUITE_EXECRECORD_ID)
  3846. GO
  3847.  
  3848. ALTER TABLE RIODS.TSTSUITEXECREC_CATEGORY_LOOKUP ADD CONSTRAINT TSTSEXECRECCATE_FK2 FOREIGN KEY (TEST_CATEGORY_ID) REFERENCES RIODS.TEST_CATEGORY (TEST_CATEGORY_ID)
  3849. GO
  3850.  
  3851. ALTER TABLE RIODS.EXECRESULT_CATEGORY_LOOKUP ADD CONSTRAINT EXECRESCATE_FK1 FOREIGN KEY (EXECUTION_RESULT_ID) REFERENCES RIODS.EXECUTION_RESULT (EXECUTION_RESULT_ID)
  3852. GO
  3853.  
  3854. ALTER TABLE RIODS.EXECRESULT_CATEGORY_LOOKUP ADD CONSTRAINT EXECRESCATE_FK2 FOREIGN KEY (TEST_CATEGORY_ID) REFERENCES RIODS.TEST_CATEGORY (TEST_CATEGORY_ID)
  3855. GO
  3856.  
  3857. ALTER TABLE RIODS.TESTSUITELOG_CATEGORY_LOOKUP ADD CONSTRAINT TESTSUITELOGCATE_FK1 FOREIGN KEY (TESTSUITELOG_ID) REFERENCES RIODS.TESTSUITELOG (TESTSUITELOG_ID)
  3858. GO
  3859.  
  3860. ALTER TABLE RIODS.TESTSUITELOG_CATEGORY_LOOKUP ADD CONSTRAINT TESTSUITELOGCATE_FK2 FOREIGN KEY (TEST_CATEGORY_ID) REFERENCES RIODS.TEST_CATEGORY (TEST_CATEGORY_ID)
  3861. GO
  3862.  
  3863. ALTER TABLE RIODS.REQUEST_TESTPLAN_LOOKUP ADD CONSTRAINT REQTP_FK1 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3864. GO
  3865.  
  3866. ALTER TABLE RIODS.REQUEST_TESTPLAN_LOOKUP ADD CONSTRAINT REQTP_FK2 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  3867. GO
  3868.  
  3869. ALTER TABLE RIODS.REQUEST_TESTSCRIPT_LOOKUP ADD CONSTRAINT REQTSC_FK1 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3870. GO
  3871.  
  3872. ALTER TABLE RIODS.REQUEST_TESTSCRIPT_LOOKUP ADD CONSTRAINT REQTSC_FK2 FOREIGN KEY (TESTSCRIPT_ID) REFERENCES RIODS.TESTSCRIPT (TESTSCRIPT_ID)
  3873. GO
  3874.  
  3875. ALTER TABLE RIODS.REQUEST_TESTSUITE_LOOKUP ADD CONSTRAINT REQTSU_FK1 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  3876. GO
  3877.  
  3878. ALTER TABLE RIODS.REQUEST_TESTSUITE_LOOKUP ADD CONSTRAINT REQTSU_FK2 FOREIGN KEY (TESTSUITE_ID) REFERENCES RIODS.TESTSUITE (TESTSUITE_ID)
  3879. GO
  3880.  
  3881. ALTER TABLE RIODS.REQUEST_TYPE_BINDING ADD CONSTRAINT REQTBING_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3882. GO
  3883.  
  3884. ALTER TABLE RIODS.REQUEST_TYPE_BINDING ADD CONSTRAINT REQTBING_FK2 FOREIGN KEY (REQUEST_TYPE_ID) REFERENCES RIODS.REQUEST_TYPE (REQUEST_TYPE_ID)
  3885. GO
  3886.  
  3887. ALTER TABLE RIODS.TESTSUITE_STATE ADD CONSTRAINT TSTSUITESTATE_FK1 FOREIGN KEY (TEST_STATUS_ID) REFERENCES RIODS.TEST_STATUS (TEST_STATUS_ID)
  3888. GO
  3889.  
  3890. ALTER TABLE RIODS.TESTSUITELOG_STATE ADD CONSTRAINT TSTSULOGSTATE_FK1 FOREIGN KEY (TEST_STATUS_ID) REFERENCES RIODS.TEST_STATUS (TEST_STATUS_ID)
  3891. GO
  3892.  
  3893. ALTER TABLE RIODS.EXECRESULT_STATE ADD CONSTRAINT EXECRESSTATE_FK1 FOREIGN KEY (TEST_STATUS_ID) REFERENCES RIODS.TEST_STATUS (TEST_STATUS_ID)
  3894. GO
  3895.  
  3896. ALTER TABLE RIODS.TESTCASE_STATE ADD CONSTRAINT TSTCASESTATE_FK1 FOREIGN KEY (TEST_STATUS_ID) REFERENCES RIODS.TEST_STATUS (TEST_STATUS_ID)
  3897. GO
  3898.  
  3899. ALTER TABLE RIODS.TESTPLAN_STATE ADD CONSTRAINT TSTPLANSTATE_FK1 FOREIGN KEY (TEST_STATUS_ID) REFERENCES RIODS.TEST_STATUS (TEST_STATUS_ID)
  3900. GO
  3901.  
  3902. ALTER TABLE RIODS.TESTSCRIPT_STATE ADD CONSTRAINT TSTSCRPTSTATE_FK1 FOREIGN KEY (TEST_STATUS_ID) REFERENCES RIODS.TEST_STATUS (TEST_STATUS_ID)
  3903. GO
  3904.  
  3905. ALTER TABLE RIODS.REQUIREMENT_TESTSCRIPT_LOOKUP ADD CONSTRAINT REQTSTSRPT_FK1 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIODS.REQUIREMENT (REQUIREMENT_ID)
  3906. GO
  3907.  
  3908. ALTER TABLE RIODS.REQUIREMENT_TESTSCRIPT_LOOKUP ADD CONSTRAINT REQTSTSRPT_FK2 FOREIGN KEY (TESTSCRIPT_ID) REFERENCES RIODS.TESTSCRIPT (TESTSCRIPT_ID)
  3909. GO
  3910.  
  3911. ALTER TABLE RIODS.TEST_PRIORITY ADD CONSTRAINT TSTPRIORITY_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  3912. GO
  3913.  
  3914. CREATE TRIGGER TRG_REQCUSTD ON RIODS.REQUEST FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUEST_CUSTOMER_LOOKUP WHERE REQUEST_ID IN (SELECT REQUEST_ID FROM INSERTED ) END
  3915. GO
  3916.  
  3917. CREATE TRIGGER TRG_REQREQUI ON RIODS.REQUEST FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DECLARE @cls int SELECT @cls=REQUEST_CLASS_ID FROM RIODS.REQUEST_CLASSIFICATION WHERE NAME ='RTC WorkItem' BEGIN DELETE FROM RIODS.REQUIREMENT_REQUEST_LOOKUP WHERE REQUEST_ID IN (SELECT REQUEST_ID FROM INSERTED ) AND @cls NOT IN (SELECT REQUEST_CLASS_ID FROM INSERTED) END END
  3918. GO
  3919.  
  3920. CREATE TRIGGER TRG_REQREQUI2 ON RIODS.REQUIREMENT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUIREMENT_REQUEST_LOOKUP WHERE REQUIREMENT_ID IN (SELECT REQUIREMENT_ID FROM INSERTED WHERE REQUIREMENT_CLASS_ID IN (SELECT REQUIREMENT_CLASS_ID FROM RIODS.REQUIREMENT_CLASSIFICATION WHERE NAME IN ('RRC Requirement','Doors Requirement'))) END
  3921. GO
  3922.  
  3923. CREATE TRIGGER TRG_REQTASK ON RIODS.REQUEST FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TASK_REQUEST_LOOKUP WHERE REQUEST_ID IN (SELECT REQUEST_ID FROM INSERTED ) END
  3924. GO
  3925.  
  3926. CREATE TRIGGER TRG_REQLOG2 ON RIODS.EXECUTION_RESULT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DECLARE @cls int SELECT @cls=EXECRES_CLASS_ID FROM RIODS.EXECRESULT_CLASSIFICATION WHERE NAME ='RQM Execution Result' BEGIN DELETE FROM RIODS.EXECRES_REQUEST_LOOKUP WHERE EXECUTION_RESULT_ID IN (SELECT EXECUTION_RESULT_ID FROM INSERTED ) AND @cls IN (SELECT EXECRES_CLASS_ID FROM INSERTED) END END
  3927. GO
  3928.  
  3929. CREATE TRIGGER TRG_REQREQ ON RIODS.REQUEST FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUEST_HIERARCHY WHERE PARENT_REQUEST_ID IN (SELECT REQUEST_ID FROM INSERTED ) OR CHILD_REQUEST_ID IN (SELECT REQUEST_ID FROM INSERTED ) END
  3930. GO
  3931.  
  3932. CREATE TRIGGER TRG_EXWKIITDD ON RIODS.EXECUTION_WORKITEM FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.EXECWORKITEM_ITERATION_LOOKUP WHERE EXECWORKITEM_ID IN (SELECT EXECWORKITEM_ID FROM INSERTED ) END
  3933. GO
  3934.  
  3935. CREATE TRIGGER TRG_EXWKITSUD ON RIODS.EXECUTION_WORKITEM FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DECLARE @cls int SELECT @cls=EXECWORKIT_CLASS_ID FROM RIODS.EXECWORKITEM_CLASSIFICATION WHERE NAME ='RQM Execution Work Item' BEGIN DELETE FROM RIODS.EXECWORKITEM_TESTSUITE_LOOKUP WHERE EXECWORKITEM_ID IN (SELECT EXECWORKITEM_ID FROM INSERTED ) AND @cls NOT IN (SELECT EXECWORKIT_CLASS_ID FROM INSERTED) END END
  3936. GO
  3937.  
  3938. CREATE TRIGGER TRG_EXWKITSUD2 ON RIODS.TESTSUITE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DECLARE @cls int SELECT @cls=TESTSUITE_CLASS_ID FROM RIODS.TESTSUITE_CLASSIFICATION WHERE NAME ='RQM Test Suite' BEGIN DELETE FROM RIODS.EXECWORKITEM_TESTSUITE_LOOKUP WHERE TESTSUITE_ID IN (SELECT TESTSUITE_ID FROM INSERTED ) AND @cls IN (SELECT TESTSUITE_CLASS_ID FROM INSERTED) END END
  3939. GO
  3940.  
  3941. CREATE TRIGGER TRG_CONFATTRD ON RIODS.CONFIGURATION FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.CONFIGURATION_ATTRIBUTE_LOOKUP WHERE CONFIGURATION_ID IN (SELECT CONFIGURATION_ID FROM INSERTED ) END
  3942. GO
  3943.  
  3944. CREATE TRIGGER TRG_CONFTLGD ON RIODS.CONFIGURATION FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.CONFIG_EXECUTIONRES_LOOKUP WHERE CONFIGURATION_ID IN (SELECT CONFIGURATION_ID FROM INSERTED ) END
  3945. GO
  3946.  
  3947. CREATE TRIGGER TRG_PRJBSLND ON RIODS.PROJECT_BASELINE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.PROJ_BASELINE_BASELINE_LOOKUP WHERE BASELINE_ID IN (SELECT BASELINE_ID FROM INSERTED ) OR COMPBASELINE_ID IN (SELECT BASELINE_ID FROM INSERTED) END
  3948. GO
  3949.  
  3950. CREATE TRIGGER TRG_PRJROLED ON RIODS.PROJECT_ROLE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.PROJECT_ROLE_MEMBER_LOOKUP WHERE PROJECT_ROLE_ID IN (SELECT PROJECT_ROLE_ID FROM INSERTED ) END
  3951. GO
  3952.  
  3953. CREATE TRIGGER TRG_REQUITSTCD ON RIODS.REQUIREMENT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUIREMENT_EXECWRKITEM_LOOKUP WHERE REQUIREMENT_ID IN (SELECT REQUIREMENT_ID FROM INSERTED ) END
  3954. GO
  3955.  
  3956. CREATE TRIGGER TRG_REQICUSTD ON RIODS.REQUIREMENT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUIREMENT_CUSTOMER_LOOKUP WHERE REQUIREMENT_ID IN (SELECT REQUIREMENT_ID FROM INSERTED ) END
  3957. GO
  3958.  
  3959. CREATE TRIGGER TRG_REQIREQUID ON RIODS.REQUIREMENT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUIREMENT_REQUIREMENT_LOOKUP WHERE REQUIREMENT_ID IN (SELECT REQUIREMENT_ID FROM INSERTED ) OR CREQUIREMENT_ID IN (SELECT REQUIREMENT_ID FROM INSERTED) END
  3960. GO
  3961.  
  3962. CREATE TRIGGER TRG_REQITSTCD2 ON RIODS.TESTCASE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DECLARE @cls int SELECT @cls=TESTCASE_CLASS_ID FROM RIODS.TESTCASE_CLASSIFICATION WHERE NAME='RQM Test Case' BEGIN DELETE FROM RIODS.REQUIREMENT_TESTCASE_LOOKUP WHERE TESTCASE_ID IN (SELECT TESTCASE_ID FROM INSERTED ) AND @cls IN (SELECT TESTCASE_CLASS_ID FROM INSERTED) END END
  3963. GO
  3964.  
  3965. CREATE TRIGGER TRG_REQITPLND2 ON RIODS.TESTPLAN FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DECLARE @cls int SELECT @cls=TESTPLAN_CLASS_ID FROM RIODS.TESTPLAN_CLASSIFICATION WHERE NAME='RQM Test Plan' BEGIN DELETE FROM RIODS.REQUIREMENT_TESTPLAN_LOOKUP WHERE TESTPLAN_ID IN (SELECT TESTPLAN_ID FROM INSERTED ) AND @cls IN (SELECT TESTPLAN_CLASS_ID FROM INSERTED) END END
  3966. GO
  3967.  
  3968. CREATE TRIGGER TRG_REQITSUTD ON RIODS.REQUIREMENT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUIREMENT_TESTSUITE_LOOKUP WHERE REQUIREMENT_ID IN (SELECT REQUIREMENT_ID FROM INSERTED ) END
  3969. GO
  3970.  
  3971. CREATE TRIGGER TRG_TSLOG ON RIODS.TESTSUITELOG FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTSUITELOG_EXECRESULT_LOOKUP WHERE TESTSUITELOG_ID IN (SELECT TESTSUITELOG_ID FROM INSERTED ) END
  3972. GO
  3973.  
  3974. CREATE TRIGGER TRG_TSKREQID ON RIODS.REQUIREMENT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TASK_REQUIREMENT_LOOKUP WHERE REQUIREMENT_ID IN (SELECT REQUIREMENT_ID FROM INSERTED ) END
  3975. GO
  3976.  
  3977. CREATE TRIGGER TRG_TSCITERD ON RIODS.TESTCASE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTCASE_ITERATION_LOOKUP WHERE TESTCASE_ID IN (SELECT TESTCASE_ID FROM INSERTED ) END
  3978. GO
  3979.  
  3980. CREATE TRIGGER TRG_TPLNITERD ON RIODS.TESTPLAN FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTPLAN_ITERATION_LOOKUP WHERE TESTPLAN_ID IN (SELECT TESTPLAN_ID FROM INSERTED ) END
  3981. GO
  3982.  
  3983. CREATE TRIGGER TRG_TSUTITERD ON RIODS.TESTSUITE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTSUITE_ITERATION_LOOKUP WHERE TESTSUITE_ID IN (SELECT TESTSUITE_ID FROM INSERTED ) END
  3984. GO
  3985.  
  3986. CREATE TRIGGER TRG_PRJHIERD ON RIODS.PROJECT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.PROJECT_HIERARCHY WHERE PARENT_PROJECT_ID IN (SELECT PROJECT_ID FROM INSERTED ) OR CHILD_PROJECT_ID IN (SELECT PROJECT_ID FROM INSERTED ) END
  3987. GO
  3988.  
  3989. CREATE TRIGGER TRG_PRJCOMPD ON RIODS.PROJECT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.PROJECT_COMPONENT_LOOKUP WHERE PROJECT_ID IN (SELECT PROJECT_ID FROM INSERTED ) END
  3990. GO
  3991.  
  3992. CREATE TRIGGER TRG_FBSACTD ON RIODS.ACTIVITY FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.FILE_BASELINE_ACTIVITY_LOOKUP WHERE ACTIVITY_ID IN (SELECT ACTIVITY_ID FROM INSERTED ) END
  3993. GO
  3994.  
  3995. CREATE TRIGGER TRG_REQACTD ON RIODS.REQUEST FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUEST_ACTIVITY_LOOKUP WHERE REQUEST_ID IN (SELECT REQUEST_ID FROM INSERTED ) END
  3996. GO
  3997.  
  3998. CREATE TRIGGER TRG_EXERESWKIT ON RIODS.EXECUTION_RESULT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.EXECRES_EXECWKITEM_LOOKUP WHERE EXECUTION_RESULT_ID IN (SELECT EXECUTION_RESULT_ID FROM INSERTED ) END
  3999. GO
  4000.  
  4001. CREATE TRIGGER TRG_CFGEXECWK ON RIODS.EXECUTION_WORKITEM FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.CONFIG_EXECUTIONWORKITM_LOOKUP WHERE EXECWORKITEM_ID IN (SELECT EXECWORKITEM_ID FROM INSERTED ) END
  4002. GO
  4003.  
  4004. CREATE TRIGGER TRG_TPLNCAT ON RIODS.TESTPLAN FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTPLAN_CATEGORY_LOOKUP WHERE TESTPLAN_ID IN (SELECT TESTPLAN_ID FROM INSERTED ) END
  4005. GO
  4006.  
  4007. CREATE TRIGGER TRG_TCASECAT ON RIODS.TESTCASE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTCASE_CATEGORY_LOOKUP WHERE TESTCASE_ID IN (SELECT TESTCASE_ID FROM INSERTED ) END
  4008. GO
  4009.  
  4010. CREATE TRIGGER TRG_TSUTCASE ON RIODS.TESTSUITE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTSUITE_TESTCASE_LOOKUP WHERE TESTSUITE_ID IN (SELECT TESTSUITE_ID FROM INSERTED ) END
  4011. GO
  4012.  
  4013. CREATE TRIGGER TRG_TPLNTCS ON RIODS.TESTPLAN FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTPLAN_TESTCASE_LOOKUP WHERE TESTPLAN_ID IN (SELECT TESTPLAN_ID FROM INSERTED ) END
  4014. GO
  4015.  
  4016. CREATE TRIGGER TRG_TSCSCRIPT ON RIODS.TESTCASE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTCASE_TESTSCRIPT_LOOKUP WHERE TESTCASE_ID IN (SELECT TESTCASE_ID FROM INSERTED ) END
  4017. GO
  4018.  
  4019. CREATE TRIGGER TRG_SKILLRES ON RIODS.RESOURCE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.RESOURCE_SKILL_LOOKUP WHERE RESOURCE_ID IN (SELECT RESOURCE_ID FROM INSERTED ) END
  4020. GO
  4021.  
  4022. CREATE TRIGGER TRG_COMPRES ON RIODS.RESOURCE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.RESOURCE_COMPETENCY_LOOKUP WHERE RESOURCE_ID IN (SELECT RESOURCE_ID FROM INSERTED ) END
  4023. GO
  4024.  
  4025. CREATE TRIGGER TRG_SKILLPRO ON RIODS.PROFILE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.PROFILE_SKILL_LOOKUP WHERE PROFILE_ID IN (SELECT PROFILE_ID FROM INSERTED ) END
  4026. GO
  4027.  
  4028. CREATE TRIGGER TRG_COMPPRO ON RIODS.PROFILE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.PROFILE_COMPETENCY_LOOKUP WHERE PROFILE_ID IN (SELECT PROFILE_ID FROM INSERTED ) END
  4029. GO
  4030.  
  4031. CREATE TRIGGER TRG_TSTC ON RIODS.TIMESHEET FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TIMESHEET_TIMECODE_LOOKUP WHERE TIMESHEET_ID IN (SELECT TIMESHEET_ID FROM INSERTED ) END
  4032. GO
  4033.  
  4034. CREATE TRIGGER TRG_REQUICOL ON RIODS.REQUIREMENT_COLLECTION FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUICOL_REQUIREMENT_LOOKUP WHERE REQUIREMENT_COLLECTION_ID IN (SELECT REQUIREMENT_COLLECTION_ID FROM INSERTED ) END
  4035. GO
  4036.  
  4037. CREATE TRIGGER TRG_REQUICOLTP ON RIODS.REQUIREMENT_COLLECTION FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUICOL_TESTPLAN_LOOKUP WHERE REQUIREMENT_COLLECTION_ID IN (SELECT REQUIREMENT_COLLECTION_ID FROM INSERTED ) END
  4038. GO
  4039.  
  4040. CREATE TRIGGER TRG_PORTPROGPRJ ON RIODS.PORTFOLIO FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.PORTFOLIO_PROG_PROJ_LOOKUP WHERE PORTFOLIO_ID IN (SELECT PORTFOLIO_ID FROM INSERTED ) END
  4041. GO
  4042.  
  4043. CREATE TRIGGER TRG_REQUTCASE ON RIODS.TESTCASE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUEST_TESTCASE_LOOKUP WHERE TESTCASE_ID IN (SELECT TESTCASE_ID FROM INSERTED ) END
  4044. GO
  4045.  
  4046. CREATE TRIGGER TRG_PROJRES ON RIODS.PROJECT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.PROJECT_RESOURCE_LOOKUP WHERE PROJECT_ID IN (SELECT PROJECT_ID FROM INSERTED ) END
  4047. GO
  4048.  
  4049. CREATE TRIGGER TRG_RSKREQUST ON RIODS.RISK FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.RISK_REQUEST_LOOKUP WHERE RISK_ID IN (SELECT RISK_ID FROM INSERTED ) END
  4050. GO
  4051.  
  4052. CREATE TRIGGER TRG_TSCATLK ON RIODS.TESTSUITE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTSUITE_CATEGORY_LOOKUP WHERE TESTSUITE_ID IN (SELECT TESTSUITE_ID FROM INSERTED ) END
  4053. GO
  4054.  
  4055. CREATE TRIGGER TRG_TSTPLTLK ON RIODS.TESTPLAN FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTSUITE_TESTPLAN_LOOKUP WHERE TESTPLAN_ID IN (SELECT TESTPLAN_ID FROM INSERTED ) END
  4056. GO
  4057.  
  4058. CREATE TRIGGER TRG_EWIREQUE ON RIODS.EXECUTION_WORKITEM FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.EXECWORKITEM_REQUEST_LOOKUP WHERE EXECWORKITEM_ID IN (SELECT EXECWORKITEM_ID FROM INSERTED ) END
  4059. GO
  4060.  
  4061. CREATE TRIGGER TRG_ESRREQUE ON RIODS.EXECUTION_STEP_RESULT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.EXECSTEPRES_REQUEST_LOOKUP WHERE EXECUTION_STEP_RESULT_ID IN (SELECT EXECUTION_STEP_RESULT_ID FROM INSERTED ) END
  4062. GO
  4063.  
  4064. CREATE TRIGGER TRG_REQHIER ON RIODS.REQUIREMENT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUIREMENT_HIERARCHY WHERE PRED_REQUIREMENT_ID IN (SELECT REQUIREMENT_ID FROM INSERTED WHERE REQUIREMENT_CLASS_ID IN (SELECT REQUIREMENT_CLASS_ID FROM RIODS.REQUIREMENT_CLASSIFICATION WHERE NAME IN ('RRC Requirement','Doors Requirement'))) END
  4065. GO
  4066.  
  4067. CREATE TRIGGER TRG_REQHIER2 ON RIODS.REQUIREMENT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUIREMENT_HIERARCHY WHERE PRED_REQUIREMENT_ID IN (SELECT REQUIREMENT_ID FROM INSERTED WHERE REQUIREMENT_CLASS_ID NOT IN (SELECT REQUIREMENT_CLASS_ID FROM RIODS.REQUIREMENT_CLASSIFICATION WHERE NAME IN ('RRC Requirement','Doors Requirement'))) OR SUCC_REQUIREMENT_ID IN (SELECT REQUIREMENT_ID FROM INSERTED WHERE REQUIREMENT_CLASS_ID NOT IN (SELECT REQUIREMENT_CLASS_ID FROM RIODS.REQUIREMENT_CLASSIFICATION WHERE NAME IN ('RRC Requirement','Doors Requirement'))) END
  4068. GO
  4069.  
  4070. CREATE TRIGGER TRG_TSCRTCATE ON RIODS.TESTSCRIPT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTSCRIPT_CATEGORY_LOOKUP WHERE TESTSCRIPT_ID IN (SELECT TESTSCRIPT_ID FROM INSERTED ) END
  4071. GO
  4072.  
  4073. CREATE TRIGGER TRG_EXWKITCATE ON RIODS.EXECUTION_WORKITEM FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.EXECWORKITEM_CATEGORY_LOOKUP WHERE EXECWORKITEM_ID IN (SELECT EXECWORKITEM_ID FROM INSERTED ) END
  4074. GO
  4075.  
  4076. CREATE TRIGGER TRG_TSTSEXECRECCATE ON RIODS.TESTSUITE_EXECUTION_RECORD FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TSTSUITEXECREC_CATEGORY_LOOKUP WHERE TESTSUITE_EXECRECORD_ID IN (SELECT TESTSUITE_EXECRECORD_ID FROM INSERTED ) END
  4077. GO
  4078.  
  4079. CREATE TRIGGER TRG_EXECRESCATE ON RIODS.EXECUTION_RESULT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.EXECRESULT_CATEGORY_LOOKUP WHERE EXECUTION_RESULT_ID IN (SELECT EXECUTION_RESULT_ID FROM INSERTED ) END
  4080. GO
  4081.  
  4082. CREATE TRIGGER TRG_TESTSUITELOG ON RIODS.TESTSUITELOG FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.TESTSUITELOG_CATEGORY_LOOKUP WHERE TESTSUITELOG_ID IN (SELECT TESTSUITELOG_ID FROM INSERTED ) END
  4083. GO
  4084.  
  4085. CREATE TRIGGER TRG_REQTP ON RIODS.TESTPLAN FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUEST_TESTPLAN_LOOKUP WHERE TESTPLAN_ID IN (SELECT TESTPLAN_ID FROM INSERTED ) END
  4086. GO
  4087.  
  4088. CREATE TRIGGER TRG_REQTSC ON RIODS.TESTSCRIPT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUEST_TESTSCRIPT_LOOKUP WHERE TESTSCRIPT_ID IN (SELECT TESTSCRIPT_ID FROM INSERTED ) END
  4089. GO
  4090.  
  4091. CREATE TRIGGER TRG_REQTSU ON RIODS.TESTSUITE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUEST_TESTSUITE_LOOKUP WHERE TESTSUITE_ID IN (SELECT TESTSUITE_ID FROM INSERTED ) END
  4092. GO
  4093.  
  4094. CREATE TRIGGER TRG_REQUITSCRPT ON RIODS.TESTSCRIPT FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIODS.REQUIREMENT_TESTSCRIPT_LOOKUP WHERE TESTSCRIPT_ID IN (SELECT TESTSCRIPT_ID FROM INSERTED ) END
  4095. GO
  4096.  
  4097. CREATE TRIGGER TRG_TPTPHIER ON RIODS.TESTPLAN FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DECLARE @cls int SELECT @cls=TESTPLAN_CLASS_ID FROM RIODS.TESTPLAN_CLASSIFICATION WHERE NAME='RQM Test Plan' BEGIN DELETE FROM RIODS.TESTPLAN_TESTPLAN_HIERARCHY WHERE @cls NOT IN (SELECT TESTPLAN_CLASS_ID FROM INSERTED) AND (PARENT_TESTPLAN_ID IN (SELECT TESTPLAN_ID FROM INSERTED) OR CHILD_TESTPLAN_ID IN (SELECT TESTPLAN_ID FROM INSERTED)) END END
  4098. GO
  4099.  
  4100. CREATE TRIGGER TRG_TPTPHIER2 ON RIODS.TESTPLAN FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DECLARE @cls int SELECT @cls=TESTPLAN_CLASS_ID FROM RIODS.TESTPLAN_CLASSIFICATION WHERE NAME='RQM Test Plan' BEGIN DELETE FROM RIODS.TESTPLAN_TESTPLAN_HIERARCHY WHERE @cls IN (SELECT TESTPLAN_CLASS_ID FROM INSERTED) AND PARENT_TESTPLAN_ID IN (SELECT TESTPLAN_ID FROM INSERTED) END END
  4101. GO
  4102.  
  4103. USE [RIDW]
  4104. GO
  4105.  
  4106. CREATE SCHEMA AUTHORIZATION RIASSET
  4107. GO
  4108.  
  4109. CREATE TABLE RIASSET.ACTION_TYPE( ACTION_TYPE_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Action Name Missing' NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4110. GO
  4111.  
  4112. CREATE TABLE RIASSET.ASSET_ROLE ( ASSET_ROLE_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Asset Role Name Missing' NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4113. GO
  4114.  
  4115. CREATE TABLE RIASSET.ASSET_ROLE_RESOURCE_LOOKUP ( ASSET_ROLE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL ) ON VNF_32K
  4116. GO
  4117.  
  4118. CREATE TABLE RIASSET.ASSET_ROLE_TEAM_LOOKUP ( ASSET_ROLE_ID INT NOT NULL, TEAM_ID INT NOT NULL ) ON VNF_32K
  4119. GO
  4120.  
  4121. CREATE TABLE RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY ( HISTORY_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), ASSET_ROLE_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, TEAM_ID INT DEFAULT -1 NOT NULL, ASSIGNEE_ID INT DEFAULT -1 NOT NULL, ASSIGNER_ID INT DEFAULT -1 NOT NULL, ACTION_TYPE_ID INT DEFAULT -1 NOT NULL, ASSIGNMENT_DATE DATETIME, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4122. GO
  4123.  
  4124. CREATE TABLE RIASSET.ENTITLEMENT ( ENTITLEMENT_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Entitlement Name Missing' NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4125. GO
  4126.  
  4127. CREATE TABLE RIASSET.ENTITLEMENT_HISTORY ( HISTORY_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), ASSET_ROLE_ID INT DEFAULT -1 NOT NULL, ACTION_TYPE_ID INT DEFAULT -1 NOT NULL, CHANGE_DATE DATETIME, RESOURCE_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4128. GO
  4129.  
  4130. CREATE TABLE RIASSET.ENTITLEMENT_HISTORY_LOOKUP ( HISTORY_ID INT NOT NULL, ENTITLEMENT_ID INT NOT NULL, ENTITLEMENT_TYPE NVARCHAR(255) NOT NULL ) ON VNF_32K
  4131. GO
  4132.  
  4133. CREATE TABLE RIASSET.ASSET_ROLE_ENTITLEMENT_LOOKUP( ASSET_ROLE_ID INT NOT NULL, ENTITLEMENT_ID INT NOT NULL ) ON VNF_32K
  4134. GO
  4135.  
  4136. CREATE TABLE RIASSET.ASSET_LOOKUP( PRED_ASSET_ID INT NOT NULL, SUCC_ASSET_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) ) ON VNF_32K
  4137. GO
  4138.  
  4139. CREATE TABLE RIASSET.ASSET_TYPE ( ASSET_TYPE_ID INT NOT NULL, REFERENCE_ID NVARCHAR(80), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Asset Type Name Missing' NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(80) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4140. GO
  4141.  
  4142. CREATE TABLE RIASSET.ASSET ( ASSET_ID INT NOT NULL, REFERENCE_ID NVARCHAR(80), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Asset Name Missing' NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, VERSION NVARCHAR(255), ASSET_TYPE_ID INT DEFAULT -1 NOT NULL, ASSET_STATE NVARCHAR(255), LAST_MODIFIED DATETIME, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(80) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4143. GO
  4144.  
  4145. CREATE TABLE RIASSET.ASSET_RESOURCE_LOOKUP( ASSET_ID INT NOT NULL, OWNER_ID INT NOT NULL ) ON VNF_32K
  4146. GO
  4147.  
  4148. CREATE TABLE RIASSET.ASSET_HISTORY ( HISTORY_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), ASSET_ID INT NOT NULL, ACTION_TYPE_ID INT DEFAULT -1 NOT NULL, RESOURCE_ID INT DEFAULT -1 NOT NULL, ACTION_DATE DATETIME, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4149. GO
  4150.  
  4151. CREATE TABLE RIASSET.LICENSE_HISTORY ( HISTORY_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), ASSET_ID INT DEFAULT -1 NOT NULL, ACTION_TYPE_ID INT DEFAULT -1 NOT NULL, USAGE_DATE DATETIME, RESOURCE_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4152. GO
  4153.  
  4154. CREATE TABLE RIASSET.ASSET_REQUEST_LOOKUP( ASSET_ID INT NOT NULL, REQUEST_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) ) ON VNF_32K
  4155. GO
  4156.  
  4157. CREATE TABLE RIASSET.ASSET_TESTCASE_LOOKUP( ASSET_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) ) ON VNF_32K
  4158. GO
  4159.  
  4160. CREATE TABLE RIASSET.ASSET_TESTPLAN_LOOKUP( ASSET_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) ) ON VNF_32K
  4161. GO
  4162.  
  4163. CREATE TABLE RIASSET.ASSET_REQUIREMENT_LOOKUP( ASSET_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, LINK_TYPE NVARCHAR(255) ) ON VNF_32K
  4164. GO
  4165.  
  4166. CREATE TABLE RIASSET.ASSET_CATEGORY ( ASSET_CATEGORY_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Asset Category Name Missing' NOT NULL, FULL_PATH NVARCHAR (2048), ROOT_FLAG INT DEFAULT 0 NOT NULL, LEAF_FLAG INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4167. GO
  4168.  
  4169. CREATE TABLE RIASSET.ASSET_CAT_HIERARCHY ( PARENT_CATEGORY_ID INT NOT NULL, CHILD_CATEGORY_ID INT NOT NULL ) ON VNF_32K
  4170. GO
  4171.  
  4172. CREATE TABLE RIASSET.ASSET_ATTRIBUTE ( ASSET_ATTRIBUTE_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Asset Attribute Name Missing' NOT NULL, ASSET_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4173. GO
  4174.  
  4175. CREATE TABLE RIASSET.ASSET_ATTRIBUTE_VALUE ( ASSET_ATTRIBUTE_VALUE_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Asset Attribute Value Name Missing' NOT NULL, ASSET_ATTRIBUTE_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4176. GO
  4177.  
  4178. CREATE TABLE RIASSET.ASSET_CAT_ASSET_LOOKUP ( ASSET_CATEGORY_ID INT NOT NULL, ASSET_ID INT NOT NULL, FULL_PATH NVARCHAR(2048) NOT NULL ) ON VNF_32K
  4179. GO
  4180.  
  4181. CREATE INDEX ACTTYPE_IDX3 ON RIASSET.ACTION_TYPE (EXTERNAL_KEY2) ON VNF_IDX
  4182. GO
  4183.  
  4184. CREATE INDEX ASSETTP_IDX3 ON RIASSET.ASSET_TYPE (EXTERNAL_KEY2) ON VNF_IDX
  4185. GO
  4186.  
  4187. CREATE INDEX ASSET_IDX3 ON RIASSET.ASSET (EXTERNAL_KEY2) ON VNF_IDX
  4188. GO
  4189.  
  4190. CREATE INDEX ASSETHIST_IDX3 ON RIASSET.ASSET_HISTORY (EXTERNAL_KEY2) ON VNF_IDX
  4191. GO
  4192.  
  4193. CREATE INDEX ASSETROLE_IDX3 ON RIASSET.ASSET_ROLE (EXTERNAL_KEY2) ON VNF_IDX
  4194. GO
  4195.  
  4196. CREATE INDEX ASSETRLASSIH_IDX3 ON RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY (EXTERNAL_KEY2) ON VNF_IDX
  4197. GO
  4198.  
  4199. CREATE INDEX ENTITLEMENT_IDX3 ON RIASSET.ENTITLEMENT (EXTERNAL_KEY2) ON VNF_IDX
  4200. GO
  4201.  
  4202. CREATE INDEX ENTITHST_IDX3 ON RIASSET.ENTITLEMENT_HISTORY (EXTERNAL_KEY2) ON VNF_IDX
  4203. GO
  4204.  
  4205. CREATE INDEX LICENSEH_IDX3 ON RIASSET.LICENSE_HISTORY (EXTERNAL_KEY2) ON VNF_IDX
  4206. GO
  4207.  
  4208. CREATE INDEX ASSTCAT_IDX3 ON RIASSET.ASSET_CATEGORY (EXTERNAL_KEY2) ON VNF_IDX
  4209. GO
  4210.  
  4211. CREATE INDEX ASSTATTR_IDX3 ON RIASSET.ASSET_ATTRIBUTE (EXTERNAL_KEY2) ON VNF_IDX
  4212. GO
  4213.  
  4214. CREATE INDEX ASSTATRVAL_IDX3 ON RIASSET.ASSET_ATTRIBUTE_VALUE (EXTERNAL_KEY2) ON VNF_IDX
  4215. GO
  4216.  
  4217. CREATE INDEX ACTTYPE_IDX4 ON RIASSET.ACTION_TYPE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4218. GO
  4219.  
  4220. CREATE INDEX ASSETTP_IDX4 ON RIASSET.ASSET_TYPE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4221. GO
  4222.  
  4223. CREATE INDEX ASSET_IDX4 ON RIASSET.ASSET (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4224. GO
  4225.  
  4226. CREATE INDEX ASSETHIST_IDX4 ON RIASSET.ASSET_HISTORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4227. GO
  4228.  
  4229. CREATE INDEX ASSETROLE_IDX4 ON RIASSET.ASSET_ROLE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4230. GO
  4231.  
  4232. CREATE INDEX ASSETRLASSIH_IDX4 ON RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4233. GO
  4234.  
  4235. CREATE INDEX ENTITLEMENT_IDX4 ON RIASSET.ENTITLEMENT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4236. GO
  4237.  
  4238. CREATE INDEX ENTITHST_IDX4 ON RIASSET.ENTITLEMENT_HISTORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4239. GO
  4240.  
  4241. CREATE INDEX LICENSEH_IDX4 ON RIASSET.LICENSE_HISTORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4242. GO
  4243.  
  4244. CREATE INDEX ASSTCAT_IDX4 ON RIASSET.ASSET_CATEGORY (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4245. GO
  4246.  
  4247. CREATE INDEX ASSTATTR_IDX4 ON RIASSET.ASSET_ATTRIBUTE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4248. GO
  4249.  
  4250. CREATE INDEX ASSTATRVAL_IDX4 ON RIASSET.ASSET_ATTRIBUTE_VALUE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4251. GO
  4252.  
  4253. CREATE INDEX ACTTYPE_IDX5 ON RIASSET.ACTION_TYPE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4254. GO
  4255.  
  4256. CREATE INDEX ASSETTP_IDX5 ON RIASSET.ASSET_TYPE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4257. GO
  4258.  
  4259. CREATE INDEX ASSET_IDX5 ON RIASSET.ASSET (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4260. GO
  4261.  
  4262. CREATE INDEX ASSETHIST_IDX5 ON RIASSET.ASSET_HISTORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4263. GO
  4264.  
  4265. CREATE INDEX ASSETROLE_IDX5 ON RIASSET.ASSET_ROLE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4266. GO
  4267.  
  4268. CREATE INDEX ASSETRLASSIH_IDX5 ON RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4269. GO
  4270.  
  4271. CREATE INDEX ENTITLEMENT_IDX5 ON RIASSET.ENTITLEMENT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4272. GO
  4273.  
  4274. CREATE INDEX ENTITHST_IDX5 ON RIASSET.ENTITLEMENT_HISTORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4275. GO
  4276.  
  4277. CREATE INDEX LICENSEH_IDX5 ON RIASSET.LICENSE_HISTORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4278. GO
  4279.  
  4280. CREATE INDEX ASSTCAT_IDX5 ON RIASSET.ASSET_CATEGORY (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4281. GO
  4282.  
  4283. CREATE INDEX ASSTATTR_IDX5 ON RIASSET.ASSET_ATTRIBUTE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4284. GO
  4285.  
  4286. CREATE INDEX ASSTATRVAL_IDX5 ON RIASSET.ASSET_ATTRIBUTE_VALUE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4287. GO
  4288.  
  4289. CREATE INDEX ACTTYPE_IDX2 ON RIASSET.ACTION_TYPE (EXTERNAL_ID) ON VNF_IDX
  4290. GO
  4291.  
  4292. CREATE INDEX ASSETTP_IDX2 ON RIASSET.ASSET_TYPE (EXTERNAL_ID) ON VNF_IDX
  4293. GO
  4294.  
  4295. CREATE INDEX ASSET_IDX2 ON RIASSET.ASSET (EXTERNAL_ID) ON VNF_IDX
  4296. GO
  4297.  
  4298. CREATE INDEX ASSETHIST_IDX2 ON RIASSET.ASSET_HISTORY (EXTERNAL_ID) ON VNF_IDX
  4299. GO
  4300.  
  4301. CREATE INDEX ASSETROLE_IDX2 ON RIASSET.ASSET_ROLE (EXTERNAL_ID) ON VNF_IDX
  4302. GO
  4303.  
  4304. CREATE INDEX ASSETRLASSIH_IDX2 ON RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY (EXTERNAL_ID) ON VNF_IDX
  4305. GO
  4306.  
  4307. CREATE INDEX ENTITLEMENT_IDX2 ON RIASSET.ENTITLEMENT (EXTERNAL_ID) ON VNF_IDX
  4308. GO
  4309.  
  4310. CREATE INDEX ENTITHST_IDX2 ON RIASSET.ENTITLEMENT_HISTORY (EXTERNAL_ID) ON VNF_IDX
  4311. GO
  4312.  
  4313. CREATE INDEX LICENSEH_IDX2 ON RIASSET.LICENSE_HISTORY (EXTERNAL_ID) ON VNF_IDX
  4314. GO
  4315.  
  4316. CREATE INDEX ASSTCAT_IDX2 ON RIASSET.ASSET_CATEGORY (EXTERNAL_ID) ON VNF_IDX
  4317. GO
  4318.  
  4319. CREATE INDEX ASSTATTR_IDX2 ON RIASSET.ASSET_ATTRIBUTE (EXTERNAL_ID) ON VNF_IDX
  4320. GO
  4321.  
  4322. CREATE INDEX ASSTATRVAL_IDX2 ON RIASSET.ASSET_ATTRIBUTE_VALUE (EXTERNAL_ID) ON VNF_IDX
  4323. GO
  4324.  
  4325. ALTER TABLE RIASSET.ACTION_TYPE ADD CONSTRAINT ACTIONTP_PK PRIMARY KEY (ACTION_TYPE_ID) ON VNF_IDX
  4326. GO
  4327.  
  4328. ALTER TABLE RIASSET.ASSET_TYPE ADD CONSTRAINT ASSETTP_PK PRIMARY KEY (ASSET_TYPE_ID) ON VNF_IDX
  4329. GO
  4330.  
  4331. ALTER TABLE RIASSET.ASSET ADD CONSTRAINT ASSET_PK PRIMARY KEY (ASSET_ID) ON VNF_IDX
  4332. GO
  4333.  
  4334. ALTER TABLE RIASSET.ASSET_ROLE ADD CONSTRAINT ASSETROLE_PK PRIMARY KEY (ASSET_ROLE_ID) ON VNF_IDX
  4335. GO
  4336.  
  4337. ALTER TABLE RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY ADD CONSTRAINT ASSETRLASSIH_PK PRIMARY KEY (HISTORY_ID) ON VNF_IDX
  4338. GO
  4339.  
  4340. ALTER TABLE RIASSET.ENTITLEMENT ADD CONSTRAINT ENTITLEMENT_PK PRIMARY KEY (ENTITLEMENT_ID) ON VNF_IDX
  4341. GO
  4342.  
  4343. ALTER TABLE RIASSET.ENTITLEMENT_HISTORY ADD CONSTRAINT ENTITLEHIST_PK PRIMARY KEY (HISTORY_ID) ON VNF_IDX
  4344. GO
  4345.  
  4346. ALTER TABLE RIASSET.LICENSE_HISTORY ADD CONSTRAINT LICENSEHIST_PK PRIMARY KEY (HISTORY_ID) ON VNF_IDX
  4347. GO
  4348.  
  4349. ALTER TABLE RIASSET.ASSET_ROLE_ENTITLEMENT_LOOKUP ADD CONSTRAINT ASSERLENTLK_PK PRIMARY KEY (ASSET_ROLE_ID,ENTITLEMENT_ID) ON VNF_IDX
  4350. GO
  4351.  
  4352. ALTER TABLE RIASSET.ASSET_LOOKUP ADD CONSTRAINT ASSETLKUP_PK PRIMARY KEY (PRED_ASSET_ID,SUCC_ASSET_ID) ON VNF_IDX
  4353. GO
  4354.  
  4355. ALTER TABLE RIASSET.ASSET_RESOURCE_LOOKUP ADD CONSTRAINT ASSERESLK_PK PRIMARY KEY (ASSET_ID,OWNER_ID) ON VNF_IDX
  4356. GO
  4357.  
  4358. ALTER TABLE RIASSET.ASSET_REQUEST_LOOKUP ADD CONSTRAINT ASSEREQULK_PK PRIMARY KEY (ASSET_ID,REQUEST_ID) ON VNF_IDX
  4359. GO
  4360.  
  4361. ALTER TABLE RIASSET.ASSET_TESTCASE_LOOKUP ADD CONSTRAINT ASSETCASELK_PK PRIMARY KEY (ASSET_ID,TESTCASE_ID) ON VNF_IDX
  4362. GO
  4363.  
  4364. ALTER TABLE RIASSET.ASSET_TESTPLAN_LOOKUP ADD CONSTRAINT ASSETPLANLK_PK PRIMARY KEY (ASSET_ID,TESTPLAN_ID) ON VNF_IDX
  4365. GO
  4366.  
  4367. ALTER TABLE RIASSET.ENTITLEMENT_HISTORY_LOOKUP ADD CONSTRAINT ENTHISTLK_PK PRIMARY KEY (HISTORY_ID,ENTITLEMENT_ID,ENTITLEMENT_TYPE) ON VNF_IDX
  4368. GO
  4369.  
  4370. ALTER TABLE RIASSET.ASSET_ROLE_RESOURCE_LOOKUP ADD CONSTRAINT ASSETRLRESLK_PK PRIMARY KEY (ASSET_ROLE_ID,RESOURCE_ID) ON VNF_IDX
  4371. GO
  4372.  
  4373. ALTER TABLE RIASSET.ASSET_ROLE_TEAM_LOOKUP ADD CONSTRAINT ASSETRLTEAMLK_PK PRIMARY KEY (ASSET_ROLE_ID,TEAM_ID) ON VNF_IDX
  4374. GO
  4375.  
  4376. ALTER TABLE RIASSET.ASSET_HISTORY ADD CONSTRAINT ASSETHIST_PK PRIMARY KEY (HISTORY_ID) ON VNF_IDX
  4377. GO
  4378.  
  4379. ALTER TABLE RIASSET.ASSET_CATEGORY ADD CONSTRAINT ASSTCAT_PK PRIMARY KEY (ASSET_CATEGORY_ID) ON VNF_IDX
  4380. GO
  4381.  
  4382. ALTER TABLE RIASSET.ASSET_CAT_HIERARCHY ADD CONSTRAINT ASTCATCATLK_PK PRIMARY KEY (PARENT_CATEGORY_ID,CHILD_CATEGORY_ID) ON VNF_IDX
  4383. GO
  4384.  
  4385. ALTER TABLE RIASSET.ASSET_ATTRIBUTE ADD CONSTRAINT ASSTATTR_PK PRIMARY KEY (ASSET_ATTRIBUTE_ID) ON VNF_IDX
  4386. GO
  4387.  
  4388. ALTER TABLE RIASSET.ASSET_ATTRIBUTE_VALUE ADD CONSTRAINT ASSTATRVAL_PK PRIMARY KEY (ASSET_ATTRIBUTE_VALUE_ID) ON VNF_IDX
  4389. GO
  4390.  
  4391. ALTER TABLE RIASSET.ASSET_CAT_ASSET_LOOKUP ADD CONSTRAINT ASTCATASSTLK_PK PRIMARY KEY (ASSET_CATEGORY_ID,ASSET_ID) ON VNF_IDX
  4392. GO
  4393.  
  4394. ALTER TABLE RIASSET.ASSET ADD CONSTRAINT ASSET_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  4395. GO
  4396.  
  4397. ALTER TABLE RIASSET.ASSET ADD CONSTRAINT ASSET_FK2 FOREIGN KEY (ASSET_TYPE_ID) REFERENCES RIASSET.ASSET_TYPE (ASSET_TYPE_ID)
  4398. GO
  4399.  
  4400. ALTER TABLE RIASSET.ASSET_ROLE ADD CONSTRAINT ASSETROLE_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  4401. GO
  4402.  
  4403. ALTER TABLE RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY ADD CONSTRAINT ASSETRLASSIH_FK1 FOREIGN KEY (ASSET_ROLE_ID) REFERENCES RIASSET.ASSET_ROLE (ASSET_ROLE_ID)
  4404. GO
  4405.  
  4406. ALTER TABLE RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY ADD CONSTRAINT ASSETRLASSIH_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  4407. GO
  4408.  
  4409. ALTER TABLE RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY ADD CONSTRAINT ASSETRLASSIH_FK3 FOREIGN KEY (TEAM_ID) REFERENCES RIODS.TEAM (TEAM_ID)
  4410. GO
  4411.  
  4412. ALTER TABLE RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY ADD CONSTRAINT ASSETRLASSIH_FK4 FOREIGN KEY (ASSIGNEE_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  4413. GO
  4414.  
  4415. ALTER TABLE RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY ADD CONSTRAINT ASSETRLASSIH_FK5 FOREIGN KEY (ASSIGNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  4416. GO
  4417.  
  4418. ALTER TABLE RIASSET.ASSET_ROLE_ASSIGNMENT_HISTORY ADD CONSTRAINT ASSETRLASSIH_FK6 FOREIGN KEY (ACTION_TYPE_ID) REFERENCES RIASSET.ACTION_TYPE (ACTION_TYPE_ID)
  4419. GO
  4420.  
  4421. ALTER TABLE RIASSET.ENTITLEMENT_HISTORY ADD CONSTRAINT ENTITLEHIST_FK1 FOREIGN KEY (ASSET_ROLE_ID) REFERENCES RIASSET.ASSET_ROLE (ASSET_ROLE_ID)
  4422. GO
  4423.  
  4424. ALTER TABLE RIASSET.ENTITLEMENT_HISTORY ADD CONSTRAINT ENTITLEHIST_FK2 FOREIGN KEY (RESOURCE_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  4425. GO
  4426.  
  4427. ALTER TABLE RIASSET.ENTITLEMENT_HISTORY ADD CONSTRAINT ENTITLEHIST_FK3 FOREIGN KEY (ACTION_TYPE_ID) REFERENCES RIASSET.ACTION_TYPE (ACTION_TYPE_ID)
  4428. GO
  4429.  
  4430. ALTER TABLE RIASSET.LICENSE_HISTORY ADD CONSTRAINT LICENSEHIST_FK1 FOREIGN KEY (ASSET_ID) REFERENCES RIASSET.ASSET (ASSET_ID)
  4431. GO
  4432.  
  4433. ALTER TABLE RIASSET.LICENSE_HISTORY ADD CONSTRAINT LICENSEHIST_FK2 FOREIGN KEY (RESOURCE_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  4434. GO
  4435.  
  4436. ALTER TABLE RIASSET.LICENSE_HISTORY ADD CONSTRAINT LICENSEHIST_FK3 FOREIGN KEY (ACTION_TYPE_ID) REFERENCES RIASSET.ACTION_TYPE (ACTION_TYPE_ID)
  4437. GO
  4438.  
  4439. ALTER TABLE RIASSET.ASSET_LOOKUP ADD CONSTRAINT ASSETLKUP_FK1 FOREIGN KEY (PRED_ASSET_ID) REFERENCES RIASSET.ASSET (ASSET_ID)
  4440. GO
  4441.  
  4442. ALTER TABLE RIASSET.ASSET_LOOKUP ADD CONSTRAINT ASSETLKUP_FK2 FOREIGN KEY (SUCC_ASSET_ID) REFERENCES RIASSET.ASSET (ASSET_ID)
  4443. GO
  4444.  
  4445. ALTER TABLE RIASSET.ASSET_REQUEST_LOOKUP ADD CONSTRAINT ASSEREQULK_FK1 FOREIGN KEY (ASSET_ID) REFERENCES RIASSET.ASSET (ASSET_ID)
  4446. GO
  4447.  
  4448. ALTER TABLE RIASSET.ASSET_REQUEST_LOOKUP ADD CONSTRAINT ASSEREQULK_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIODS.REQUEST (REQUEST_ID)
  4449. GO
  4450.  
  4451. ALTER TABLE RIASSET.ASSET_RESOURCE_LOOKUP ADD CONSTRAINT ASSERESLK_FK1 FOREIGN KEY (ASSET_ID) REFERENCES RIASSET.ASSET (ASSET_ID)
  4452. GO
  4453.  
  4454. ALTER TABLE RIASSET.ASSET_RESOURCE_LOOKUP ADD CONSTRAINT ASSERESLK_FK2 FOREIGN KEY (OWNER_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  4455. GO
  4456.  
  4457. ALTER TABLE RIASSET.ASSET_ROLE_ENTITLEMENT_LOOKUP ADD CONSTRAINT ASSERLENTLK_FK1 FOREIGN KEY (ASSET_ROLE_ID) REFERENCES RIASSET.ASSET_ROLE(ASSET_ROLE_ID)
  4458. GO
  4459.  
  4460. ALTER TABLE RIASSET.ASSET_ROLE_ENTITLEMENT_LOOKUP ADD CONSTRAINT ASSERLENTLK_FK2 FOREIGN KEY (ENTITLEMENT_ID) REFERENCES RIASSET.ENTITLEMENT (ENTITLEMENT_ID)
  4461. GO
  4462.  
  4463. ALTER TABLE RIASSET.ASSET_TESTCASE_LOOKUP ADD CONSTRAINT ASSETCASELK_FK1 FOREIGN KEY (ASSET_ID) REFERENCES RIASSET.ASSET (ASSET_ID)
  4464. GO
  4465.  
  4466. ALTER TABLE RIASSET.ASSET_TESTCASE_LOOKUP ADD CONSTRAINT ASSETCASELK_FK2 FOREIGN KEY (TESTCASE_ID) REFERENCES RIODS.TESTCASE (TESTCASE_ID)
  4467. GO
  4468.  
  4469. ALTER TABLE RIASSET.ASSET_TESTPLAN_LOOKUP ADD CONSTRAINT ASSETPLANLK_FK1 FOREIGN KEY (ASSET_ID) REFERENCES RIASSET.ASSET (ASSET_ID)
  4470. GO
  4471.  
  4472. ALTER TABLE RIASSET.ASSET_TESTPLAN_LOOKUP ADD CONSTRAINT ASSETPLANLK_FK2 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIODS.TESTPLAN (TESTPLAN_ID)
  4473. GO
  4474.  
  4475. ALTER TABLE RIASSET.ENTITLEMENT_HISTORY_LOOKUP ADD CONSTRAINT ENTHISTLK_FK1 FOREIGN KEY (HISTORY_ID) REFERENCES RIASSET.ENTITLEMENT_HISTORY (HISTORY_ID)
  4476. GO
  4477.  
  4478. ALTER TABLE RIASSET.ENTITLEMENT_HISTORY_LOOKUP ADD CONSTRAINT ENTHISTLK_FK2 FOREIGN KEY (ENTITLEMENT_ID) REFERENCES RIASSET.ENTITLEMENT (ENTITLEMENT_ID)
  4479. GO
  4480.  
  4481. ALTER TABLE RIASSET.ASSET_ROLE_RESOURCE_LOOKUP ADD CONSTRAINT ASSETRLRESLK_FK1 FOREIGN KEY (ASSET_ROLE_ID) REFERENCES RIASSET.ASSET_ROLE (ASSET_ROLE_ID)
  4482. GO
  4483.  
  4484. ALTER TABLE RIASSET.ASSET_ROLE_RESOURCE_LOOKUP ADD CONSTRAINT ASSETRLRESLK_FK2 FOREIGN KEY (RESOURCE_ID) REFERENCES RIODS.RESOURCE
  4485. GO
  4486.  
  4487. ALTER TABLE RIASSET.ASSET_ROLE_TEAM_LOOKUP ADD CONSTRAINT ASSETRLTEAMLK_FK1 FOREIGN KEY (ASSET_ROLE_ID) REFERENCES RIASSET.ASSET_ROLE (ASSET_ROLE_ID)
  4488. GO
  4489.  
  4490. ALTER TABLE RIASSET.ASSET_ROLE_TEAM_LOOKUP ADD CONSTRAINT ASSETRLTEAMLK_FK2 FOREIGN KEY (TEAM_ID) REFERENCES RIODS.TEAM (TEAM_ID)
  4491. GO
  4492.  
  4493. ALTER TABLE RIASSET.ASSET_HISTORY ADD CONSTRAINT ASSETHIST_FK1 FOREIGN KEY (ASSET_ID) REFERENCES RIASSET.ASSET (ASSET_ID)
  4494. GO
  4495.  
  4496. ALTER TABLE RIASSET.ASSET_HISTORY ADD CONSTRAINT ASSETHIST_FK2 FOREIGN KEY (ACTION_TYPE_ID) REFERENCES RIASSET.ACTION_TYPE (ACTION_TYPE_ID)
  4497. GO
  4498.  
  4499. ALTER TABLE RIASSET.ASSET_HISTORY ADD CONSTRAINT ASSETHIST_FK3 FOREIGN KEY (RESOURCE_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  4500. GO
  4501.  
  4502. ALTER TABLE RIASSET.ASSET_ATTRIBUTE_VALUE ADD CONSTRAINT ASSTATRVAL_FK1 FOREIGN KEY (ASSET_ATTRIBUTE_ID) REFERENCES RIASSET.ASSET_ATTRIBUTE (ASSET_ATTRIBUTE_ID)
  4503. GO
  4504.  
  4505. ALTER TABLE RIASSET.ASSET_ATTRIBUTE ADD CONSTRAINT ASSTATTR_FK1 FOREIGN KEY (ASSET_ID) REFERENCES RIASSET.ASSET (ASSET_ID)
  4506. GO
  4507.  
  4508. ALTER TABLE RIASSET.ASSET_CAT_HIERARCHY ADD CONSTRAINT ASTCATCATLK_FK1 FOREIGN KEY (PARENT_CATEGORY_ID) REFERENCES RIASSET.ASSET_CATEGORY (ASSET_CATEGORY_ID)
  4509. GO
  4510.  
  4511. ALTER TABLE RIASSET.ASSET_CAT_HIERARCHY ADD CONSTRAINT ASTCATCATLK_FK2 FOREIGN KEY (CHILD_CATEGORY_ID) REFERENCES RIASSET.ASSET_CATEGORY (ASSET_CATEGORY_ID)
  4512. GO
  4513.  
  4514. ALTER TABLE RIASSET.ASSET_CAT_ASSET_LOOKUP ADD CONSTRAINT ASTCATASSTLK_FK1 FOREIGN KEY (ASSET_CATEGORY_ID) REFERENCES RIASSET.ASSET_CATEGORY (ASSET_CATEGORY_ID)
  4515. GO
  4516.  
  4517. ALTER TABLE RIASSET.ASSET_CAT_ASSET_LOOKUP ADD CONSTRAINT ASTCATASSTLK_FK2 FOREIGN KEY (ASSET_ID) REFERENCES RIASSET.ASSET (ASSET_ID)
  4518. GO
  4519.  
  4520. CREATE TRIGGER TRG_ASSETLK ON RIASSET.ASSET FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIASSET.ASSET_LOOKUP WHERE PRED_ASSET_ID IN (SELECT ASSET_ID FROM INSERTED ) OR SUCC_ASSET_ID IN (SELECT ASSET_ID FROM INSERTED ) END
  4521. GO
  4522.  
  4523. CREATE TRIGGER TRG_ASSREQUELK ON RIASSET.ASSET FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIASSET.ASSET_REQUEST_LOOKUP WHERE ASSET_ID IN (SELECT ASSET_ID FROM INSERTED ) END
  4524. GO
  4525.  
  4526. CREATE TRIGGER TRG_ASSRESOULK ON RIASSET.ASSET FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIASSET.ASSET_RESOURCE_LOOKUP WHERE ASSET_ID IN (SELECT ASSET_ID FROM INSERTED ) END
  4527. GO
  4528.  
  4529. CREATE TRIGGER TRG_ASSENTITLK ON RIASSET.ASSET_ROLE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIASSET.ASSET_ROLE_ENTITLEMENT_LOOKUP WHERE ASSET_ROLE_ID IN (SELECT ASSET_ROLE_ID FROM INSERTED ) END
  4530. GO
  4531.  
  4532. CREATE TRIGGER TRG_ASSTSTCASELK ON RIASSET.ASSET FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIASSET.ASSET_TESTCASE_LOOKUP WHERE ASSET_ID IN (SELECT ASSET_ID FROM INSERTED ) END
  4533. GO
  4534.  
  4535. CREATE TRIGGER TRG_TSTPLNLK ON RIASSET.ASSET FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIASSET.ASSET_TESTPLAN_LOOKUP WHERE ASSET_ID IN (SELECT ASSET_ID FROM INSERTED ) END
  4536. GO
  4537.  
  4538. CREATE TRIGGER TRG_ASSRLRESELK ON RIASSET.ASSET_ROLE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIASSET.ASSET_ROLE_RESOURCE_LOOKUP WHERE ASSET_ROLE_ID IN (SELECT ASSET_ROLE_ID FROM INSERTED ) END
  4539. GO
  4540.  
  4541. CREATE TRIGGER TRG_ASSRLTEAMLK ON RIASSET.ASSET_ROLE FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIASSET.ASSET_ROLE_TEAM_LOOKUP WHERE ASSET_ROLE_ID IN (SELECT ASSET_ROLE_ID FROM INSERTED ) END
  4542. GO
  4543.  
  4544. CREATE TRIGGER TRG_ASSREQUILK ON RIASSET.ASSET FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIASSET.ASSET_REQUIREMENT_LOOKUP WHERE ASSET_ID IN (SELECT ASSET_ID FROM INSERTED ) END
  4545. GO
  4546.  
  4547. CREATE TRIGGER TRG_ASSTCAT ON RIASSET.ASSET_CATEGORY FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIASSET.ASSET_CAT_HIERARCHY WHERE PARENT_CATEGORY_ID IN (SELECT ASSET_CATEGORY_ID FROM INSERTED ) OR CHILD_CATEGORY_ID IN ( SELECT ASSET_CATEGORY_ID FROM INSERTED ) END
  4548. GO
  4549.  
  4550. CREATE TRIGGER TRG_ASSTCATAST ON RIASSET.ASSET FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RIASSET.ASSET_CAT_ASSET_LOOKUP WHERE ASSET_ID IN (SELECT ASSET_ID FROM INSERTED ) END
  4551. GO
  4552.  
  4553. USE [RIDW]
  4554. GO
  4555.  
  4556. CREATE SCHEMA AUTHORIZATION RISCHK
  4557. GO
  4558.  
  4559. CREATE TABLE RISCHK.SC_SESSION( SESSION_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Session Name Missing' NOT NULL, BALLOT_DEFINITION_ID INT DEFAULT -1 NOT NULL, TEAM_ID INT DEFAULT -1 NOT NULL, PROJECT_ID INT DEFAULT -1 NOT NULL, STATUS NVARCHAR(255), SESSION_DATE DATETIME, BALLOT_COUNT INT DEFAULT 0 NOT NULL, BALLOT_SUBMITTED INT DEFAULT 0 NOT NULL, [DESCRIPTION] NVARCHAR(1000), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4560. GO
  4561.  
  4562. CREATE TABLE RISCHK.SCSESSION_PARTICIPANT_LOOKUP ( SESSION_ID INT NOT NULL, PARTICIPANT_ID INT NOT NULL ) ON VNF_32K
  4563. GO
  4564.  
  4565. CREATE TABLE RISCHK.SCSESSION_COFACILIT_LOOKUP ( SESSION_ID INT NOT NULL, FACILITATOR_ID INT NOT NULL ) ON VNF_32K
  4566. GO
  4567.  
  4568. CREATE TABLE RISCHK.BALLOT_DEFINITION( BALLOT_DEFINITION_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Ballot Definition Name Missing' NOT NULL, SCALE_ID INT DEFAULT -1 NOT NULL, [DESCRIPTION] NVARCHAR(1000), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4569. GO
  4570.  
  4571. CREATE TABLE RISCHK.BALLOTDEF_BALLOT_TAB_LOOKUP ( BALLOT_DEFINITION_ID INT NOT NULL, BALLOT_TAB_ID INT NOT NULL ) ON VNF_32K
  4572. GO
  4573.  
  4574. CREATE TABLE RISCHK.BALLOT( BALLOT_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Ballot Name Missing' NOT NULL, SESSION_ID INT DEFAULT -1 NOT NULL, STATUS NVARCHAR(25), SUBMISSIONTIME DATETIME, SUBMITTER_ID INT DEFAULT -1 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4575. GO
  4576.  
  4577. CREATE TABLE RISCHK.ANSWER( ANSWER_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Answer Name Missing' NOT NULL, QUESTION_ID INT DEFAULT -1 NOT NULL, BALLOT_ID INT DEFAULT -1 NOT NULL, BALLOT_TAB_ID INT DEFAULT -1 NOT NULL, VALUE NVARCHAR(255), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4578. GO
  4579.  
  4580. CREATE TABLE RISCHK.BALLOT_TAB( BALLOT_TAB_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Ballot Tab Name Missing' NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4581. GO
  4582.  
  4583. CREATE TABLE RISCHK.QUESTION( QUESTION_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Question Name Missing' NOT NULL, SCALE_ID INT DEFAULT -1 NOT NULL, [DESCRIPTION] NVARCHAR(1000), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4584. GO
  4585.  
  4586. CREATE TABLE RISCHK.BALLOT_TAB_QUESTION_LOOKUP( BALLOT_TAB_ID INT NOT NULL, QUESTION_ID INT NOT NULL, QUESTION_ORDER INT ) ON VNF_32K
  4587. GO
  4588.  
  4589. CREATE TABLE RISCHK.SC_SCALE( SCALE_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Scale Name Missing' NOT NULL, TRUE_VALUE_DISPLAY NVARCHAR(255), FALSE_VALUE_DISPLAY NVARCHAR(255), INT_START_VALUE INT , INT_END_VALUE INT , DEC_START_VALUE DECIMAL(18,2), DEC_END_VALUE DECIMAL(18,2), PRECISION_VALUE INT , TALKTHRESHOLDAVG DOUBLE PRECISION, TALKTHRESHOLDDEV DOUBLE PRECISION, TYPE NVARCHAR(255), LENGTH INT , EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4590. GO
  4591.  
  4592. CREATE TABLE RISCHK.SC_BALLOT_TAB_RESULT ( RESULT_ID INT NOT NULL, REFERENCE_ID NVARCHAR(50), EXTERNAL_ID NVARCHAR(100), NAME NVARCHAR(255) DEFAULT 'Result Name Missing' NOT NULL, SESSION_ID INT DEFAULT -1 NOT NULL, BALLOT_TAB_ID INT DEFAULT -1 NOT NULL, STANDARD_DEV_VALUE DECIMAL (18,2), AVERAGE_VALUE DECIMAL (18,2), EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, EXTERNAL_KEY2 NCHAR(40) DEFAULT '-1' NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, URL NVARCHAR(2048), REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VNF_32K
  4593. GO
  4594.  
  4595. CREATE INDEX ANSWER_IDX3 ON RISCHK.ANSWER (EXTERNAL_KEY2) ON VNF_IDX
  4596. GO
  4597.  
  4598. CREATE INDEX BALTAB_IDX3 ON RISCHK.BALLOT_TAB (EXTERNAL_KEY2) ON VNF_IDX
  4599. GO
  4600.  
  4601. CREATE INDEX QUESTION_IDX3 ON RISCHK.QUESTION (EXTERNAL_KEY2) ON VNF_IDX
  4602. GO
  4603.  
  4604. CREATE INDEX SCRESULT_IDX3 ON RISCHK.SC_BALLOT_TAB_RESULT (EXTERNAL_KEY2) ON VNF_IDX
  4605. GO
  4606.  
  4607. CREATE INDEX SCSCALE_IDX3 ON RISCHK.SC_SCALE (EXTERNAL_KEY2) ON VNF_IDX
  4608. GO
  4609.  
  4610. CREATE INDEX SCSESSION_IDX3 ON RISCHK.SC_SESSION (EXTERNAL_KEY2) ON VNF_IDX
  4611. GO
  4612.  
  4613. CREATE INDEX ANSWER_IDX4 ON RISCHK.ANSWER (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4614. GO
  4615.  
  4616. CREATE INDEX BALTAB_IDX4 ON RISCHK.BALLOT_TAB (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4617. GO
  4618.  
  4619. CREATE INDEX QUESTION_IDX4 ON RISCHK.QUESTION (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4620. GO
  4621.  
  4622. CREATE INDEX SCRESULT_IDX4 ON RISCHK.SC_BALLOT_TAB_RESULT (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4623. GO
  4624.  
  4625. CREATE INDEX SCSCALE_IDX4 ON RISCHK.SC_SCALE (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4626. GO
  4627.  
  4628. CREATE INDEX SCSESSION_IDX4 ON RISCHK.SC_SESSION (EXTERNAL_KEY1,SOURCE_ID) ON VNF_IDX
  4629. GO
  4630.  
  4631. CREATE INDEX ANSWER_IDX5 ON RISCHK.ANSWER (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4632. GO
  4633.  
  4634. CREATE INDEX BALTAB_IDX5 ON RISCHK.BALLOT_TAB (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4635. GO
  4636.  
  4637. CREATE INDEX QUESTION_IDX5 ON RISCHK.QUESTION (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4638. GO
  4639.  
  4640. CREATE INDEX SCRESULT_IDX5 ON RISCHK.SC_BALLOT_TAB_RESULT (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4641. GO
  4642.  
  4643. CREATE INDEX SCSCALE_IDX5 ON RISCHK.SC_SCALE (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4644. GO
  4645.  
  4646. CREATE INDEX SCSESSION_IDX5 ON RISCHK.SC_SESSION (EXTERNAL_KEY2,SOURCE_ID) ON VNF_IDX
  4647. GO
  4648.  
  4649. CREATE INDEX ANSWER_IDX2 ON RISCHK.ANSWER (EXTERNAL_ID) ON VNF_IDX
  4650. GO
  4651.  
  4652. CREATE INDEX BALTAB_IDX2 ON RISCHK.BALLOT_TAB (EXTERNAL_ID) ON VNF_IDX
  4653. GO
  4654.  
  4655. CREATE INDEX QUESTION_IDX2 ON RISCHK.QUESTION (EXTERNAL_ID) ON VNF_IDX
  4656. GO
  4657.  
  4658. CREATE INDEX SCRESULT_IDX2 ON RISCHK.SC_BALLOT_TAB_RESULT (EXTERNAL_ID) ON VNF_IDX
  4659. GO
  4660.  
  4661. CREATE INDEX SCSCALE_IDX2 ON RISCHK.SC_SCALE (EXTERNAL_ID) ON VNF_IDX
  4662. GO
  4663.  
  4664. CREATE INDEX SCSESSION_IDX2 ON RISCHK.SC_SESSION (EXTERNAL_ID) ON VNF_IDX
  4665. GO
  4666.  
  4667. ALTER TABLE RISCHK.SC_SESSION ADD CONSTRAINT SCSESS_PK PRIMARY KEY (SESSION_ID) ON VNF_IDX
  4668. GO
  4669.  
  4670. ALTER TABLE RISCHK.SCSESSION_PARTICIPANT_LOOKUP ADD CONSTRAINT SCSESSPART_PK PRIMARY KEY (SESSION_ID,PARTICIPANT_ID) ON VNF_IDX
  4671. GO
  4672.  
  4673. ALTER TABLE RISCHK.BALLOT_DEFINITION ADD CONSTRAINT BALLOTDEF_PK PRIMARY KEY (BALLOT_DEFINITION_ID) ON VNF_IDX
  4674. GO
  4675.  
  4676. ALTER TABLE RISCHK.BALLOTDEF_BALLOT_TAB_LOOKUP ADD CONSTRAINT BALDEFTAB_PK PRIMARY KEY (BALLOT_DEFINITION_ID,BALLOT_TAB_ID) ON VNF_IDX
  4677. GO
  4678.  
  4679. ALTER TABLE RISCHK.BALLOT ADD CONSTRAINT BALLOT_PK PRIMARY KEY (BALLOT_ID) ON VNF_IDX
  4680. GO
  4681.  
  4682. ALTER TABLE RISCHK.ANSWER ADD CONSTRAINT ANSWER_PK PRIMARY KEY (ANSWER_ID) ON VNF_IDX
  4683. GO
  4684.  
  4685. ALTER TABLE RISCHK.BALLOT_TAB ADD CONSTRAINT BALLOT_TAB_PK PRIMARY KEY (BALLOT_TAB_ID) ON VNF_IDX
  4686. GO
  4687.  
  4688. ALTER TABLE RISCHK.QUESTION ADD CONSTRAINT QUESTION_PK PRIMARY KEY (QUESTION_ID) ON VNF_IDX
  4689. GO
  4690.  
  4691. ALTER TABLE RISCHK.BALLOT_TAB_QUESTION_LOOKUP ADD CONSTRAINT BALTBQUELK_PK PRIMARY KEY (BALLOT_TAB_ID,QUESTION_ID) ON VNF_IDX
  4692. GO
  4693.  
  4694. ALTER TABLE RISCHK.SCSESSION_COFACILIT_LOOKUP ADD CONSTRAINT SCSESSFASC_PK PRIMARY KEY (SESSION_ID,FACILITATOR_ID) ON VNF_IDX
  4695. GO
  4696.  
  4697. ALTER TABLE RISCHK.SC_SCALE ADD CONSTRAINT SCSCALE_PK PRIMARY KEY (SCALE_ID) ON VNF_IDX
  4698. GO
  4699.  
  4700. ALTER TABLE RISCHK.SC_BALLOT_TAB_RESULT ADD CONSTRAINT SCRESULT_PK PRIMARY KEY (RESULT_ID) ON VNF_IDX
  4701. GO
  4702.  
  4703. ALTER TABLE RISCHK.SC_SESSION ADD CONSTRAINT SCSESS_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIODS.PROJECT (PROJECT_ID)
  4704. GO
  4705.  
  4706. ALTER TABLE RISCHK.SC_SESSION ADD CONSTRAINT SCSESS_FK2 FOREIGN KEY (TEAM_ID) REFERENCES RIODS.TEAM (TEAM_ID)
  4707. GO
  4708.  
  4709. ALTER TABLE RISCHK.SC_SESSION ADD CONSTRAINT SCSESS_FK3 FOREIGN KEY (BALLOT_DEFINITION_ID) REFERENCES RISCHK.BALLOT_DEFINITION (BALLOT_DEFINITION_ID)
  4710. GO
  4711.  
  4712. ALTER TABLE RISCHK.SCSESSION_PARTICIPANT_LOOKUP ADD CONSTRAINT SCSESSPART_FK1 FOREIGN KEY (SESSION_ID) REFERENCES RISCHK.SC_SESSION (SESSION_ID)
  4713. GO
  4714.  
  4715. ALTER TABLE RISCHK.SCSESSION_PARTICIPANT_LOOKUP ADD CONSTRAINT SCSESSPART_FK2 FOREIGN KEY (PARTICIPANT_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  4716. GO
  4717.  
  4718. ALTER TABLE RISCHK.SCSESSION_COFACILIT_LOOKUP ADD CONSTRAINT SCSESSFASC_FK1 FOREIGN KEY (SESSION_ID) REFERENCES RISCHK.SC_SESSION (SESSION_ID)
  4719. GO
  4720.  
  4721. ALTER TABLE RISCHK.SCSESSION_COFACILIT_LOOKUP ADD CONSTRAINT SCSESSFASC_FK2 FOREIGN KEY (FACILITATOR_ID) REFERENCES RIODS.RESOURCE (RESOURCE_ID)
  4722. GO
  4723.  
  4724. ALTER TABLE RISCHK.BALLOT_DEFINITION ADD CONSTRAINT BALLOTDEF_FK3 FOREIGN KEY (SCALE_ID) REFERENCES RISCHK.SC_SCALE (SCALE_ID)
  4725. GO
  4726.  
  4727. ALTER TABLE RISCHK.BALLOTDEF_BALLOT_TAB_LOOKUP ADD CONSTRAINT BALDEFTAB_FK1 FOREIGN KEY (BALLOT_DEFINITION_ID) REFERENCES RISCHK.BALLOT_DEFINITION(BALLOT_DEFINITION_ID)
  4728. GO
  4729.  
  4730. ALTER TABLE RISCHK.BALLOTDEF_BALLOT_TAB_LOOKUP ADD CONSTRAINT BALDEFTAB_FK2 FOREIGN KEY (BALLOT_TAB_ID) REFERENCES RISCHK.BALLOT_TAB (BALLOT_TAB_ID)
  4731. GO
  4732.  
  4733. ALTER TABLE RISCHK.ANSWER ADD CONSTRAINT ANSWER_FK1 FOREIGN KEY (QUESTION_ID) REFERENCES RISCHK.QUESTION (QUESTION_ID)
  4734. GO
  4735.  
  4736. ALTER TABLE RISCHK.ANSWER ADD CONSTRAINT ANSWER_FK2 FOREIGN KEY (BALLOT_ID) REFERENCES RISCHK.BALLOT (BALLOT_ID)
  4737. GO
  4738.  
  4739. ALTER TABLE RISCHK.ANSWER ADD CONSTRAINT ANSWER_FK3 FOREIGN KEY (BALLOT_TAB_ID) REFERENCES RISCHK.BALLOT_TAB (BALLOT_TAB_ID)
  4740. GO
  4741.  
  4742. ALTER TABLE RISCHK.QUESTION ADD CONSTRAINT QUESTION_FK3 FOREIGN KEY (SCALE_ID) REFERENCES RISCHK.SC_SCALE (SCALE_ID)
  4743. GO
  4744.  
  4745. ALTER TABLE RISCHK.BALLOT_TAB_QUESTION_LOOKUP ADD CONSTRAINT BALTBQUELK_FK1 FOREIGN KEY (BALLOT_TAB_ID) REFERENCES RISCHK.BALLOT_TAB (BALLOT_TAB_ID)
  4746. GO
  4747.  
  4748. ALTER TABLE RISCHK.BALLOT_TAB_QUESTION_LOOKUP ADD CONSTRAINT BALTBQUELK_FK2 FOREIGN KEY (QUESTION_ID) REFERENCES RISCHK.QUESTION (QUESTION_ID)
  4749. GO
  4750.  
  4751. ALTER TABLE RISCHK.SC_BALLOT_TAB_RESULT ADD CONSTRAINT SCRESULT_FK3 FOREIGN KEY (SESSION_ID) REFERENCES RISCHK.SC_SESSION (SESSION_ID)
  4752. GO
  4753.  
  4754. ALTER TABLE RISCHK.SC_BALLOT_TAB_RESULT ADD CONSTRAINT SCRESULT_FK4 FOREIGN KEY (BALLOT_TAB_ID) REFERENCES RISCHK.BALLOT_TAB (BALLOT_TAB_ID)
  4755. GO
  4756.  
  4757. CREATE TRIGGER TRG_BALDEFBALTAB ON RISCHK.BALLOT_DEFINITION FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RISCHK.BALLOTDEF_BALLOT_TAB_LOOKUP WHERE BALLOT_DEFINITION_ID IN (SELECT BALLOT_DEFINITION_ID FROM INSERTED ) END
  4758. GO
  4759.  
  4760. CREATE TRIGGER TRG_BALTABQUES ON RISCHK.QUESTION FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RISCHK.BALLOT_TAB_QUESTION_LOOKUP WHERE QUESTION_ID IN (SELECT QUESTION_ID FROM INSERTED ) END
  4761. GO
  4762.  
  4763. CREATE TRIGGER TRG_SESCOFACILI ON RISCHK.SC_SESSION FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RISCHK.SCSESSION_COFACILIT_LOOKUP WHERE SESSION_ID IN (SELECT SESSION_ID FROM INSERTED ) END
  4764. GO
  4765.  
  4766. CREATE TRIGGER TRG_SESPARTICI ON RISCHK.SC_SESSION FOR UPDATE AS SET NOCOUNT ON IF UPDATE(REC_DATETIME) BEGIN DELETE FROM RISCHK.SCSESSION_PARTICIPANT_LOOKUP WHERE SESSION_ID IN (SELECT SESSION_ID FROM INSERTED ) END
  4767. GO
  4768.  
  4769. USE [RIDW]
  4770. GO
  4771.  
  4772. CREATE SCHEMA AUTHORIZATION RIDW
  4773. GO
  4774.  
  4775. SET QUOTED_IDENTIFIER ON
  4776. GO
  4777.  
  4778. CREATE TABLE RIDW.D_DATE ( DATE_ID INT NOT NULL, PERIOD_START_DATE DATETIME NOT NULL, DAY_OF_WEEK INT NOT NULL, DAY_OF_WEEK_ISO INT NOT NULL, DAY_OF_MONTH INT NOT NULL, DAY_OF_YEAR INT NOT NULL, DAY_NAME NVARCHAR(60) NOT NULL, WEEK_OF_MONTH INT NOT NULL, WEEK_OF_MONTH_ISO INT NOT NULL, WEEK_OF_YEAR INT NOT NULL, WEEK_OF_YEAR_ISO INT NOT NULL, WEEK_NO INT NOT NULL, WEEK_NO_ISO INT NOT NULL, MONTH_OF_YEAR INT NOT NULL, MONTH_NAME NVARCHAR(60) NOT NULL, MONTH_NO INT NOT NULL, QUARTER_OF_YEAR INT NOT NULL, QUARTER_NO INT NOT NULL, YEAR_OF INT NOT NULL ) ON VSTR_32K
  4779. GO
  4780.  
  4781. CREATE TABLE RIDW.D_CURRENCY ( CURRENCY_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4782. GO
  4783.  
  4784. CREATE TABLE RIDW.D_BUILD ( BUILD_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4785. GO
  4786.  
  4787. CREATE TABLE RIDW.D_ACTIVITY ( ACTIVITY_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4788. GO
  4789.  
  4790. CREATE TABLE RIDW.D_FILE ( FILE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4791. GO
  4792.  
  4793. CREATE TABLE RIDW.D_FILE_VERSION ( FILE_VERSION_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4794. GO
  4795.  
  4796. CREATE TABLE RIDW.D_FILE_STREAM ( FILE_STREAM_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4797. GO
  4798.  
  4799. CREATE TABLE RIDW.D_FILE_BASELINE ( FILE_BASELINE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4800. GO
  4801.  
  4802. CREATE TABLE RIDW.D_REQUEST_STATE ( STATE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  4803. GO
  4804.  
  4805. CREATE TABLE RIDW.D_REQUIREMENT_STATE ( STATE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  4806. GO
  4807.  
  4808. CREATE TABLE RIDW.D_RESOURCE ( RESOURCE_ID INT NOT NULL, FULL_NAME NVARCHAR(110) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4809. GO
  4810.  
  4811. CREATE TABLE RIDW.D_PRIORITY ( PRIORITY_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4812. GO
  4813.  
  4814. CREATE TABLE RIDW.D_STABILITY ( STABILITY_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4815. GO
  4816.  
  4817. CREATE TABLE RIDW.D_DIFFICULTY ( DIFFICULTY_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4818. GO
  4819.  
  4820. CREATE TABLE RIDW.D_CUSTOMER_PRIORITY ( CUSTOMER_PRIORITY_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4821. GO
  4822.  
  4823. CREATE TABLE RIDW.D_ITERATION ( ITERATION_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4824. GO
  4825.  
  4826. CREATE TABLE RIDW.D_TEAM ( TEAM_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4827. GO
  4828.  
  4829. CREATE TABLE RIDW.D_RELEASE ( RELEASE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4830. GO
  4831.  
  4832. CREATE TABLE RIDW.D_PLATFORM ( PLATFORM_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4833. GO
  4834.  
  4835. CREATE TABLE RIDW.D_SEVERITY ( SEVERITY_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4836. GO
  4837.  
  4838. CREATE TABLE RIDW.D_STATUS ( STATUS_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  4839. GO
  4840.  
  4841. CREATE TABLE RIDW.D_PROJECT ( PROJECT_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, PROGRAM_ID INT NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4842. GO
  4843.  
  4844. CREATE TABLE RIDW.D_CUSTOMER ( CUSTOMER_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4845. GO
  4846.  
  4847. CREATE TABLE RIDW.D_PRODUCT ( PRODUCT_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4848. GO
  4849.  
  4850. CREATE TABLE RIDW.D_COMPONENT ( COMPONENT_ID INT NOT NULL, PARENT_COMPONENT_ID INT NOT NULL, PRODUCT_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4851. GO
  4852.  
  4853. CREATE TABLE RIDW.D_REQUEST_CLASSIFICATION ( REQUEST_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4854. GO
  4855.  
  4856. CREATE TABLE RIDW.D_REQUIREMENT_CLASSIFICATION ( REQUIREMENT_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4857. GO
  4858.  
  4859. CREATE TABLE RIDW.D_TASK_CLASSIFICATION ( TASK_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4860. GO
  4861.  
  4862. CREATE TABLE RIDW.D_REQUIREMENT ( REQUIREMENT_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4863. GO
  4864.  
  4865. CREATE TABLE RIDW.D_COMPONENT_CLASSIFICATION ( COMPONENT_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4866. GO
  4867.  
  4868. CREATE TABLE RIDW.D_TESTCASE ( TESTCASE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4869. GO
  4870.  
  4871. CREATE TABLE RIDW.D_TESTSUITE ( TESTSUITE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4872. GO
  4873.  
  4874. CREATE TABLE RIDW.D_EXECUTION_WORKITEM ( EXECWORKITEM_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4875. GO
  4876.  
  4877. CREATE TABLE RIDW.D_EXECUTION_RESULT ( EXECUTION_RESULT_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4878. GO
  4879.  
  4880. CREATE TABLE RIDW.D_TESTSUITELOG ( TESTSUITELOG_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4881. GO
  4882.  
  4883. CREATE TABLE RIDW.D_TESTPLAN ( TESTPLAN_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4884. GO
  4885.  
  4886. CREATE TABLE RIDW.D_VERDICT ( VERDICT_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4887. GO
  4888.  
  4889. CREATE TABLE RIDW.D_REQUEST_SOURCE ( REQUEST_SOURCE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4890. GO
  4891.  
  4892. CREATE TABLE RIDW.D_RESOLUTION ( RESOLUTION_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4893. GO
  4894.  
  4895. CREATE TABLE RIDW.D_REQUEST ( REQUEST_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4896. GO
  4897.  
  4898. CREATE TABLE RIDW.D_ASSETREGISTRY ( ASSETREGISTRY_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4899. GO
  4900.  
  4901. CREATE TABLE RIDW.D_TESTCASE_STATE ( STATE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  4902. GO
  4903.  
  4904. CREATE TABLE RIDW.D_EXECUTIONWKITEM_STATE ( STATE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  4905. GO
  4906.  
  4907. CREATE TABLE RIDW.D_TESTPLAN_STATE ( STATE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  4908. GO
  4909.  
  4910. CREATE TABLE RIDW.D_TESTSUITE_STATE ( STATE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  4911. GO
  4912.  
  4913. CREATE TABLE RIDW.D_TASK_STATE ( STATE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  4914. GO
  4915.  
  4916. CREATE TABLE RIDW.D_TASK ( TASK_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, TYPE_NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4917. GO
  4918.  
  4919. CREATE TABLE RIDW.D_FACTOR ( FACTOR_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4920. GO
  4921.  
  4922. CREATE TABLE RIDW.D_ACTIVITY_STATE ( STATE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  4923. GO
  4924.  
  4925. CREATE TABLE RIDW.D_ACTIVITY_CLASSIFICATION ( ACTIVITY_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4926. GO
  4927.  
  4928. CREATE TABLE RIDW.D_PROJECT_CLASSIFICATION ( PROJECT_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4929. GO
  4930.  
  4931. CREATE TABLE RIDW.D_TASK_TYPE( TASK_TYPE_ID INT NOT NULL, NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4932. GO
  4933.  
  4934. CREATE TABLE RIDW.D_BUILD_TYPE( BUILD_TYPE_ID INT NOT NULL, NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4935. GO
  4936.  
  4937. CREATE TABLE RIDW.D_TESTCASE_CLASSIFICATION ( TESTCASE_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4938. GO
  4939.  
  4940. CREATE TABLE RIDW.D_EXECWORKITEM_CLASSIFICATION ( EXECWORKIT_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4941. GO
  4942.  
  4943. CREATE TABLE RIDW.D_EXECRESULT_CLASSIFICATION ( EXECRES_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4944. GO
  4945.  
  4946. CREATE TABLE RIDW.D_TESTSUITE_CLASSIFICATION ( TESTSUITE_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4947. GO
  4948.  
  4949. CREATE TABLE RIDW.D_REQUEST_TYPE ( REQUEST_TYPE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4950. GO
  4951.  
  4952. CREATE TABLE RIDW.D_CONFIGURATION ( CONFIGURATION_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4953. GO
  4954.  
  4955. CREATE TABLE RIDW.D_RESOURCE_GROUP ( RESOURCE_GROUP_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4956. GO
  4957.  
  4958. CREATE TABLE RIDW.D_LAB_RESOURCE ( LAB_RESOURCE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4959. GO
  4960.  
  4961. CREATE TABLE RIDW.D_OS_TYPE ( OS_TYPE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4962. GO
  4963.  
  4964. CREATE TABLE RIDW.D_REQUEST_CATEGORY ( REQUEST_CATEGORY_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4965. GO
  4966.  
  4967. CREATE TABLE RIDW.D_FILE_CLASSIFICATION ( FILE_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4968. GO
  4969.  
  4970. CREATE TABLE RIDW.D_FILE_STREAM_CLASSIFICATION ( FILE_STREAM_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL ) ON VSTR_32K
  4971. GO
  4972.  
  4973. CREATE TABLE RIDW.D_BUILD_CLASSIFICATION( BUILD_CLASS_ID INT NOT NULL, NAME NVARCHAR(50) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4974. GO
  4975.  
  4976. CREATE TABLE RIDW.D_JOB ( JOB_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4977. GO
  4978.  
  4979. CREATE TABLE RIDW.D_JOB_RESULT ( JOB_RESULT_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4980. GO
  4981.  
  4982. CREATE TABLE RIDW.D_JOB_RESULT_STATE ( STATE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  4983. GO
  4984.  
  4985. CREATE TABLE RIDW.D_PROGRAM ( PROGRAM_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4986. GO
  4987.  
  4988. CREATE TABLE RIDW.D_TIMESHEET_STATE ( STATE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  4989. GO
  4990.  
  4991. CREATE TABLE RIDW.D_PROJECT_ALLOCATION ( PROJECT_ALLOCATION_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Info not available', ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4992. GO
  4993.  
  4994. CREATE TABLE RIDW.D_SKILL ( SKILL_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Info not available', ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4995. GO
  4996.  
  4997. CREATE TABLE RIDW.D_COMPETENCY ( COMPETENCY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Info not available', ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  4998. GO
  4999.  
  5000. CREATE TABLE RIDW.D_POOL ( POOL_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Info not available', ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5001. GO
  5002.  
  5003. CREATE TABLE RIDW.D_BASELINE ( BASELINE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Info not available', ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5004. GO
  5005.  
  5006. CREATE TABLE RIDW.D_CHARGECODE ( CHARGECODE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Info not available', ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5007. GO
  5008.  
  5009. CREATE TABLE RIDW.D_TIMECODE ( TIMECODE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Info not available', ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5010. GO
  5011.  
  5012. CREATE TABLE RIDW.D_RISK( RISK_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5013. GO
  5014.  
  5015. CREATE TABLE RIDW.D_RISK_STATE ( STATE_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL ) ON VSTR_32K
  5016. GO
  5017.  
  5018. CREATE TABLE RIDW.D_PROBABILITY_RANK ( PROBABILITY_RANK_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5019. GO
  5020.  
  5021. CREATE TABLE RIDW.D_IMPACT_RANK ( IMPACT_RANK_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5022. GO
  5023.  
  5024. CREATE TABLE RIDW.D_PROBABILITY_COST_RANK ( PROBABILITY_COST_RANK_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5025. GO
  5026.  
  5027. CREATE TABLE RIDW.D_SCORE_RANK ( SCORE_RANK_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5028. GO
  5029.  
  5030. CREATE TABLE RIDW.D_OPERATING_TERRITORY( TERRITORY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Territory Name Missing' NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5031. GO
  5032.  
  5033. CREATE TABLE RIDW.D_COUNTRY ( COUNTRY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Country Name Missing' NOT NULL, TERRITORY_ID INT NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5034. GO
  5035.  
  5036. CREATE TABLE RIDW.D_PROVINCE_STATE ( PROVINCE_STATE_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'Province or State Name Missing' NOT NULL, COUNTRY_ID INT NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5037. GO
  5038.  
  5039. CREATE TABLE RIDW.D_CITY ( CITY_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'City Name Missing' NOT NULL, PROVINCE_STATE_ID INT NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5040. GO
  5041.  
  5042. CREATE TABLE RIDW.D_ORGANIZATION ( ORGANIZATION_ID INT NOT NULL, NAME NVARCHAR(255) DEFAULT 'City Name Missing' NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5043. GO
  5044.  
  5045. CREATE TABLE RIDW.D_AGE_RANK ( AGE_RANK_ID INT NOT NULL, NAME NVARCHAR (255) DEFAULT 'Age Rank Name Missing' NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5046. GO
  5047.  
  5048. CREATE TABLE RIDW.D_PORTFOLIO ( PORTFOLIO_ID INT NOT NULL, NAME NVARCHAR (255) DEFAULT 'Portfolio Name Missing' NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5049. GO
  5050.  
  5051. CREATE TABLE RIDW.BD_PORTFOLIO ( PORTFOLIO_ID INT NOT NULL, PROGRAM_ID INT NOT NULL, PROJECT_ID INT NOT NULL ) ON VSTR_32K
  5052. GO
  5053.  
  5054. CREATE TABLE RIDW.D_REQUIREMENT_TYPE( REQUIREMENT_TYPE_ID INT NOT NULL, NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5055. GO
  5056.  
  5057. CREATE TABLE RIDW.D_ASSET( ASSET_ID INT NOT NULL, NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5058. GO
  5059.  
  5060. CREATE TABLE RIDW.D_ASSET_TYPE( ASSET_TYPE_ID INT NOT NULL, NAME NVARCHAR(255), ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5061. GO
  5062.  
  5063. CREATE TABLE RIDW.D_ACTION_TYPE( ACTION_TYPE_ID INT NOT NULL, NAME NVARCHAR(255), TYPE INT , ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5064. GO
  5065.  
  5066. CREATE TABLE RIDW.D_REQUEST_PRIORITY ( PRIORITY_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5067. GO
  5068.  
  5069. CREATE TABLE RIDW.D_REQUEST_SEVERITY ( SEVERITY_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5070. GO
  5071.  
  5072. CREATE TABLE RIDW.D_REQUEST_STATUS ( STATUS_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5073. GO
  5074.  
  5075. CREATE TABLE RIDW.D_BALLOT_TAB ( BALLOT_TAB_ID INT NOT NULL, NAME NVARCHAR(255) NOT NULL, ISSOFTDELETED SMALLINT DEFAULT 0 NOT NULL ) ON VSTR_32K
  5076. GO
  5077.  
  5078. CREATE TABLE RIDW.F_REQUEST_METRICS ( REQUEST_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, PLATFORM_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, TEAM_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, FIXEDINRELEASE_ID INT NOT NULL, STATUS_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_WORK INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_BLOCKING INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5079. GO
  5080.  
  5081. CREATE TABLE RIDW.F_C_REQUEST_METRICS ( REQUEST_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, PLATFORM_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, TEAM_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, FIXEDINRELEASE_ID INT NOT NULL, STATUS_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_WORK INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_BLOCKING INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5082. GO
  5083.  
  5084. CREATE TABLE RIDW.H_REQUEST_METRICS_TOTAL ( REQUEST_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5085. GO
  5086.  
  5087. CREATE TABLE RIDW.H_REQUEST_METRICS_BLOCKING ( REQUEST_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5088. GO
  5089.  
  5090. CREATE TABLE RIDW.F_REQUEST_REQUI_METRICS ( REQUEST_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, PLATFORM_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, TEAM_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, FIXEDINRELEASE_ID INT NOT NULL, STATUS_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_WORK INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_BLOCKING INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5091. GO
  5092.  
  5093. CREATE TABLE RIDW.F_C_REQUEST_REQUI_METRICS ( REQUEST_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, PLATFORM_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, TEAM_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, FIXEDINRELEASE_ID INT NOT NULL, STATUS_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_WORK INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_BLOCKING INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5094. GO
  5095.  
  5096. CREATE TABLE RIDW.H_REQUEST_REQUI_METRICS_TOTAL ( REQUEST_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5097. GO
  5098.  
  5099. CREATE TABLE RIDW.H_REQUEST_REQUI_METRICS_BLOCK ( REQUEST_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5100. GO
  5101.  
  5102. CREATE TABLE RIDW.F_REQUEST_CUST_METRICS ( REQUEST_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, CUSTOMER_ID INT NOT NULL, PLATFORM_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, TEAM_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, FIXEDINRELEASE_ID INT NOT NULL, STATUS_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_WORK INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_BLOCKING INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5103. GO
  5104.  
  5105. CREATE TABLE RIDW.F_C_REQUEST_CUST_METRICS ( REQUEST_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, CUSTOMER_ID INT NOT NULL, PLATFORM_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, TEAM_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, FIXEDINRELEASE_ID INT NOT NULL, STATUS_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_WORK INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_BLOCKING INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5106. GO
  5107.  
  5108. CREATE TABLE RIDW.H_REQUEST_CUST_METRICS_TOTAL ( REQUEST_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5109. GO
  5110.  
  5111. CREATE TABLE RIDW.H_REQUEST_CUST_METRICS_BLOCK ( REQUEST_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5112. GO
  5113.  
  5114. CREATE TABLE RIDW.F_REQUEST_TPLN_METRICS ( REQUEST_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, PLATFORM_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, TEAM_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, FIXEDINRELEASE_ID INT NOT NULL, STATUS_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_WORK INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_BLOCKING INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5115. GO
  5116.  
  5117. CREATE TABLE RIDW.F_C_REQUEST_TPLN_METRICS ( REQUEST_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, PLATFORM_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, TEAM_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, FIXEDINRELEASE_ID INT NOT NULL, STATUS_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_WORK INT DEFAULT 0 NOT NULL, TESTPLAN_ID INT NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_BLOCKING INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5118. GO
  5119.  
  5120. CREATE TABLE RIDW.H_REQUEST_TPLN_METRICS_TOTAL ( REQUEST_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5121. GO
  5122.  
  5123. CREATE TABLE RIDW.H_REQUEST_TPLN_METRICS_BLOCK ( REQUEST_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5124. GO
  5125.  
  5126. CREATE TABLE RIDW.F_REQUEST_AGING ( AGING_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, CREATOR_ID INT NOT NULL, STATE_MIN INT DEFAULT 0 NOT NULL, STATE_MAX INT DEFAULT 0 NOT NULL, STATE_TOTAL_DAYS INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5127. GO
  5128.  
  5129. CREATE TABLE RIDW.F_C_REQUEST_AGING ( AGING_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, CREATOR_ID INT NOT NULL, STATE_MIN INT DEFAULT 0 NOT NULL, STATE_MAX INT DEFAULT 0 NOT NULL, STATE_TOTAL_DAYS INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5130. GO
  5131.  
  5132. CREATE TABLE RIDW.H_REQUEST_AGING_TOTAL( AGING_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5133. GO
  5134.  
  5135. CREATE TABLE RIDW.H_REQUEST_AGING_MIN( AGING_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5136. GO
  5137.  
  5138. CREATE TABLE RIDW.H_REQUEST_AGING_MAX( AGING_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5139. GO
  5140.  
  5141. CREATE TABLE RIDW.F_REQUEST_TPLN_AGING ( AGING_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, CREATOR_ID INT NOT NULL, STATE_MIN INT DEFAULT 0 NOT NULL, STATE_MAX INT DEFAULT 0 NOT NULL, STATE_TOTAL_DAYS INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5142. GO
  5143.  
  5144. CREATE TABLE RIDW.F_C_REQUEST_TPLN_AGING ( AGING_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, CREATOR_ID INT NOT NULL, STATE_MIN INT DEFAULT 0 NOT NULL, STATE_MAX INT DEFAULT 0 NOT NULL, STATE_TOTAL_DAYS INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5145. GO
  5146.  
  5147. CREATE TABLE RIDW.H_REQUEST_AGING_TPLN_TOTAL( AGING_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5148. GO
  5149.  
  5150. CREATE TABLE RIDW.H_REQUEST_AGING_TPLN_MIN( AGING_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5151. GO
  5152.  
  5153. CREATE TABLE RIDW.H_REQUEST_AGING_TPLN_MAX( AGING_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5154. GO
  5155.  
  5156. CREATE TABLE RIDW.F_REQUEST_TURNAROUND ( TURNAROUND_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TURNAROUND_MIN INT DEFAULT 0 NOT NULL, TURNAROUND_MAX INT DEFAULT 0 NOT NULL, TOTAL_DAYS INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5157. GO
  5158.  
  5159. CREATE TABLE RIDW.F_C_REQUEST_TURNAROUND ( TURNAROUND_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TURNAROUND_MIN INT DEFAULT 0 NOT NULL, TURNAROUND_MAX INT DEFAULT 0 NOT NULL, TOTAL_DAYS INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5160. GO
  5161.  
  5162. CREATE TABLE RIDW.H_REQUEST_TURNAROUND_TOTAL( TURNAROUND_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5163. GO
  5164.  
  5165. CREATE TABLE RIDW.H_REQUEST_TURNAROUND_MIN( TURNAROUND_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5166. GO
  5167.  
  5168. CREATE TABLE RIDW.H_REQUEST_TURNAROUND_MAX( TURNAROUND_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5169. GO
  5170.  
  5171. CREATE TABLE RIDW.F_REQUEST_TPLN_TURNAROUND ( TURNAROUND_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TURNAROUND_MIN INT DEFAULT 0 NOT NULL, TURNAROUND_MAX INT DEFAULT 0 NOT NULL, TOTAL_DAYS INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5172. GO
  5173.  
  5174. CREATE TABLE RIDW.F_C_REQUEST_TPLN_TURNAROUND ( TURNAROUND_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TURNAROUND_MIN INT DEFAULT 0 NOT NULL, TURNAROUND_MAX INT DEFAULT 0 NOT NULL, TOTAL_DAYS INT DEFAULT 0 NOT NULL, TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5175. GO
  5176.  
  5177. CREATE TABLE RIDW.H_REQUEST_TPLN_TURNAROUND_TOT( TURNAROUND_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5178. GO
  5179.  
  5180. CREATE TABLE RIDW.H_REQUEST_TPLN_TURNAROUND_MIN( TURNAROUND_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5181. GO
  5182.  
  5183. CREATE TABLE RIDW.H_REQUEST_TPLN_TURNAROUND_MAX( TURNAROUND_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5184. GO
  5185.  
  5186. CREATE TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ( REQCDT_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, STATUS_ID INT NOT NULL, CUSTOMER_PRIORITY_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CLOSED_DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_COUNT INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5187. GO
  5188.  
  5189. CREATE TABLE RIDW.H_REQUEST_CLOSURE_DATE_METRICS ( REQCDT_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5190. GO
  5191.  
  5192. CREATE TABLE RIDW.F_REQUE_CLOSE_REQUI_DT_METRICS ( REQCDT_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, STATUS_ID INT NOT NULL, CUSTOMER_PRIORITY_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CLOSED_DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_COUNT INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5193. GO
  5194.  
  5195. CREATE TABLE RIDW.H_REQUE_CLOSE_REQUI_DT_METRICS ( REQCDT_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5196. GO
  5197.  
  5198. CREATE TABLE RIDW.F_REQUE_CLOSE_TPLN_DT_METRICS ( REQCDT_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, STATUS_ID INT NOT NULL, CUSTOMER_PRIORITY_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CLOSED_DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_COUNT INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5199. GO
  5200.  
  5201. CREATE TABLE RIDW.H_REQUE_CLOSE_TPLN_DT_METRICS ( REQCDT_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5202. GO
  5203.  
  5204. CREATE TABLE RIDW.F_EXECUTION_RESULT_METRICS ( EXERES_METRICS_ID INT NOT NULL, EXECRES_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, ASSETREGISTRY_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, VERDICT_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_EXERES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5205. GO
  5206.  
  5207. CREATE TABLE RIDW.F_C_EXECUTION_RESULT_METRICS ( EXERES_METRICS_ID INT NOT NULL, EXECRES_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, ASSETREGISTRY_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, VERDICT_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_EXERES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5208. GO
  5209.  
  5210. CREATE TABLE RIDW.F_EXECUTION_RES_ITER_METRICS ( EXERES_METRICS_ID INT NOT NULL, EXECRES_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, ASSETREGISTRY_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, VERDICT_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_EXERES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5211. GO
  5212.  
  5213. CREATE TABLE RIDW.F_C_EXEC_RESULT_ITER_METRICS ( EXERES_METRICS_ID INT NOT NULL, EXECRES_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, ASSETREGISTRY_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, VERDICT_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_EXERES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5214. GO
  5215.  
  5216. CREATE TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, STATUS_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, CUSTOMER_PRIORITY_ID INT NOT NULL, CREATION_DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, TEAM_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL, STORY_POINTS INT DEFAULT 0 NOT NULL, TOTAL_COUNT INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5217. GO
  5218.  
  5219. CREATE TABLE RIDW.H_REQUEST_CREATION_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5220. GO
  5221.  
  5222. CREATE TABLE RIDW.F_REQU_CREATI_TPLN_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, STATUS_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, CUSTOMER_PRIORITY_ID INT NOT NULL, CREATION_DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, TEAM_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL, STORY_POINTS INT DEFAULT 0 NOT NULL, TOTAL_COUNT INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5223. GO
  5224.  
  5225. CREATE TABLE RIDW.H_REQU_CREATI_TPLN_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5226. GO
  5227.  
  5228. CREATE TABLE RIDW.F_REQU_CREATI_REQUI_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, STATUS_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, CUSTOMER_PRIORITY_ID INT NOT NULL, CREATION_DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, TEAM_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL, STORY_POINTS INT DEFAULT 0 NOT NULL, TOTAL_COUNT INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5229. GO
  5230.  
  5231. CREATE TABLE RIDW.H_REQU_CREATI_REQUI_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5232. GO
  5233.  
  5234. CREATE TABLE RIDW.F_REQUEST_FAILURE_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_RE_FAILED INT , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5235. GO
  5236.  
  5237. CREATE TABLE RIDW.F_C_REQUEST_FAILURE_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_RE_FAILED INT , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5238. GO
  5239.  
  5240. CREATE TABLE RIDW.H_REQUEST_FAILURE_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5241. GO
  5242.  
  5243. CREATE TABLE RIDW.F_REQUEST_TPLN_FAIL_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_RE_FAILED INT , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5244. GO
  5245.  
  5246. CREATE TABLE RIDW.F_C_REQUEST_TPLN_FAIL_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_RE_FAILED INT , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5247. GO
  5248.  
  5249. CREATE TABLE RIDW.H_REQUEST_TPLN_FAIL_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5250. GO
  5251.  
  5252. CREATE TABLE RIDW.F_REQUEST_REQUI_FAIL_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_RE_FAILED INT , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5253. GO
  5254.  
  5255. CREATE TABLE RIDW.F_C_REQUEST_REQUI_FAIL_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_RE_FAILED INT , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5256. GO
  5257.  
  5258. CREATE TABLE RIDW.H_REQUEST_REQUI_FAIL_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5259. GO
  5260.  
  5261. CREATE TABLE RIDW.F_REQUIREMENT_METRICS ( REQ_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUIREMENT_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, STATE_ID INT NOT NULL, STATUS_ID INT NOT NULL, STABILITY_ID INT NOT NULL, DIFFICULTY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, REQUIREMENT_TYPE_ID INT NOT NULL, TOTAL_CHANGES INT DEFAULT 0 NOT NULL, TOTAL_REQUIREMENTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5262. GO
  5263.  
  5264. CREATE TABLE RIDW.F_C_REQUIREMENT_METRICS ( REQ_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUIREMENT_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, STATE_ID INT NOT NULL, STATUS_ID INT NOT NULL, STABILITY_ID INT NOT NULL, DIFFICULTY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, REQUIREMENT_TYPE_ID INT NOT NULL, TOTAL_CHANGES INT DEFAULT 0 NOT NULL, TOTAL_REQUIREMENTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5265. GO
  5266.  
  5267. CREATE TABLE RIDW.H_REQUIREMENT_METRICS_TOTAL ( REQ_METRIC_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL ) ON VSTR_32K
  5268. GO
  5269.  
  5270. CREATE TABLE RIDW.H_REQUIREMENT_METRICS_CHANGES ( REQ_METRIC_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL ) ON VSTR_32K
  5271. GO
  5272.  
  5273. CREATE TABLE RIDW.F_REQUI_TCASE_METRICS ( REQ_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUIREMENT_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, STATE_ID INT NOT NULL, STATUS_ID INT NOT NULL, STABILITY_ID INT NOT NULL, DIFFICULTY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, REQUIREMENT_TYPE_ID INT NOT NULL, TOTAL_CHANGES INT DEFAULT 0 NOT NULL, TOTAL_REQUIREMENTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5274. GO
  5275.  
  5276. CREATE TABLE RIDW.F_C_REQUI_TCASE_METRICS ( REQ_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUIREMENT_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, STATE_ID INT NOT NULL, STATUS_ID INT NOT NULL, STABILITY_ID INT NOT NULL, DIFFICULTY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, REQUIREMENT_TYPE_ID INT NOT NULL, TOTAL_CHANGES INT DEFAULT 0 NOT NULL, TOTAL_REQUIREMENTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5277. GO
  5278.  
  5279. CREATE TABLE RIDW.H_REQUI_TCASE_METRICS_TOTAL ( REQ_METRIC_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL ) ON VSTR_32K
  5280. GO
  5281.  
  5282. CREATE TABLE RIDW.H_REQUI_TCASE_METRICS_CHANGES ( REQ_METRIC_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL ) ON VSTR_32K
  5283. GO
  5284.  
  5285. CREATE TABLE RIDW.F_REQUIREMENT_TPLN_METRICS ( REQ_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUIREMENT_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, STATE_ID INT NOT NULL, STATUS_ID INT NOT NULL, STABILITY_ID INT NOT NULL, DIFFICULTY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, REQUIREMENT_TYPE_ID INT NOT NULL, TOTAL_CHANGES INT DEFAULT 0 NOT NULL, TOTAL_REQUIREMENTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5286. GO
  5287.  
  5288. CREATE TABLE RIDW.F_C_REQUIREMENT_TPLN_METRICS ( REQ_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUIREMENT_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, STATE_ID INT NOT NULL, STATUS_ID INT NOT NULL, STABILITY_ID INT NOT NULL, DIFFICULTY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, REQUIREMENT_TYPE_ID INT NOT NULL, TOTAL_CHANGES INT DEFAULT 0 NOT NULL, TOTAL_REQUIREMENTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5289. GO
  5290.  
  5291. CREATE TABLE RIDW.H_REQUI_TPLN_METRICS_TOTAL ( REQ_METRIC_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL ) ON VSTR_32K
  5292. GO
  5293.  
  5294. CREATE TABLE RIDW.H_REQUI_TPLN_METRICS_CHANGES ( REQ_METRIC_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL ) ON VSTR_32K
  5295. GO
  5296.  
  5297. CREATE TABLE RIDW.F_EXECUTION_WORKITEM_METRICS ( EXECWORKITEM_METRIC_ID INT NOT NULL, EXECWORKIT_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, VERDICT_ID INT NOT NULL, CONFIGURATION_ID INT NOT NULL, SUM_WEIGHT INT DEFAULT 0 NOT NULL , NUMBER_EXECWKITM INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5298. GO
  5299.  
  5300. CREATE TABLE RIDW.F_C_EXECUTION_WORKITEM_METRICS ( EXECWORKITEM_METRIC_ID INT NOT NULL, EXECWORKIT_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, VERDICT_ID INT NOT NULL, CONFIGURATION_ID INT NOT NULL, SUM_WEIGHT INT DEFAULT 0 NOT NULL , NUMBER_EXECWKITM INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5301. GO
  5302.  
  5303. CREATE TABLE RIDW.H_EXECUTION_WORKITEM_METRICS ( EXECWORKITEM_METRIC_ID INT NOT NULL, EXECWORKITEM_ID INT NOT NULL ) ON VSTR_32K
  5304. GO
  5305.  
  5306. CREATE TABLE RIDW.F_EXEC_WORKITEM_ITER_METRICS ( EXECWORKITEM_METRIC_ID INT NOT NULL, EXECWORKIT_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, VERDICT_ID INT NOT NULL, CONFIGURATION_ID INT NOT NULL, SUM_WEIGHT INT DEFAULT 0 NOT NULL , NUMBER_EXECWKITM INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5307. GO
  5308.  
  5309. CREATE TABLE RIDW.F_C_EXEC_WORKITEM_ITER_METRICS ( EXECWORKITEM_METRIC_ID INT NOT NULL, EXECWORKIT_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, VERDICT_ID INT NOT NULL, CONFIGURATION_ID INT NOT NULL, SUM_WEIGHT INT DEFAULT 0 NOT NULL , NUMBER_EXECWKITM INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5310. GO
  5311.  
  5312. CREATE TABLE RIDW.H_EXEC_WORKITEM_ITER_METRICS ( EXECWORKITEM_METRIC_ID INT NOT NULL, EXECWORKITEM_ID INT NOT NULL ) ON VSTR_32K
  5313. GO
  5314.  
  5315. CREATE TABLE RIDW.F_EXEC_WORKITEM_REQU_METRICS ( EXECWORKITEM_METRIC_ID INT NOT NULL, EXECWORKIT_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, VERDICT_ID INT NOT NULL, CONFIGURATION_ID INT NOT NULL, SUM_WEIGHT INT DEFAULT 0 NOT NULL , NUMBER_EXECWKITM INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5316. GO
  5317.  
  5318. CREATE TABLE RIDW.F_C_EXEC_WORKITEM_REQU_METRICS ( EXECWORKITEM_METRIC_ID INT NOT NULL, EXECWORKIT_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, VERDICT_ID INT NOT NULL, CONFIGURATION_ID INT NOT NULL, SUM_WEIGHT INT DEFAULT 0 NOT NULL , NUMBER_EXECWKITM INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5319. GO
  5320.  
  5321. CREATE TABLE RIDW.H_EXEC_WORKITEM_REQU_METRICS ( EXECWORKITEM_METRIC_ID INT NOT NULL, EXECWORKITEM_ID INT NOT NULL ) ON VSTR_32K
  5322. GO
  5323.  
  5324. CREATE TABLE RIDW.F_TESTCASE_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_TESTCASES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5325. GO
  5326.  
  5327. CREATE TABLE RIDW.F_C_TESTCASE_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_TESTCASES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5328. GO
  5329.  
  5330. CREATE TABLE RIDW.H_TESTCASE_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_ID INT NOT NULL ) ON VSTR_32K
  5331. GO
  5332.  
  5333. CREATE TABLE RIDW.F_TESTCASE_ITER_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_TESTCASES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5334. GO
  5335.  
  5336. CREATE TABLE RIDW.F_C_TESTCASE_ITER_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_TESTCASES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5337. GO
  5338.  
  5339. CREATE TABLE RIDW.H_TESTCASE_ITER_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_ID INT NOT NULL ) ON VSTR_32K
  5340. GO
  5341.  
  5342. CREATE TABLE RIDW.F_TESTCASE_REQUI_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, STATE_ID INT NOT NULL, TOTAL_TESTCASES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5343. GO
  5344.  
  5345. CREATE TABLE RIDW.F_C_TESTCASE_REQUI_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, STATE_ID INT NOT NULL, TOTAL_TESTCASES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5346. GO
  5347.  
  5348. CREATE TABLE RIDW.H_TESTCASE_REQUI_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_ID INT NOT NULL ) ON VSTR_32K
  5349. GO
  5350.  
  5351. CREATE TABLE RIDW.F_BUILD_METRICS ( BUILD_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, BUILD_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, BUILD_TYPE_ID INT NOT NULL, NUMBER_ATTEMPTS INT DEFAULT 0 NOT NULL, NUMBER_FAIL INT DEFAULT 0 NOT NULL, NUMBER_PASS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5352. GO
  5353.  
  5354. CREATE TABLE RIDW.F_C_BUILD_METRICS ( BUILD_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, BUILD_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, BUILD_TYPE_ID INT NOT NULL, NUMBER_ATTEMPTS INT DEFAULT 0 NOT NULL, NUMBER_FAIL INT DEFAULT 0 NOT NULL, NUMBER_PASS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5355. GO
  5356.  
  5357. CREATE TABLE RIDW.H_BUILD_ATTEMPTS ( BUILD_METRIC_ID INT NOT NULL, BUILD_ID INT NOT NULL ) ON VSTR_32K
  5358. GO
  5359.  
  5360. CREATE TABLE RIDW.H_BUILD_FAIL ( BUILD_METRIC_ID INT NOT NULL, BUILD_ID INT NOT NULL ) ON VSTR_32K
  5361. GO
  5362.  
  5363. CREATE TABLE RIDW.H_BUILD_PASS ( BUILD_METRIC_ID INT NOT NULL, BUILD_ID INT NOT NULL ) ON VSTR_32K
  5364. GO
  5365.  
  5366. CREATE TABLE RIDW.F_BUILD_REQU_METRICS ( BUILD_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, BUILD_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, BUILD_TYPE_ID INT NOT NULL, NUMBER_ATTEMPTS INT DEFAULT 0 NOT NULL, NUMBER_FAIL INT DEFAULT 0 NOT NULL, NUMBER_PASS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5367. GO
  5368.  
  5369. CREATE TABLE RIDW.F_C_BUILD_REQU_METRICS ( BUILD_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, BUILD_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, BUILD_TYPE_ID INT NOT NULL, NUMBER_ATTEMPTS INT DEFAULT 0 NOT NULL, NUMBER_FAIL INT DEFAULT 0 NOT NULL, NUMBER_PASS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5370. GO
  5371.  
  5372. CREATE TABLE RIDW.H_BUILD_REQU_ATTEMPTS ( BUILD_METRIC_ID INT NOT NULL, BUILD_ID INT NOT NULL ) ON VSTR_32K
  5373. GO
  5374.  
  5375. CREATE TABLE RIDW.H_BUILD_REQU_FAIL ( BUILD_METRIC_ID INT NOT NULL, BUILD_ID INT NOT NULL ) ON VSTR_32K
  5376. GO
  5377.  
  5378. CREATE TABLE RIDW.H_BUILD_REQU_PASS ( BUILD_METRIC_ID INT NOT NULL, BUILD_ID INT NOT NULL ) ON VSTR_32K
  5379. GO
  5380.  
  5381. CREATE TABLE RIDW.F_BUILD_REQUI_METRICS ( BUILD_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, BUILD_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, BUILD_TYPE_ID INT NOT NULL, NUMBER_ATTEMPTS INT DEFAULT 0 NOT NULL, NUMBER_FAIL INT DEFAULT 0 NOT NULL, NUMBER_PASS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5382. GO
  5383.  
  5384. CREATE TABLE RIDW.F_C_BUILD_REQUI_METRICS ( BUILD_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, BUILD_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, BUILD_TYPE_ID INT NOT NULL, NUMBER_ATTEMPTS INT DEFAULT 0 NOT NULL, NUMBER_FAIL INT DEFAULT 0 NOT NULL, NUMBER_PASS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5385. GO
  5386.  
  5387. CREATE TABLE RIDW.H_BUILD_REQUI_ATTEMPTS ( BUILD_METRIC_ID INT NOT NULL, BUILD_ID INT NOT NULL ) ON VSTR_32K
  5388. GO
  5389.  
  5390. CREATE TABLE RIDW.H_BUILD_REQUI_FAIL ( BUILD_METRIC_ID INT NOT NULL, BUILD_ID INT NOT NULL ) ON VSTR_32K
  5391. GO
  5392.  
  5393. CREATE TABLE RIDW.H_BUILD_REQUI_PASS ( BUILD_METRIC_ID INT NOT NULL, BUILD_ID INT NOT NULL ) ON VSTR_32K
  5394. GO
  5395.  
  5396. CREATE TABLE RIDW.F_BUILD_EXECUTION_DT_METRICS ( BUILD_EXEC_METRIC_ID INT NOT NULL, END_DATE_ID INT NOT NULL, BUILD_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, BUILD_TYPE_ID INT NOT NULL, STATUS_ID INT NOT NULL, NUMBER_ATTEMPTS INT DEFAULT 0 NOT NULL, NUMBER_FAIL INT DEFAULT 0 NOT NULL, NUMBER_PASS INT DEFAULT 0 NOT NULL, TOTAL_BUILDS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5397. GO
  5398.  
  5399. CREATE TABLE RIDW.H_BUILD_EXEC_DT_METRICS_TOT ( BUILD_EXEC_METRIC_ID INT NOT NULL, BUILD_ID INT NOT NULL ) ON VSTR_32K
  5400. GO
  5401.  
  5402. CREATE TABLE RIDW.F_BUILD_REQU_EXEC_DT_METRICS ( BUILD_EXEC_METRIC_ID INT NOT NULL, END_DATE_ID INT NOT NULL, BUILD_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, BUILD_TYPE_ID INT NOT NULL, STATUS_ID INT NOT NULL, NUMBER_ATTEMPTS INT DEFAULT 0 NOT NULL, NUMBER_FAIL INT DEFAULT 0 NOT NULL, NUMBER_PASS INT DEFAULT 0 NOT NULL, TOTAL_BUILDS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5403. GO
  5404.  
  5405. CREATE TABLE RIDW.H_BUILD_REQU_EXEC_DT_MET_TOT ( BUILD_EXEC_METRIC_ID INT NOT NULL, BUILD_ID INT NOT NULL ) ON VSTR_32K
  5406. GO
  5407.  
  5408. CREATE TABLE RIDW.F_PROJECT_PERFORMANCE_METRICS ( PERF_METRICS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, VAC DECIMAL(18,2) , BAC DECIMAL(18,2) , EAC DECIMAL(18,2) , BCWS DECIMAL(18,2) , BCWP DECIMAL(18,2) , ACWP DECIMAL(18,2) , CPI DECIMAL(18,2) , SPI DECIMAL(18,2) , CV DECIMAL(18,2) , SV DECIMAL(18,2) , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL) ON VSTR_32K
  5409. GO
  5410.  
  5411. CREATE TABLE RIDW.F_C_PROJECT_PERFORM_METRICS ( PERF_METRICS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, VAC DECIMAL(18,2) , BAC DECIMAL(18,2) , EAC DECIMAL(18,2) , BCWS DECIMAL(18,2) , BCWP DECIMAL(18,2) , ACWP DECIMAL(18,2) , CPI DECIMAL(18,2) , SPI DECIMAL(18,2) , CV DECIMAL(18,2) , SV DECIMAL(18,2) , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL) ON VSTR_32K
  5412. GO
  5413.  
  5414. CREATE TABLE RIDW.F_CHILDREQUIREMENT_METRICS ( CHILDREQ_METRICS_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUIREMENT_CLASS_ID INT NOT NULL, PARENT_REQUIREMENT_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, REQUIREMENT_TYPE_ID INT NOT NULL, TOTAL_CHILDREQUIREMENTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5415. GO
  5416.  
  5417. CREATE TABLE RIDW.F_C_CHILDREQUIREMENT_METRICS ( CHILDREQ_METRICS_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUIREMENT_CLASS_ID INT NOT NULL, PARENT_REQUIREMENT_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, REQUIREMENT_TYPE_ID INT NOT NULL, TOTAL_CHILDREQUIREMENTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5418. GO
  5419.  
  5420. CREATE TABLE RIDW.H_EXECUTION_RESULT_METRICS ( EXERES_METRICS_ID INT NOT NULL, EXECUTION_RESULT_ID INT NOT NULL ) ON VSTR_32K
  5421. GO
  5422.  
  5423. CREATE TABLE RIDW.H_EXECUTION_RES_ITER_METRICS ( EXERES_METRICS_ID INT NOT NULL, EXECUTION_RESULT_ID INT NOT NULL ) ON VSTR_32K
  5424. GO
  5425.  
  5426. CREATE TABLE RIDW.H_CHILDREQUIREMENT_METRICS ( CHILDREQ_METRICS_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL ) ON VSTR_32K
  5427. GO
  5428.  
  5429. CREATE TABLE RIDW.F_TEXT_FILE_VERSION_METRICS ( SLOC_METRICS_ID INT NOT NULL, FILE_CLASS_ID INT NOT NULL, FILE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, DATE_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL, SLOC_CHANGED INT DEFAULT 0 NOT NULL, SLOC_TOTAL INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5430. GO
  5431.  
  5432. CREATE TABLE RIDW.F_C_TEXT_FILE_VERSION_METRICS ( SLOC_METRICS_ID INT NOT NULL, FILE_CLASS_ID INT NOT NULL, FILE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, DATE_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL, SLOC_CHANGED INT DEFAULT 0 NOT NULL, SLOC_TOTAL INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5433. GO
  5434.  
  5435. CREATE TABLE RIDW.H_TEXT_FILE_VERSION_METRICS_CH ( SLOC_METRICS_ID INT NOT NULL, FILE_VERSION_ID INT NOT NULL ) ON VSTR_32K
  5436. GO
  5437.  
  5438. CREATE TABLE RIDW.H_TEXT_FILE_VERSION_METRICS_TO ( SLOC_METRICS_ID INT NOT NULL, FILE_VERSION_ID INT NOT NULL ) ON VSTR_32K
  5439. GO
  5440.  
  5441. CREATE TABLE RIDW.F_TEXT_FILE_VER_BSLN_METRICS ( SLOC_METRICS_ID INT NOT NULL, FILE_CLASS_ID INT NOT NULL, FILE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, DATE_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL, FILE_BASELINE_ID INT NOT NULL, SLOC_CHANGED INT DEFAULT 0 NOT NULL, SLOC_TOTAL INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5442. GO
  5443.  
  5444. CREATE TABLE RIDW.F_C_TEXT_FILE_VERBSLN_METRICS ( SLOC_METRICS_ID INT NOT NULL, FILE_CLASS_ID INT NOT NULL, FILE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, DATE_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL, FILE_BASELINE_ID INT NOT NULL, SLOC_CHANGED INT DEFAULT 0 NOT NULL, SLOC_TOTAL INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5445. GO
  5446.  
  5447. CREATE TABLE RIDW.H_TEXT_FILE_VERBSLN_METRICS_CH ( SLOC_METRICS_ID INT NOT NULL, FILE_VERSION_ID INT NOT NULL ) ON VSTR_32K
  5448. GO
  5449.  
  5450. CREATE TABLE RIDW.H_TEXT_FILE_VERBSLN_METRICS_TO ( SLOC_METRICS_ID INT NOT NULL, FILE_VERSION_ID INT NOT NULL ) ON VSTR_32K
  5451. GO
  5452.  
  5453. CREATE TABLE RIDW.F_TEXT_FILE_VER_REQU_METRICS ( SLOC_METRICS_ID INT NOT NULL, FILE_CLASS_ID INT NOT NULL, FILE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, REQUEST_ID INT NOT NULL, DATE_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL, SLOC_CHANGED INT DEFAULT 0 NOT NULL, SLOC_TOTAL INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5454. GO
  5455.  
  5456. CREATE TABLE RIDW.F_C_TEXT_FILE_VER_REQU_METRICS ( SLOC_METRICS_ID INT NOT NULL, FILE_CLASS_ID INT NOT NULL, FILE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, REQUEST_ID INT NOT NULL, DATE_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL, SLOC_CHANGED INT DEFAULT 0 NOT NULL, SLOC_TOTAL INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5457. GO
  5458.  
  5459. CREATE TABLE RIDW.H_TEXT_FILE_VER_REQ_METRICS_CH ( SLOC_METRICS_ID INT NOT NULL, FILE_VERSION_ID INT NOT NULL ) ON VSTR_32K
  5460. GO
  5461.  
  5462. CREATE TABLE RIDW.H_TEXT_FILE_VER_REQ_METRICS_TO ( SLOC_METRICS_ID INT NOT NULL, FILE_VERSION_ID INT NOT NULL ) ON VSTR_32K
  5463. GO
  5464.  
  5465. CREATE TABLE RIDW.F_TEXT_FILE_VERSION_DT_METRICS ( SLOC_METRICS_ID INT NOT NULL, FILE_CLASS_ID INT NOT NULL, FILE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, DATE_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL, SLOC_CHANGED INT DEFAULT 0 NOT NULL, SLOC_TOTAL INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5466. GO
  5467.  
  5468. CREATE TABLE RIDW.H_TEXT_FILE_VERS_DT_METRICS_CH ( SLOC_METRICS_ID INT NOT NULL, FILE_VERSION_ID INT NOT NULL ) ON VSTR_32K
  5469. GO
  5470.  
  5471. CREATE TABLE RIDW.H_TEXT_FILE_VERS_DT_METRICS_TO ( SLOC_METRICS_ID INT NOT NULL, FILE_VERSION_ID INT NOT NULL ) ON VSTR_32K
  5472. GO
  5473.  
  5474. CREATE TABLE RIDW.F_TEXT_FILE_VERSREQ_DT_METRICS ( SLOC_METRICS_ID INT NOT NULL, FILE_CLASS_ID INT NOT NULL, FILE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, DATE_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL, REQUEST_ID INT NOT NULL, SLOC_CHANGED INT DEFAULT 0 NOT NULL, SLOC_TOTAL INT DEFAULT 0 NOT NULL, ACTUAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5475. GO
  5476.  
  5477. CREATE TABLE RIDW.H_TXT_FILE_VERSREQ_DT_METR_CH ( SLOC_METRICS_ID INT NOT NULL, FILE_VERSION_ID INT NOT NULL ) ON VSTR_32K
  5478. GO
  5479.  
  5480. CREATE TABLE RIDW.H_TXT_FILE_VERSREQ_DT_METR_TO ( SLOC_METRICS_ID INT NOT NULL, FILE_VERSION_ID INT NOT NULL ) ON VSTR_32K
  5481. GO
  5482.  
  5483. CREATE TABLE RIDW.F_EXECRESULT_DATE_METRICS( EXECRESDT_METRICS_ID INT NOT NULL, EXECRES_CLASS_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, DAY_OF_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_EXERES INT NOT NULL, SUM_POINTS_BLOCKED INT DEFAULT 0 NOT NULL, SUM_POINTS_INCONCLUSIVE INT DEFAULT 0 NOT NULL, SUM_POINTS_ATTEMPTED INT DEFAULT 0 NOT NULL, SUM_POINTS_FAILED INT DEFAULT 0 NOT NULL, SUM_POINTS_PASSED INT DEFAULT 0 NOT NULL, SUM_POINTS_PERMFAILED INT DEFAULT 0 NOT NULL, SUM_POINTS_DEFERRED INT DEFAULT 0 NOT NULL, SUM_POINTS_TOTAL INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL) ON VSTR_32K
  5484. GO
  5485.  
  5486. CREATE TABLE RIDW.H_EXECRESULT_DATE_METRICS ( EXECRESDT_METRICS_ID INT NOT NULL, EXECUTION_RESULT_ID INT NOT NULL ) ON VSTR_32K
  5487. GO
  5488.  
  5489. CREATE TABLE RIDW.F_EXECRESPOINTS_METRICS ( EXECRES_METRIC_ID INT NOT NULL, EXECRES_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, PROJECT_ID INT NOT NULL, VERDICT_ID INT NOT NULL, SUM_POINTS_PASSED INT DEFAULT 0 NOT NULL, SUM_POINTS_BLOCKED INT DEFAULT 0 NOT NULL, SUM_POINTS_INCONCLUSIVE INT DEFAULT 0 NOT NULL, SUM_POINTS_ATTEMPTED INT DEFAULT 0 NOT NULL, SUM_POINTS_FAILED INT DEFAULT 0 NOT NULL, SUM_POINTS_PERMFAILED INT DEFAULT 0 NOT NULL, SUM_POINTS_DEFERRED INT DEFAULT 0 NOT NULL, SUM_POINTS_TOTAL INT DEFAULT 0 NOT NULL, TOTAL_CURRENT_EXECRES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5490. GO
  5491.  
  5492. CREATE TABLE RIDW.F_C_EXECRESPOINTS_METRICS ( EXECRES_METRIC_ID INT NOT NULL, EXECRES_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, VERDICT_ID INT NOT NULL, PROJECT_ID INT NOT NULL, SUM_POINTS_PASSED INT DEFAULT 0 NOT NULL, SUM_POINTS_BLOCKED INT DEFAULT 0 NOT NULL, SUM_POINTS_INCONCLUSIVE INT DEFAULT 0 NOT NULL, SUM_POINTS_ATTEMPTED INT DEFAULT 0 NOT NULL, SUM_POINTS_FAILED INT DEFAULT 0 NOT NULL, SUM_POINTS_PERMFAILED INT DEFAULT 0 NOT NULL, SUM_POINTS_DEFERRED INT DEFAULT 0 NOT NULL, SUM_POINTS_TOTAL INT DEFAULT 0 NOT NULL, TOTAL_CURRENT_EXECRES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5493. GO
  5494.  
  5495. CREATE TABLE RIDW.H_EXECRESPOINTS_METRICS ( EXECRES_METRIC_ID INT NOT NULL, EXECUTION_RESULT_ID INT NOT NULL ) ON VSTR_32K
  5496. GO
  5497.  
  5498. CREATE TABLE RIDW.F_EXECRESPOINTS_ITER_METRICS ( EXECRES_METRIC_ID INT NOT NULL, EXECRES_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, VERDICT_ID INT NOT NULL, PROJECT_ID INT NOT NULL, SUM_POINTS_PASSED INT DEFAULT 0 NOT NULL, SUM_POINTS_BLOCKED INT DEFAULT 0 NOT NULL, SUM_POINTS_INCONCLUSIVE INT DEFAULT 0 NOT NULL, SUM_POINTS_ATTEMPTED INT DEFAULT 0 NOT NULL, SUM_POINTS_FAILED INT DEFAULT 0 NOT NULL, SUM_POINTS_PERMFAILED INT DEFAULT 0 NOT NULL, SUM_POINTS_DEFERRED INT DEFAULT 0 NOT NULL, SUM_POINTS_TOTAL INT DEFAULT 0 NOT NULL, TOTAL_CURRENT_EXECRES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5499. GO
  5500.  
  5501. CREATE TABLE RIDW.F_C_EXECRESPOINTS_ITER_METRICS ( EXECRES_METRIC_ID INT NOT NULL, EXECRES_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, TESTCASE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, VERDICT_ID INT NOT NULL, PROJECT_ID INT NOT NULL, SUM_POINTS_PASSED INT DEFAULT 0 NOT NULL, SUM_POINTS_BLOCKED INT DEFAULT 0 NOT NULL, SUM_POINTS_INCONCLUSIVE INT DEFAULT 0 NOT NULL, SUM_POINTS_ATTEMPTED INT DEFAULT 0 NOT NULL, SUM_POINTS_FAILED INT DEFAULT 0 NOT NULL, SUM_POINTS_PERMFAILED INT DEFAULT 0 NOT NULL, SUM_POINTS_DEFERRED INT DEFAULT 0 NOT NULL, SUM_POINTS_TOTAL INT DEFAULT 0 NOT NULL, TOTAL_CURRENT_EXECRES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5502. GO
  5503.  
  5504. CREATE TABLE RIDW.H_EXECRESPOINTS_ITER_METRICS ( EXECRES_METRIC_ID INT NOT NULL, EXECUTION_RESULT_ID INT NOT NULL ) ON VSTR_32K
  5505. GO
  5506.  
  5507. CREATE TABLE RIDW.F_ACTIVITY_METRICS( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, TOTAL_ACTIVITIES INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5508. GO
  5509.  
  5510. CREATE TABLE RIDW.F_C_ACTIVITY_METRICS( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, TOTAL_ACTIVITIES INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5511. GO
  5512.  
  5513. CREATE TABLE RIDW.H_ACTIVITY_METRICS ( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL) ON VSTR_32K
  5514. GO
  5515.  
  5516. CREATE TABLE RIDW.F_ACTIVITY_COMP_METRICS( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, TOTAL_ACTIVITIES INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5517. GO
  5518.  
  5519. CREATE TABLE RIDW.F_C_ACTIVITY_COMP_METRICS( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, TOTAL_ACTIVITIES INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5520. GO
  5521.  
  5522. CREATE TABLE RIDW.H_ACTIVITY_COMP_METRICS ( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL) ON VSTR_32K
  5523. GO
  5524.  
  5525. CREATE TABLE RIDW.F_ACTIVITY_ITER_METRICS( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TOTAL_ACTIVITIES INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5526. GO
  5527.  
  5528. CREATE TABLE RIDW.F_C_ACTIVITY_ITER_METRICS( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TOTAL_ACTIVITIES INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5529. GO
  5530.  
  5531. CREATE TABLE RIDW.H_ACTIVITY_ITER_METRICS ( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL) ON VSTR_32K
  5532. GO
  5533.  
  5534. CREATE TABLE RIDW.F_ACTIVITY_REQ_METRICS( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TOTAL_ACTIVITIES INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5535. GO
  5536.  
  5537. CREATE TABLE RIDW.F_C_ACTIVITY_REQ_METRICS( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TOTAL_ACTIVITIES INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5538. GO
  5539.  
  5540. CREATE TABLE RIDW.H_ACTIVITY_REQ_METRICS ( ACTIVITY_METRICS_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL) ON VSTR_32K
  5541. GO
  5542.  
  5543. CREATE TABLE RIDW.F_ACTIVITY_CREATION_DT_METRICS( ACTIVITYCRD_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, CREATION_DATE_ID INT , STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, TOTAL_ACTIVITIES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5544. GO
  5545.  
  5546. CREATE TABLE RIDW.H_ACTIVITY_CREATION_DT_METRICS ( ACTIVITYCRD_METRICS_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL) ON VSTR_32K
  5547. GO
  5548.  
  5549. CREATE TABLE RIDW.F_ACT_COM_CREATION_DT_METRICS( ACTIVITYCRD_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, CREATION_DATE_ID INT , STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, TOTAL_ACTIVITIES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5550. GO
  5551.  
  5552. CREATE TABLE RIDW.H_ACT_COM_CREATION_DT_METRICS ( ACTIVITYCRD_METRICS_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL) ON VSTR_32K
  5553. GO
  5554.  
  5555. CREATE TABLE RIDW.F_ACT_ITER_CREATION_DT_METRICS( ACTIVITYCRD_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, CREATION_DATE_ID INT , STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TOTAL_ACTIVITIES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5556. GO
  5557.  
  5558. CREATE TABLE RIDW.H_ACT_ITER_CREATION_DT_METRICS ( ACTIVITYCRD_METRICS_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL) ON VSTR_32K
  5559. GO
  5560.  
  5561. CREATE TABLE RIDW.F_ACT_REQU_CREATION_DT_METRICS( ACTIVITYCRD_METRICS_ID INT NOT NULL, ACTIVITY_CLASS_ID INT NOT NULL, CREATION_DATE_ID INT , STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, TOTAL_ACTIVITIES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5562. GO
  5563.  
  5564. CREATE TABLE RIDW.H_ACT_REQUI_CREAT_DT_METRICS ( ACTIVITYCRD_METRICS_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL) ON VSTR_32K
  5565. GO
  5566.  
  5567. CREATE TABLE RIDW.F_TASK_METRICS( TASK_METRICS_ID INT NOT NULL, TASK_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TASK_TYPE_ID INT NOT NULL, TOTAL_TASKS INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5568. GO
  5569.  
  5570. CREATE TABLE RIDW.F_C_TASK_METRICS( TASK_METRICS_ID INT NOT NULL, TASK_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TASK_TYPE_ID INT NOT NULL, TOTAL_TASKS INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5571. GO
  5572.  
  5573. CREATE TABLE RIDW.H_TASK_METRICS ( TASK_METRICS_ID INT NOT NULL, TASK_ID INT NOT NULL) ON VSTR_32K
  5574. GO
  5575.  
  5576. CREATE TABLE RIDW.F_TASK_COMP_METRICS( TASK_METRICS_ID INT NOT NULL, TASK_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TASK_TYPE_ID INT NOT NULL, TOTAL_TASKS INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5577. GO
  5578.  
  5579. CREATE TABLE RIDW.F_C_TASK_COMP_METRICS( TASK_METRICS_ID INT NOT NULL, TASK_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TASK_TYPE_ID INT NOT NULL, TOTAL_TASKS INT NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5580. GO
  5581.  
  5582. CREATE TABLE RIDW.H_TASK_COMP_METRICS ( TASK_METRICS_ID INT NOT NULL, TASK_ID INT NOT NULL) ON VSTR_32K
  5583. GO
  5584.  
  5585. CREATE TABLE RIDW.F_TASK_CREATION_DT_METRICS( TASKCRD_METRICS_ID INT NOT NULL, TASK_CLASS_ID INT NOT NULL, CREATION_DATE_ID INT , STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TASK_TYPE_ID INT NOT NULL, TOTAL_TASKS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5586. GO
  5587.  
  5588. CREATE TABLE RIDW.H_TASK_CREATION_DT_METRICS ( TASKCRD_METRICS_ID INT NOT NULL, TASK_ID INT NOT NULL) ON VSTR_32K
  5589. GO
  5590.  
  5591. CREATE TABLE RIDW.F_TASK_CREATE_COMP_DT_METRICS( TASKCRD_METRICS_ID INT NOT NULL, TASK_CLASS_ID INT NOT NULL, CREATION_DATE_ID INT , STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TASK_TYPE_ID INT NOT NULL, TOTAL_TASKS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5592. GO
  5593.  
  5594. CREATE TABLE RIDW.H_TASK_CREATE_COMP_DT_METRICS ( TASKCRD_METRICS_ID INT NOT NULL, TASK_ID INT NOT NULL) ON VSTR_32K
  5595. GO
  5596.  
  5597. CREATE TABLE RIDW.F_TASK_CLOSURE_DT_METRICS( TASKCLS_METRICS_ID INT NOT NULL, TASK_CLASS_ID INT NOT NULL, CLOSURE_DATE_ID INT , STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TASK_TYPE_ID INT NOT NULL, TOTAL_TASKS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5598. GO
  5599.  
  5600. CREATE TABLE RIDW.H_TASK_CLOSURE_DT_METRICS ( TASKCLS_METRICS_ID INT NOT NULL, TASK_ID INT NOT NULL) ON VSTR_32K
  5601. GO
  5602.  
  5603. CREATE TABLE RIDW.F_TASK_CLOSE_COMP_DT_METRICS( TASKCLS_METRICS_ID INT NOT NULL, TASK_CLASS_ID INT NOT NULL, CLOSURE_DATE_ID INT , STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TASK_TYPE_ID INT NOT NULL, TOTAL_TASKS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5604. GO
  5605.  
  5606. CREATE TABLE RIDW.H_TASK_CLOSE_COMP_DT_METRICS ( TASKCLS_METRICS_ID INT NOT NULL, TASK_ID INT NOT NULL) ON VSTR_32K
  5607. GO
  5608.  
  5609. CREATE TABLE RIDW.F_LAB_RESUTILIZATION_METRICS ( LAB_RESUTIL_ID INT NOT NULL, RESOURCE_GROUP_ID INT NOT NULL, OWNER_ID INT NOT NULL, OS_TYPE_ID INT NOT NULL, RESERVATION_DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_MACHINES INT DEFAULT 0 NOT NULL, TOTAL_RESERVED_MACHINES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5610. GO
  5611.  
  5612. CREATE TABLE RIDW.F_C_LAB_RESUTILIZATION_METRICS ( LAB_RESUTIL_ID INT NOT NULL, RESOURCE_GROUP_ID INT NOT NULL, OWNER_ID INT NOT NULL, OS_TYPE_ID INT NOT NULL, RESERVATION_DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_MACHINES INT DEFAULT 0 NOT NULL, TOTAL_RESERVED_MACHINES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5613. GO
  5614.  
  5615. CREATE TABLE RIDW.H_LAB_RESUTILIZATION_METRICS ( LAB_RESUTIL_ID INT NOT NULL, LAB_RESOURCE_ID INT NOT NULL ) ON VSTR_32K
  5616. GO
  5617.  
  5618. CREATE TABLE RIDW.F_TEXT_FILE_CHANGE_METRICS ( FTEXTCHNG_METRICS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TEAM_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, CHANGE_SET_ADDITION_COUNT BIGINT DEFAULT 0 NOT NULL, CHANGE_SET_DELETION_COUNT BIGINT DEFAULT 0 NOT NULL, FILE_ADDITION_COUNT BIGINT DEFAULT 0 NOT NULL, FILE_DELETION_COUNT BIGINT DEFAULT 0 NOT NULL, FILE_MODIFICATION_COUNT BIGINT DEFAULT 0 NOT NULL, FOLDER_ADDITION_COUNT BIGINT DEFAULT 0 NOT NULL, FOLDER_DELETION_COUNT BIGINT DEFAULT 0 NOT NULL, FOLDER_MODIFICATION_COUNT BIGINT DEFAULT 0 NOT NULL, SIZE_DECREASE BIGINT DEFAULT 0 NOT NULL, SIZE_INCREASE BIGINT DEFAULT 0 NOT NULL, FILE_CLASS_ID INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5619. GO
  5620.  
  5621. CREATE TABLE RIDW.F_C_TEXT_FILE_CHANGE_METRICS ( FTEXTCHNG_METRICS_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TEAM_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, CHANGE_SET_ADDITION_COUNT BIGINT DEFAULT 0 NOT NULL, CHANGE_SET_DELETION_COUNT BIGINT DEFAULT 0 NOT NULL, FILE_ADDITION_COUNT BIGINT DEFAULT 0 NOT NULL, FILE_DELETION_COUNT BIGINT DEFAULT 0 NOT NULL, FILE_MODIFICATION_COUNT BIGINT DEFAULT 0 NOT NULL, FOLDER_ADDITION_COUNT BIGINT DEFAULT 0 NOT NULL, FOLDER_DELETION_COUNT BIGINT DEFAULT 0 NOT NULL, FOLDER_MODIFICATION_COUNT BIGINT DEFAULT 0 NOT NULL, SIZE_DECREASE BIGINT DEFAULT 0 NOT NULL, SIZE_INCREASE BIGINT DEFAULT 0 NOT NULL, FILE_CLASS_ID INT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5622. GO
  5623.  
  5624. CREATE TABLE RIDW.H_TEXT_FILE_CHANGE_METRICS ( FTEXTCHNG_METRICS_ID INT NOT NULL, FILE_ID INT NOT NULL ) ON VSTR_32K
  5625. GO
  5626.  
  5627. CREATE TABLE RIDW.F_FILE_STREAM_METRICS ( FSTREAM_METRICS_ID INT NOT NULL, DATE_ID INT NOT NULL, FILE_STREAM_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TEAM_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, TOTALS_ITEM_COUNT BIGINT DEFAULT 0 NOT NULL, TOTALS_CONTENT_COMPRESSED_SUM BIGINT DEFAULT 0 NOT NULL, TOTALS_CONTENT_UNCOMPRESSE_SUM BIGINT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5628. GO
  5629.  
  5630. CREATE TABLE RIDW.F_C_FILE_STREAM_METRICS ( FSTREAM_METRICS_ID INT NOT NULL, DATE_ID INT NOT NULL, FILE_STREAM_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TEAM_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, TOTALS_ITEM_COUNT BIGINT DEFAULT 0 NOT NULL, TOTALS_CONTENT_COMPRESSED_SUM BIGINT DEFAULT 0 NOT NULL, TOTALS_CONTENT_UNCOMPRESSE_SUM BIGINT DEFAULT 0 NOT NULL, EXTERNAL_KEY1 INT DEFAULT -1 NOT NULL, SOURCE_ID NVARCHAR(36) DEFAULT '-1' NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5631. GO
  5632.  
  5633. CREATE TABLE RIDW.H_FILE_STREAM_METRICS ( FSTREAM_METRICS_ID INT NOT NULL, FILE_STREAM_ID INT NOT NULL ) ON VSTR_32K
  5634. GO
  5635.  
  5636. CREATE TABLE RIDW.F_REPORT_PLANNED_DATA ( TARGET DECIMAL(18,2), UPPER_LIMIT DECIMAL(18,2), LOWER_LIMIT DECIMAL(18,2), METRIC_LABEL NVARCHAR(255), DATE_ID INT , PROJECT_ID INT , COMPONENT_ID INT , CUSTOMER_PRIORITY_ID INT , PRIORITY_ID INT , PRODUCT_ID INT , RELEASE_ID INT , RESOLUTION_ID INT , SEVERITY_ID INT , STATE_ID INT , STATUS_ID INT , TEAM_ID INT , VERDICT_ID INT , ITERATION_ID INT ) ON VSTR_32K
  5637. GO
  5638.  
  5639. CREATE TABLE RIDW.F_JOB_EXECUTION_DT_METRICS ( F_JOBRES_METRIC_ID INT NOT NULL, OWNER_ID INT NOT NULL, JOB_ID INT NOT NULL, LAB_RESOURCE_ID INT NOT NULL, DATE_ID INT NOT NULL, VERDICT_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_JOB_RESULTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5640. GO
  5641.  
  5642. CREATE TABLE RIDW.H_JOB_EXECUTION_DT_METRICS ( F_JOBRES_METRIC_ID INT NOT NULL, JOB_RESULT_ID INT NOT NULL ) ON VSTR_32K
  5643. GO
  5644.  
  5645. CREATE TABLE RIDW.F_REQUEST_RESOLUTIO_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, STATUS_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, CUSTOMER_PRIORITY_ID INT NOT NULL, RESOLUTION_DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, TEAM_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL, STORY_POINTS INT DEFAULT 0 NOT NULL, TOTAL_COUNT INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5646. GO
  5647.  
  5648. CREATE TABLE RIDW.H_REQUEST_RESOLUTIO_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5649. GO
  5650.  
  5651. CREATE TABLE RIDW.F_REQUEST_RES_TPLN_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, STATUS_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, CUSTOMER_PRIORITY_ID INT NOT NULL, RESOLUTION_DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, TEAM_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL, STORY_POINTS INT DEFAULT 0 NOT NULL, TOTAL_COUNT INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5652. GO
  5653.  
  5654. CREATE TABLE RIDW.H_REQUEST_RES_TPLN_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5655. GO
  5656.  
  5657. CREATE TABLE RIDW.F_REQUEST_RES_REQUI_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, STATUS_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, CUSTOMER_PRIORITY_ID INT NOT NULL, RESOLUTION_DATE_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, TEAM_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CREATOR_ID INT NOT NULL, PLANNED_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL, STORY_POINTS INT DEFAULT 0 NOT NULL, TOTAL_COUNT INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5658. GO
  5659.  
  5660. CREATE TABLE RIDW.H_REQUEST_RES_REQUI_DT_METRICS ( REQDT_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5661. GO
  5662.  
  5663. CREATE TABLE RIDW.F_RELEASE_REQUEST_METRICS ( F_RELREQ_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PRODUCT_ID INT NOT NULL, STATE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, TOTAL_PRE_RELEASE_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_POST_RELEASE_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME ) ON VSTR_32K
  5664. GO
  5665.  
  5666. CREATE TABLE RIDW.F_C_RELEASE_REQUEST_METRICS ( F_RELREQ_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PRODUCT_ID INT NOT NULL, STATE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, TOTAL_PRE_RELEASE_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_POST_RELEASE_REQUESTS INT DEFAULT 0 NOT NULL, TOTAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME ) ON VSTR_32K
  5667. GO
  5668.  
  5669. CREATE TABLE RIDW.H_RELEASE_REQUEST_METRICS ( F_RELREQ_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5670. GO
  5671.  
  5672. CREATE TABLE RIDW.F_REL_REQUEST_TURN_METRICS ( F_RELREQ_TURN_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PRODUCT_ID INT NOT NULL, STATE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, PRE_TOTAL_DAYS INT DEFAULT 0 NOT NULL, PRE_MIN_DAYS INT DEFAULT 0 NOT NULL, PRE_MAX_DAYS INT DEFAULT 0 NOT NULL, PRE_TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, POST_TOTAL_DAYS INT DEFAULT 0 NOT NULL, POST_MIN_DAYS INT DEFAULT 0 NOT NULL, POST_MAX_DAYS INT DEFAULT 0 NOT NULL, POST_TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME ) ON VSTR_32K
  5673. GO
  5674.  
  5675. CREATE TABLE RIDW.F_C_REL_REQUEST_TURN_METRICS ( F_RELREQ_TURN_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PRODUCT_ID INT NOT NULL, STATE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, PRE_TOTAL_DAYS INT DEFAULT 0 NOT NULL, PRE_MIN_DAYS INT DEFAULT 0 NOT NULL, PRE_MAX_DAYS INT DEFAULT 0 NOT NULL, PRE_TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, POST_TOTAL_DAYS INT DEFAULT 0 NOT NULL, POST_MIN_DAYS INT DEFAULT 0 NOT NULL, POST_MAX_DAYS INT DEFAULT 0 NOT NULL, POST_TOTAL_REQUESTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME ) ON VSTR_32K
  5676. GO
  5677.  
  5678. CREATE TABLE RIDW.H_REL_REQUEST_TURN_METRICS ( F_RELREQ_TURN_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5679. GO
  5680.  
  5681. CREATE TABLE RIDW.F_TIME_TO_MARKET_RELEA_METRICS ( F_TIME_TO_MRKT_METRIC_ID INT NOT NULL, RELEASE_DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, PRODUCT_ID INT NOT NULL, TOTAL_DAYS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME ) ON VSTR_32K
  5682. GO
  5683.  
  5684. CREATE TABLE RIDW.H_TIME_TO_MARKET_REL_METRICS ( F_TIME_TO_MRKT_METRIC_ID INT NOT NULL, RELEASE_ID INT NOT NULL ) ON VSTR_32K
  5685. GO
  5686.  
  5687. CREATE TABLE RIDW.F_MISSING_TIMESHEET_METRICS ( TIMESHEET_METRICS_ID INT NOT NULL, WEEK_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, CHARGECODE_ID INT NOT NULL, POOL_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, TOTAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_TIMESHEETS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5688. GO
  5689.  
  5690. CREATE TABLE RIDW.H_MISSING_TIMESHEET_METRICS ( TIMESHEET_METRICS_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL ) ON VSTR_32K
  5691. GO
  5692.  
  5693. CREATE TABLE RIDW.F_TIMESHEET_METRICS ( TIMESHEET_METRICS_ID INT NOT NULL, DATE_ID INT NOT NULL, STATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, CHARGECODE_ID INT NOT NULL, POOL_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, TOTAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5694. GO
  5695.  
  5696. CREATE TABLE RIDW.H_TIMESHEET_METRICS ( TIMESHEET_METRICS_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL ) ON VSTR_32K
  5697. GO
  5698.  
  5699. CREATE TABLE RIDW.F_TIMESHEET_TIMECODE_METRICS ( TIMESHEET_METRICS_ID INT NOT NULL, DATE_ID INT NOT NULL, STATE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, CHARGECODE_ID INT NOT NULL, POOL_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, TIMECODE_ID INT NOT NULL, TOTAL_WORK INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5700. GO
  5701.  
  5702. CREATE TABLE RIDW.H_TIMESHEET_TIMECODE_METRICS ( TIMESHEET_METRICS_ID INT NOT NULL, ACTIVITY_ID INT NOT NULL ) ON VSTR_32K
  5703. GO
  5704.  
  5705. CREATE TABLE RIDW.F_WK_PROJ_RESDEMSUPP_METRICS( F_PROJDS_MET_ID INT NOT NULL, WEEK_ID INT NOT NULL, PROJECT_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, TOTAL_DEMAND INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5706. GO
  5707.  
  5708. CREATE TABLE RIDW.H_WK_PROJ_RESDEMSUPP_METRICS( F_PROJDS_MET_ID INT NOT NULL, PROJECT_ALLOCATION_ID INT NOT NULL ) ON VSTR_32K
  5709. GO
  5710.  
  5711. CREATE TABLE RIDW.F_MO_PROJ_RESDEMSUPP_METRICS( F_PROJDS_MET_ID INT NOT NULL, MONTH_ID INT NOT NULL, PROJECT_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, TOTAL_DEMAND INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5712. GO
  5713.  
  5714. CREATE TABLE RIDW.H_MO_PROJ_RESDEMSUPP_METRICS( F_PROJDS_MET_ID INT NOT NULL, PROJECT_ALLOCATION_ID INT NOT NULL ) ON VSTR_32K
  5715. GO
  5716.  
  5717. CREATE TABLE RIDW.F_WK_RESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, WEEK_ID INT NOT NULL, POOL_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, TOTAL_AVAILABILITY INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5718. GO
  5719.  
  5720. CREATE TABLE RIDW.H_WK_RESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, RESOURCE_ID INT NOT NULL ) ON VSTR_32K
  5721. GO
  5722.  
  5723. CREATE TABLE RIDW.F_MO_RESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, MONTH_ID INT NOT NULL, POOL_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, TOTAL_AVAILABILITY INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5724. GO
  5725.  
  5726. CREATE TABLE RIDW.H_MO_RESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, RESOURCE_ID INT NOT NULL ) ON VSTR_32K
  5727. GO
  5728.  
  5729. CREATE TABLE RIDW.F_WK_SCPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, WEEK_ID INT NOT NULL, PROJECT_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, SKILL_ID INT NOT NULL, COMPETENCY_ID INT NOT NULL, TOTAL_DEMAND INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5730. GO
  5731.  
  5732. CREATE TABLE RIDW.H_WK_SCPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, PROJECT_ALLOCATION_ID INT NOT NULL ) ON VSTR_32K
  5733. GO
  5734.  
  5735. CREATE TABLE RIDW.F_WK_SKPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, WEEK_ID INT NOT NULL, PROJECT_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, SKILL_ID INT NOT NULL, TOTAL_DEMAND INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5736. GO
  5737.  
  5738. CREATE TABLE RIDW.H_WK_SKPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, PROJECT_ALLOCATION_ID INT NOT NULL ) ON VSTR_32K
  5739. GO
  5740.  
  5741. CREATE TABLE RIDW.F_WK_COPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, WEEK_ID INT NOT NULL, PROJECT_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, COMPETENCY_ID INT NOT NULL, TOTAL_DEMAND INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5742. GO
  5743.  
  5744. CREATE TABLE RIDW.H_WK_COPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, PROJECT_ALLOCATION_ID INT NOT NULL ) ON VSTR_32K
  5745. GO
  5746.  
  5747. CREATE TABLE RIDW.F_MO_SCPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, MONTH_ID INT NOT NULL, PROJECT_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, SKILL_ID INT NOT NULL, COMPETENCY_ID INT NOT NULL, TOTAL_DEMAND INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5748. GO
  5749.  
  5750. CREATE TABLE RIDW.H_MO_SCPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, PROJECT_ALLOCATION_ID INT NOT NULL ) ON VSTR_32K
  5751. GO
  5752.  
  5753. CREATE TABLE RIDW.F_MO_SKPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, MONTH_ID INT NOT NULL, PROJECT_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, SKILL_ID INT NOT NULL, TOTAL_DEMAND INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5754. GO
  5755.  
  5756. CREATE TABLE RIDW.H_MO_SKPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, PROJECT_ALLOCATION_ID INT NOT NULL ) ON VSTR_32K
  5757. GO
  5758.  
  5759. CREATE TABLE RIDW.F_MO_COPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, MONTH_ID INT NOT NULL, PROJECT_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, COMPETENCY_ID INT NOT NULL, TOTAL_DEMAND INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5760. GO
  5761.  
  5762. CREATE TABLE RIDW.H_MO_COPROJ_RESDEMSUP_METRICS( F_PROJDS_MET_ID INT NOT NULL, PROJECT_ALLOCATION_ID INT NOT NULL ) ON VSTR_32K
  5763. GO
  5764.  
  5765. CREATE TABLE RIDW.F_WK_SCRESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, WEEK_ID INT NOT NULL, POOL_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, SKILL_ID INT NOT NULL, COMPETENCY_ID INT NOT NULL, TOTAL_AVAILABILITY INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5766. GO
  5767.  
  5768. CREATE TABLE RIDW.H_WK_SCRESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, RESOURCE_ID INT NOT NULL ) ON VSTR_32K
  5769. GO
  5770.  
  5771. CREATE TABLE RIDW.F_WK_SKRESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, WEEK_ID INT NOT NULL, POOL_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, SKILL_ID INT NOT NULL, TOTAL_AVAILABILITY INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5772. GO
  5773.  
  5774. CREATE TABLE RIDW.H_WK_SKRESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, RESOURCE_ID INT NOT NULL ) ON VSTR_32K
  5775. GO
  5776.  
  5777. CREATE TABLE RIDW.F_WK_CORESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, WEEK_ID INT NOT NULL, POOL_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, COMPETENCY_ID INT NOT NULL, TOTAL_AVAILABILITY INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5778. GO
  5779.  
  5780. CREATE TABLE RIDW.H_WK_CORESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, RESOURCE_ID INT NOT NULL ) ON VSTR_32K
  5781. GO
  5782.  
  5783. CREATE TABLE RIDW.F_MO_SCRESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, MONTH_ID INT NOT NULL, POOL_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, SKILL_ID INT NOT NULL, COMPETENCY_ID INT NOT NULL, TOTAL_AVAILABILITY INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5784. GO
  5785.  
  5786. CREATE TABLE RIDW.H_MO_SCRESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, RESOURCE_ID INT NOT NULL ) ON VSTR_32K
  5787. GO
  5788.  
  5789. CREATE TABLE RIDW.F_MO_SKRESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, MONTH_ID INT NOT NULL, POOL_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, SKILL_ID INT NOT NULL, TOTAL_AVAILABILITY INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5790. GO
  5791.  
  5792. CREATE TABLE RIDW.H_MO_SKRESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, RESOURCE_ID INT NOT NULL ) ON VSTR_32K
  5793. GO
  5794.  
  5795. CREATE TABLE RIDW.F_MO_CORESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, MONTH_ID INT NOT NULL, POOL_ID INT NOT NULL, CITY_ID INT NOT NULL, ORGANIZATION_ID INT NOT NULL, COMPETENCY_ID INT NOT NULL, TOTAL_AVAILABILITY INT DEFAULT 0 NOT NULL, TOTAL_ALLOCATION INT DEFAULT 0 NOT NULL, TOTAL_ASSIGNED INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5796. GO
  5797.  
  5798. CREATE TABLE RIDW.H_MO_CORESOURCE_UTIL_METRICS( F_RESUTIL_MET_ID INT NOT NULL, RESOURCE_ID INT NOT NULL ) ON VSTR_32K
  5799. GO
  5800.  
  5801. CREATE TABLE RIDW.F_RISK_METRICS( F_RISKMET_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, OWNER_ID INT NOT NULL, RELEASE_ID INT NOT NULL, IMPACT_RANK_ID INT NOT NULL, PROBABILITY_RANK_ID INT NOT NULL, PROBABILITY_COST_RANK_ID INT NOT NULL, SCORE_RANK_ID INT NOT NULL, TOTAL_RISKS INT DEFAULT 0 NOT NULL , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5802. GO
  5803.  
  5804. CREATE TABLE RIDW.H_RISK_METRICS( F_RISKMET_ID INT NOT NULL, RISK_ID INT NOT NULL ) ON VSTR_32K
  5805. GO
  5806.  
  5807. CREATE TABLE RIDW.F_C_RISK_METRICS( F_RISKMET_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, STATE_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, OWNER_ID INT NOT NULL, RELEASE_ID INT NOT NULL, IMPACT_RANK_ID INT NOT NULL, PROBABILITY_RANK_ID INT NOT NULL, PROBABILITY_COST_RANK_ID INT NOT NULL, SCORE_RANK_ID INT NOT NULL, TOTAL_RISKS INT DEFAULT 0 NOT NULL , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5808. GO
  5809.  
  5810. CREATE TABLE RIDW.F_TASK_ITER_VARIANCE_METRICS ( F_TASKVAR_MET_ID INT NOT NULL, DATE_ID INT NOT NULL, BASELINE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, PROJECT_ID INT NOT NULL, ACTUAL_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, PLANNED_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, PLANNED_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, BASELINE_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_ACTUAL_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_PLANNED_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_BASELINE_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, ACTUAL_WORK_VARIANCE INT DEFAULT 0 NOT NULL, PLANNED_WORK_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_WORK_VARIANCE INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_PLANNED_WORK INT DEFAULT 0 NOT NULL, TOTAL_BASELINE_WORK INT DEFAULT 0 NOT NULL, BASELINE_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL,
  5811. PLANNED_DURATION INT DEFAULT 0 NOT NULL, TOTAL_TASKS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5812. GO
  5813.  
  5814. CREATE TABLE RIDW.H_TASK_ITER_VARIANCE_METRICS ( F_TASKVAR_MET_ID INT NOT NULL, TASK_ID INT NOT NULL ) ON VSTR_32K
  5815. GO
  5816.  
  5817. CREATE TABLE RIDW.F_C_TASK_ITE_VARIANCE_METRICS ( F_TASKVAR_MET_ID INT NOT NULL, DATE_ID INT NOT NULL, BASELINE_ID INT NOT NULL, ITERATION_ID INT NOT NULL, PROJECT_ID INT NOT NULL, ACTUAL_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, PLANNED_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, PLANNED_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, BASELINE_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_ACTUAL_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_PLANNED_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_BASELINE_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, ACTUAL_WORK_VARIANCE INT DEFAULT 0 NOT NULL, PLANNED_WORK_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_WORK_VARIANCE INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_PLANNED_WORK INT DEFAULT 0 NOT NULL, TOTAL_BASELINE_WORK INT DEFAULT 0 NOT NULL, BASELINE_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL,
  5818. PLANNED_DURATION INT DEFAULT 0 NOT NULL, TOTAL_TASKS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5819. GO
  5820.  
  5821. CREATE TABLE RIDW.F_TASK_PROJ_VARIANCE_METRICS ( F_TASKVAR_MET_ID INT NOT NULL, DATE_ID INT NOT NULL, BASELINE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, ACTUAL_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, PLANNED_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, PLANNED_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, BASELINE_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_ACTUAL_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_PLANNED_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_BASELINE_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, ACTUAL_WORK_VARIANCE INT DEFAULT 0 NOT NULL, PLANNED_WORK_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_WORK_VARIANCE INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_PLANNED_WORK INT DEFAULT 0 NOT NULL, TOTAL_BASELINE_WORK INT DEFAULT 0 NOT NULL, BASELINE_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL, PLANNED_DURATION INT DEFAULT
  5822. 0 NOT NULL, TOTAL_TASKS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5823. GO
  5824.  
  5825. CREATE TABLE RIDW.H_TASK_PROJ_VARIANCE_METRICS ( F_TASKVAR_MET_ID INT NOT NULL, TASK_ID INT NOT NULL ) ON VSTR_32K
  5826. GO
  5827.  
  5828. CREATE TABLE RIDW.F_C_TASK_PRO_VARIANCE_METRICS ( F_TASKVAR_MET_ID INT NOT NULL, DATE_ID INT NOT NULL, BASELINE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, ACTUAL_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, PLANNED_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_FINISH_VARIANCE INT DEFAULT 0 NOT NULL, ACTUAL_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, PLANNED_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, BASELINE_COST_VARIANCE DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_ACTUAL_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_PLANNED_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_BASELINE_COST DECIMAL(18,2) DEFAULT 0.00 NOT NULL, ACTUAL_WORK_VARIANCE INT DEFAULT 0 NOT NULL, PLANNED_WORK_VARIANCE INT DEFAULT 0 NOT NULL, BASELINE_WORK_VARIANCE INT DEFAULT 0 NOT NULL, TOTAL_ACTUAL_WORK INT DEFAULT 0 NOT NULL, TOTAL_PLANNED_WORK INT DEFAULT 0 NOT NULL, TOTAL_BASELINE_WORK INT DEFAULT 0 NOT NULL, BASELINE_DURATION INT DEFAULT 0 NOT NULL, ACTUAL_DURATION INT DEFAULT 0 NOT NULL, PLANNED_DURATION INT DEFAULT
  5829. 0 NOT NULL, TOTAL_TASKS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5830. GO
  5831.  
  5832. CREATE TABLE RIDW.F_STORY_METRICS ( F_STORY_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TEAM_ID INT NOT NULL, OWNER_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, STATE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, TOTAL_STORY_POINTS DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_COMMENTS INT DEFAULT 0 NOT NULL, TOTAL_SUBSCRIBERS INT DEFAULT 0 NOT NULL, TOTAL_TAGS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5833. GO
  5834.  
  5835. CREATE TABLE RIDW.F_C_STORY_METRICS ( F_STORY_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TEAM_ID INT NOT NULL, OWNER_ID INT NOT NULL, REQUEST_CLASS_ID INT NOT NULL, REQUEST_TYPE_ID INT NOT NULL, REQUEST_CATEGORY_ID INT NOT NULL, STATE_ID INT NOT NULL, SEVERITY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, TOTAL_STORY_POINTS DECIMAL(18,2) DEFAULT 0.00 NOT NULL, TOTAL_COMMENTS INT DEFAULT 0 NOT NULL, TOTAL_SUBSCRIBERS INT DEFAULT 0 NOT NULL, TOTAL_TAGS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5836. GO
  5837.  
  5838. CREATE TABLE RIDW.H_STORY_METRICS ( F_STORY_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5839. GO
  5840.  
  5841. CREATE TABLE RIDW.F_REQUEST_FAILURE_DT_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, FAIL_DATE_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_RE_FAILED INT , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5842. GO
  5843.  
  5844. CREATE TABLE RIDW.H_REQUEST_FAILURE_DT_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5845. GO
  5846.  
  5847. CREATE TABLE RIDW.F_REQUEST_TPLN_FAILDT_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, FAIL_DATE_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_RE_FAILED INT , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5848. GO
  5849.  
  5850. CREATE TABLE RIDW.H_REQUEST_TPLN_FAILDT_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5851. GO
  5852.  
  5853. CREATE TABLE RIDW.F_REQUEST_REQUI_FAILDT_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, RELEASE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, CREATOR_ID INT NOT NULL, TOTAL_RE_FAILED INT , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5854. GO
  5855.  
  5856. CREATE TABLE RIDW.H_REQUEST_REQUI_FAILDT_METRICS ( REQFAIL_METRIC_ID INT NOT NULL, REQUEST_ID INT NOT NULL ) ON VSTR_32K
  5857. GO
  5858.  
  5859. CREATE TABLE RIDW.F_REQUIR_MODIF_DT_METRICS ( REQ_METRIC_ID INT NOT NULL, MODIFICATION_DATE_ID INT NOT NULL, REQUIREMENT_CLASS_ID INT NOT NULL, PROJECT_ID INT NOT NULL, COMPONENT_ID INT NOT NULL, ITERATION_ID INT NOT NULL, RELEASE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, STATE_ID INT NOT NULL, STATUS_ID INT NOT NULL, STABILITY_ID INT NOT NULL, DIFFICULTY_ID INT NOT NULL, PRIORITY_ID INT NOT NULL, REQUIREMENT_TYPE_ID INT NOT NULL, TOTAL_REQUIREMENTS INT DEFAULT 0 NOT NULL, TOTAL_REQUIREMENT_CHANGES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5860. GO
  5861.  
  5862. CREATE TABLE RIDW.H_REQUIR_MODIF_DT_METRICS ( REQ_METRIC_ID INT NOT NULL, REQUIREMENT_ID INT NOT NULL ) ON VSTR_32K
  5863. GO
  5864.  
  5865. CREATE TABLE RIDW.F_PROJECT_FINANCIAL_METRICS( F_PROJFIN_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, BUDGETED_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BUDGETED_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, NET_PRESENT_VALUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, INTERNAL_RATE_OF_RETURN DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5866. GO
  5867.  
  5868. CREATE TABLE RIDW.F_C_PROJECT_FINANCIAL_METRICS( F_PROJFIN_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, BUDGETED_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BUDGETED_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, NET_PRESENT_VALUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, INTERNAL_RATE_OF_RETURN DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5869. GO
  5870.  
  5871. CREATE TABLE RIDW.H_PROJECT_FINANCIAL_METRICS( F_PROJFIN_METRIC_ID INT NOT NULL, PROJECT_ID INT NOT NULL ) ON VSTR_32K
  5872. GO
  5873.  
  5874. CREATE TABLE RIDW.F_TP_PROJECT_FINANCIAL_METRICS( F_TPPROJFIN_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, BUDGETED_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_REVENUE DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, BUDGETED_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, PLANNED_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, ACTUAL_COST DECIMAL(18 , 2) DEFAULT 0.00 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5875. GO
  5876.  
  5877. CREATE TABLE RIDW.H_TP_PROJECT_FINANCIAL_METRICS( F_TPPROJFIN_METRIC_ID INT NOT NULL, PROJECT_ID INT NOT NULL ) ON VSTR_32K
  5878. GO
  5879.  
  5880. CREATE TABLE RIDW.F_ASSET_UTIL_DT_METRICS( F_ASSET_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, ACTION_TYPE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, ASSET_ID INT NOT NULL, ASSET_TYPE_ID INT NOT NULL, TOTAL_UTILIZATION INT DEFAULT 0 NOT NULL , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5881. GO
  5882.  
  5883. CREATE TABLE RIDW.F_LICENSE_DT_METRICS( F_LICENSE_METRIC_ID INT NOT NULL, DATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, ACTION_TYPE_ID INT NOT NULL, RESOURCE_ID INT NOT NULL, TOTAL_LICENSES INT DEFAULT 0 NOT NULL , REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5884. GO
  5885.  
  5886. CREATE TABLE RIDW.F_SC_BALLOT_TAB_RESULT_METRICS ( BALLOT_TAB_RESULT_METRICS_ID INT DEFAULT -1 NOT NULL, DATE_ID INT DEFAULT -1 NOT NULL, TEAM_ID INT DEFAULT -1 NOT NULL, BALLOT_TAB_ID INT DEFAULT -1 NOT NULL, AGG_STDEV_AVG DECIMAL (18,2) DEFAULT 0.00 NOT NULL, AGG_AVERAGE_AVG DECIMAL (18,2) DEFAULT 0.00 NOT NULL, TOTAL_RESULTS INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5887. GO
  5888.  
  5889. CREATE TABLE RIDW.F_PROJ_TESTCASE_TPLN_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_TESTCASES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5890. GO
  5891.  
  5892. CREATE TABLE RIDW.F_C_PROJ_TESTCASE_TPLN_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, TESTPLAN_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_TESTCASES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5893. GO
  5894.  
  5895. CREATE TABLE RIDW.H_PROJ_TESTCASE_TPLN_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_ID INT NOT NULL ) ON VSTR_32K
  5896. GO
  5897.  
  5898. CREATE TABLE RIDW.F_PROJ_TESTCASE_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_TESTCASES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5899. GO
  5900.  
  5901. CREATE TABLE RIDW.F_C_PROJ_TESTCASE_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_CLASS_ID INT NOT NULL, DATE_ID INT NOT NULL, STATE_ID INT NOT NULL, PROJECT_ID INT NOT NULL, TOTAL_TESTCASES INT DEFAULT 0 NOT NULL, REC_DATETIME DATETIME DEFAULT GETDATE() NOT NULL ) ON VSTR_32K
  5902. GO
  5903.  
  5904. CREATE TABLE RIDW.H_PROJ_TESTCASE_METRICS ( TSTCASE_METRIC_ID INT NOT NULL, TESTCASE_ID INT NOT NULL ) ON VSTR_32K
  5905. GO
  5906.  
  5907. CREATE INDEX DT_DOMIDX ON RIDW.D_DATE (DAY_OF_MONTH ASC) ON VSTR_IDX
  5908. GO
  5909.  
  5910. CREATE INDEX DT_DOWIDX ON RIDW.D_DATE (DAY_OF_WEEK ASC) ON VSTR_IDX
  5911. GO
  5912.  
  5913. CREATE INDEX DT_PSDIDX ON RIDW.D_DATE (PERIOD_START_DATE ASC) ON VSTR_IDX
  5914. GO
  5915.  
  5916. CREATE INDEX DT_MOYDOMIDX ON RIDW.D_DATE (MONTH_OF_YEAR ASC, DAY_OF_MONTH ASC) ON VSTR_IDX
  5917. GO
  5918.  
  5919. CREATE INDEX DT_PSDWIDX ON RIDW.D_DATE(PERIOD_START_DATE, WEEK_NO) ON VSTR_IDX
  5920. GO
  5921.  
  5922. CREATE INDEX DT_PSDMIDX ON RIDW.D_DATE(PERIOD_START_DATE, MONTH_NO) ON VSTR_IDX
  5923. GO
  5924.  
  5925. CREATE INDEX DT_PSDDIDX ON RIDW.D_DATE(PERIOD_START_DATE, DATE_ID DESC) ON VSTR_IDX
  5926. GO
  5927.  
  5928. CREATE INDEX F_REQ_METR_IDX1 ON RIDW.F_REQUEST_METRICS (DATE_ID,TEAM_ID ,SEVERITY_ID ,STATE_ID ,STATUS_ID ,PRIORITY_ID ,PLATFORM_ID ,REQUEST_CLASS_ID ,PROJECT_ID ,COMPONENT_ID ,RESOURCE_ID ,ITERATION_ID ,RELEASE_ID) ON VSTR_IDX
  5929. GO
  5930.  
  5931. CREATE INDEX F_REQUI_METR_IDX1 ON RIDW.F_REQUIREMENT_METRICS (DATE_ID) ON VSTR_IDX
  5932. GO
  5933.  
  5934. CREATE INDEX F_ACT_METR_IDX1 ON RIDW.F_ACTIVITY_METRICS (DATE_ID ,ACTIVITY_CLASS_ID ,RESOURCE_ID,STATE_ID ,PRIORITY_ID) ON VSTR_IDX
  5935. GO
  5936.  
  5937. CREATE INDEX F_CHREQ_METR_IDX1 ON RIDW.F_CHILDREQUIREMENT_METRICS (DATE_ID ,PARENT_REQUIREMENT_ID ,REQUIREMENT_CLASS_ID ,PROJECT_ID ,RELEASE_ID ,ITERATION_ID ,COMPONENT_ID) ON VSTR_IDX
  5938. GO
  5939.  
  5940. CREATE INDEX F_REQAG_METR_IDX1 ON RIDW.F_REQUEST_AGING (DATE_ID ,REQUEST_CLASS_ID ,PROJECT_ID ,COMPONENT_ID ,RESOURCE_ID ,ITERATION_ID) ON VSTR_IDX
  5941. GO
  5942.  
  5943. CREATE INDEX F_REQ_METR_IDX2 ON RIDW.F_REQUEST_METRICS (DATE_ID ,TEAM_ID ,SEVERITY_ID ,STATE_ID ,STATUS_ID ,PRIORITY_ID ,PLATFORM_ID ,COMPONENT_ID) ON VSTR_IDX
  5944. GO
  5945.  
  5946. CREATE INDEX F_BLDMETR_IDX ON RIDW.F_BUILD_METRICS (DATE_ID, PROJECT_ID, COMPONENT_ID, BUILD_TYPE_ID, BUILD_CLASS_ID) ON VSTR_IDX
  5947. GO
  5948.  
  5949. CREATE INDEX F_TXTF_CHGMET_IDX ON RIDW.F_TEXT_FILE_CHANGE_METRICS (EXTERNAL_KEY1,SOURCE_ID) ON VSTR_IDX
  5950. GO
  5951.  
  5952. CREATE INDEX F_FSTREAMMET_IDX ON RIDW.F_FILE_STREAM_METRICS (EXTERNAL_KEY1,SOURCE_ID) ON VSTR_IDX
  5953. GO
  5954.  
  5955. CREATE INDEX F_REQ_METR_IDX3 ON RIDW.F_REQUEST_METRICS (EXTERNAL_KEY1,SOURCE_ID) ON VSTR_IDX
  5956. GO
  5957.  
  5958. CREATE INDEX F_ERI_MET_IDX1 ON RIDW.F_EXECUTION_RES_ITER_METRICS (ITERATION_ID ASC,TESTPLAN_ID ASC,VERDICT_ID ASC,DATE_ID ASC,PROJECT_ID ASC,EXECRES_CLASS_ID ASC,ASSETREGISTRY_ID ASC,TESTCASE_ID ASC,EXERES_METRICS_ID ASC) ON VSTR_IDX
  5959. GO
  5960.  
  5961. CREATE INDEX F_EXERES_IDX1 ON RIDW.F_EXECUTION_RESULT_METRICS (DATE_ID ASC,ASSETREGISTRY_ID ASC,VERDICT_ID ASC,EXERES_METRICS_ID ASC,PROJECT_ID ASC,TESTPLAN_ID ASC,TESTCASE_ID ASC,EXECRES_CLASS_ID ASC) ON VSTR_IDX
  5962. GO
  5963.  
  5964. CREATE INDEX F_REQU_METRIC_IDXDT ON RIDW.F_REQUEST_METRICS (DATE_ID)
  5965. GO
  5966.  
  5967. CREATE INDEX F_DEF_AG_IDXDT ON RIDW.F_REQUEST_AGING (DATE_ID)
  5968. GO
  5969.  
  5970. CREATE INDEX F_EXERES_IDXDT ON RIDW.F_EXECUTION_RESULT_METRICS (DATE_ID)
  5971. GO
  5972.  
  5973. CREATE INDEX F_REQFL_IDXDT ON RIDW.F_REQUEST_FAILURE_METRICS (DATE_ID)
  5974. GO
  5975.  
  5976. CREATE INDEX F_EXECWK_IDXDT ON RIDW.F_EXECUTION_WORKITEM_METRICS (DATE_ID)
  5977. GO
  5978.  
  5979. CREATE INDEX F_TSTCASE_IDXDT ON RIDW.F_TESTCASE_METRICS (DATE_ID)
  5980. GO
  5981.  
  5982. CREATE INDEX F_PTSTCASEPLN_IDXDT ON RIDW.F_PROJ_TESTCASE_TPLN_METRICS (DATE_ID)
  5983. GO
  5984.  
  5985. CREATE INDEX F_PTSTCASE_IDXDT ON RIDW.F_PROJ_TESTCASE_METRICS (DATE_ID)
  5986. GO
  5987.  
  5988. CREATE INDEX F_BUILD_IDXDT ON RIDW.F_BUILD_METRICS (DATE_ID)
  5989. GO
  5990.  
  5991. CREATE INDEX F_TFV_MET_IDXDT ON RIDW.F_TEXT_FILE_VERSION_METRICS (DATE_ID)
  5992. GO
  5993.  
  5994. CREATE INDEX F_CHREQM_IDXDT ON RIDW.F_CHILDREQUIREMENT_METRICS (DATE_ID)
  5995. GO
  5996.  
  5997. CREATE INDEX F_PPM_IDXDT ON RIDW.F_PROJECT_PERFORMANCE_METRICS (DATE_ID)
  5998. GO
  5999.  
  6000. CREATE INDEX F_ACTM_IDXDT ON RIDW.F_ACTIVITY_METRICS (DATE_ID)
  6001. GO
  6002.  
  6003. CREATE INDEX F_EXECPTS_IDXDT ON RIDW.F_EXECRESPOINTS_METRICS (DATE_ID)
  6004. GO
  6005.  
  6006. CREATE INDEX F_REQTURN_IDXDT ON RIDW.F_REQUEST_TURNAROUND (DATE_ID)
  6007. GO
  6008.  
  6009. CREATE INDEX F_TSKMET_IDXDT ON RIDW.F_TASK_METRICS (DATE_ID)
  6010. GO
  6011.  
  6012. CREATE INDEX F_RELREQ_IDXDT ON RIDW.F_RELEASE_REQUEST_METRICS (DATE_ID)
  6013. GO
  6014.  
  6015. CREATE INDEX F_RELREQTU_IDXDT ON RIDW.F_REL_REQUEST_TURN_METRICS (DATE_ID)
  6016. GO
  6017.  
  6018. CREATE INDEX F_ACTITER_MET_IDXDT ON RIDW.F_ACTIVITY_ITER_METRICS (DATE_ID)
  6019. GO
  6020.  
  6021. CREATE INDEX F_ACTREQ_MET_IDXDT ON RIDW.F_ACTIVITY_REQ_METRICS (DATE_ID)
  6022. GO
  6023.  
  6024. CREATE INDEX F_BLDREQUI_MET_IDXDT ON RIDW.F_BUILD_REQUI_METRICS (DATE_ID)
  6025. GO
  6026.  
  6027. CREATE INDEX F_BLDREQU_MET_IDXDT ON RIDW.F_BUILD_REQU_METRICS (DATE_ID)
  6028. GO
  6029.  
  6030. CREATE INDEX F_EXPI_MET_IDXDT ON RIDW.F_EXECRESPOINTS_ITER_METRICS (DATE_ID)
  6031. GO
  6032.  
  6033. CREATE INDEX F_ERI_MET_IDXDT ON RIDW.F_EXECUTION_RES_ITER_METRICS (DATE_ID)
  6034. GO
  6035.  
  6036. CREATE INDEX F_EWI_MET_IDXDT ON RIDW.F_EXEC_WORKITEM_ITER_METRICS (DATE_ID)
  6037. GO
  6038.  
  6039. CREATE INDEX F_EWR_MET_IDXDT ON RIDW.F_EXEC_WORKITEM_REQU_METRICS (DATE_ID)
  6040. GO
  6041.  
  6042. CREATE INDEX F_REQCUST_MET_IDXDT ON RIDW.F_REQUEST_CUST_METRICS (DATE_ID)
  6043. GO
  6044.  
  6045. CREATE INDEX F_RQRUF_MET_IDXDT ON RIDW.F_REQUEST_REQUI_FAIL_METRICS (DATE_ID)
  6046. GO
  6047.  
  6048. CREATE INDEX F_REQREQUI_MET_IDXDT ON RIDW.F_REQUEST_REQUI_METRICS (DATE_ID)
  6049. GO
  6050.  
  6051. CREATE INDEX F_REQTPLN_AG_IDXDT ON RIDW.F_REQUEST_TPLN_AGING (DATE_ID)
  6052. GO
  6053.  
  6054. CREATE INDEX F_RPLF_MET_IDXDT ON RIDW.F_REQUEST_TPLN_FAIL_METRICS (DATE_ID)
  6055. GO
  6056.  
  6057. CREATE INDEX F_REQTPLN_MET_IDXDT ON RIDW.F_REQUEST_TPLN_METRICS (DATE_ID)
  6058. GO
  6059.  
  6060. CREATE INDEX F_RQTPT_IDXDT ON RIDW.F_REQUEST_TPLN_TURNAROUND (DATE_ID)
  6061. GO
  6062.  
  6063. CREATE INDEX F_REQUITPLN_MET_IDXDT ON RIDW.F_REQUIREMENT_TPLN_METRICS (DATE_ID)
  6064. GO
  6065.  
  6066. CREATE INDEX F_RTC_MET_IDXDT ON RIDW.F_REQUI_TCASE_METRICS (DATE_ID)
  6067. GO
  6068.  
  6069. CREATE INDEX F_TASK_COMP_MET_IDXDT ON RIDW.F_TASK_COMP_METRICS (DATE_ID)
  6070. GO
  6071.  
  6072. CREATE INDEX F_TESTITER_MET_IDXDT ON RIDW.F_TESTCASE_ITER_METRICS (DATE_ID)
  6073. GO
  6074.  
  6075. CREATE INDEX F_TPJR_MET_IDXDT ON RIDW.F_TESTCASE_REQUI_METRICS (DATE_ID)
  6076. GO
  6077.  
  6078. CREATE INDEX F_TXFVR_MET_IDXDT ON RIDW.F_TEXT_FILE_VER_REQU_METRICS (DATE_ID)
  6079. GO
  6080.  
  6081. CREATE INDEX F_ACTCMPM_IDXDT ON RIDW.F_ACTIVITY_COMP_METRICS (DATE_ID)
  6082. GO
  6083.  
  6084. CREATE INDEX F_TFVBSLN_MET_IDXDT ON RIDW.F_TEXT_FILE_VER_BSLN_METRICS (DATE_ID)
  6085. GO
  6086.  
  6087. CREATE INDEX F_RISKMET_IDXDT ON RIDW.F_RISK_METRICS (DATE_ID)
  6088. GO
  6089.  
  6090. CREATE INDEX FTSKITVARMET_IDXDT ON RIDW.F_TASK_ITER_VARIANCE_METRICS (DATE_ID)
  6091. GO
  6092.  
  6093. CREATE INDEX FTSKPRJVARMET_IDXDT ON RIDW.F_TASK_PROJ_VARIANCE_METRICS (DATE_ID)
  6094. GO
  6095.  
  6096. CREATE INDEX F_STORY_METRIC_IDXDT ON RIDW.F_STORY_METRICS (DATE_ID)
  6097. GO
  6098.  
  6099. CREATE INDEX F_PRJFINMET_IDXDT ON RIDW.F_PROJECT_FINANCIAL_METRICS (DATE_ID)
  6100. GO
  6101.  
  6102. ALTER TABLE RIDW.D_DATE ADD CONSTRAINT D_DATE_PK PRIMARY KEY (DATE_ID) ON VSTR_IDX
  6103. GO
  6104.  
  6105. ALTER TABLE RIDW.D_CURRENCY ADD CONSTRAINT D_CURRENCY_PK PRIMARY KEY (CURRENCY_ID) ON VSTR_IDX
  6106. GO
  6107.  
  6108. ALTER TABLE RIDW.D_BUILD ADD CONSTRAINT D_BUILD_PK PRIMARY KEY (BUILD_ID) ON VSTR_IDX
  6109. GO
  6110.  
  6111. ALTER TABLE RIDW.D_REQUEST_STATE ADD CONSTRAINT D_REQSTATE_PK PRIMARY KEY (STATE_ID) ON VSTR_IDX
  6112. GO
  6113.  
  6114. ALTER TABLE RIDW.D_REQUIREMENT_STATE ADD CONSTRAINT D_REQISTATE_PK PRIMARY KEY (STATE_ID) ON VSTR_IDX
  6115. GO
  6116.  
  6117. ALTER TABLE RIDW.D_RESOURCE ADD CONSTRAINT D_RESOURCE_PK PRIMARY KEY (RESOURCE_ID) ON VSTR_IDX
  6118. GO
  6119.  
  6120. ALTER TABLE RIDW.D_PRIORITY ADD CONSTRAINT D_PRIORITY_PK PRIMARY KEY (PRIORITY_ID) ON VSTR_IDX
  6121. GO
  6122.  
  6123. ALTER TABLE RIDW.D_STABILITY ADD CONSTRAINT D_STABILITY_PK PRIMARY KEY (STABILITY_ID) ON VSTR_IDX
  6124. GO
  6125.  
  6126. ALTER TABLE RIDW.D_DIFFICULTY ADD CONSTRAINT D_DIFFICULTY_PK PRIMARY KEY (DIFFICULTY_ID) ON VSTR_IDX
  6127. GO
  6128.  
  6129. ALTER TABLE RIDW.D_CUSTOMER_PRIORITY ADD CONSTRAINT D_CPRIORITY_PK PRIMARY KEY (CUSTOMER_PRIORITY_ID) ON VSTR_IDX
  6130. GO
  6131.  
  6132. ALTER TABLE RIDW.D_ITERATION ADD CONSTRAINT D_ITERATION_PK PRIMARY KEY (ITERATION_ID) ON VSTR_IDX
  6133. GO
  6134.  
  6135. ALTER TABLE RIDW.D_TEAM ADD CONSTRAINT D_CMPTEAM_PK PRIMARY KEY (TEAM_ID) ON VSTR_IDX
  6136. GO
  6137.  
  6138. ALTER TABLE RIDW.D_RELEASE ADD CONSTRAINT D_RELEASE_PK PRIMARY KEY (RELEASE_ID) ON VSTR_IDX
  6139. GO
  6140.  
  6141. ALTER TABLE RIDW.D_PLATFORM ADD CONSTRAINT D_PLATFORM_PK PRIMARY KEY (PLATFORM_ID) ON VSTR_IDX
  6142. GO
  6143.  
  6144. ALTER TABLE RIDW.D_SEVERITY ADD CONSTRAINT D_SEVERITY_PK PRIMARY KEY (SEVERITY_ID) ON VSTR_IDX
  6145. GO
  6146.  
  6147. ALTER TABLE RIDW.D_STATUS ADD CONSTRAINT D_STATUS_PK PRIMARY KEY (STATUS_ID) ON VSTR_IDX
  6148. GO
  6149.  
  6150. ALTER TABLE RIDW.D_PROGRAM ADD CONSTRAINT PROGRAM_PK PRIMARY KEY (PROGRAM_ID) ON VSTR_IDX
  6151. GO
  6152.  
  6153. ALTER TABLE RIDW.D_PROJECT ADD CONSTRAINT PROJECT_PK PRIMARY KEY (PROJECT_ID) ON VSTR_IDX
  6154. GO
  6155.  
  6156. ALTER TABLE RIDW.D_CUSTOMER ADD CONSTRAINT D_CUSTOMER_PK PRIMARY KEY (CUSTOMER_ID) ON VSTR_IDX
  6157. GO
  6158.  
  6159. ALTER TABLE RIDW.D_PRODUCT ADD CONSTRAINT D_PRODUCT_PK PRIMARY KEY (PRODUCT_ID) ON VSTR_IDX
  6160. GO
  6161.  
  6162. ALTER TABLE RIDW.D_COMPONENT ADD CONSTRAINT D_COMPONENT_PK PRIMARY KEY (COMPONENT_ID) ON VSTR_IDX
  6163. GO
  6164.  
  6165. ALTER TABLE RIDW.D_REQUEST_CLASSIFICATION ADD CONSTRAINT D_REQ_CL_PK PRIMARY KEY (REQUEST_CLASS_ID) ON VSTR_IDX
  6166. GO
  6167.  
  6168. ALTER TABLE RIDW.D_REQUIREMENT_CLASSIFICATION ADD CONSTRAINT D_REQUI_CL_PK PRIMARY KEY (REQUIREMENT_CLASS_ID) ON VSTR_IDX
  6169. GO
  6170.  
  6171. ALTER TABLE RIDW.D_TASK_CLASSIFICATION ADD CONSTRAINT TSK_CLASS_PK PRIMARY KEY (TASK_CLASS_ID) ON VSTR_IDX
  6172. GO
  6173.  
  6174. ALTER TABLE RIDW.D_REQUIREMENT ADD CONSTRAINT D_REQUIREMENT_PK PRIMARY KEY (REQUIREMENT_ID) ON VSTR_IDX
  6175. GO
  6176.  
  6177. ALTER TABLE RIDW.D_TESTCASE ADD CONSTRAINT D_TESTCASE_PK PRIMARY KEY (TESTCASE_ID) ON VSTR_IDX
  6178. GO
  6179.  
  6180. ALTER TABLE RIDW.D_TESTSUITE ADD CONSTRAINT D_TESTSUITE_PK PRIMARY KEY (TESTSUITE_ID) ON VSTR_IDX
  6181. GO
  6182.  
  6183. ALTER TABLE RIDW.D_EXECUTION_WORKITEM ADD CONSTRAINT D_CFGTEST_PK PRIMARY KEY (EXECWORKITEM_ID) ON VSTR_IDX
  6184. GO
  6185.  
  6186. ALTER TABLE RIDW.D_EXECUTION_RESULT ADD CONSTRAINT D_EXERES_PK PRIMARY KEY (EXECUTION_RESULT_ID) ON VSTR_IDX
  6187. GO
  6188.  
  6189. ALTER TABLE RIDW.D_TESTSUITELOG ADD CONSTRAINT D_SUITELG_PK PRIMARY KEY (TESTSUITELOG_ID) ON VSTR_IDX
  6190. GO
  6191.  
  6192. ALTER TABLE RIDW.D_TESTPLAN ADD CONSTRAINT D_TSTPLN_PK PRIMARY KEY (TESTPLAN_ID) ON VSTR_IDX
  6193. GO
  6194.  
  6195. ALTER TABLE RIDW.D_VERDICT ADD CONSTRAINT D_VERD_PK PRIMARY KEY (VERDICT_ID) ON VSTR_IDX
  6196. GO
  6197.  
  6198. ALTER TABLE RIDW.D_REQUEST_SOURCE ADD CONSTRAINT D_REQSRC_PK PRIMARY KEY (REQUEST_SOURCE_ID) ON VSTR_IDX
  6199. GO
  6200.  
  6201. ALTER TABLE RIDW.D_RESOLUTION ADD CONSTRAINT D_RESOLUTION_PK PRIMARY KEY (RESOLUTION_ID) ON VSTR_IDX
  6202. GO
  6203.  
  6204. ALTER TABLE RIDW.D_REQUEST ADD CONSTRAINT D_REQUEST_PK PRIMARY KEY (REQUEST_ID) ON VSTR_IDX
  6205. GO
  6206.  
  6207. ALTER TABLE RIDW.D_ASSETREGISTRY ADD CONSTRAINT D_ASSETRG_PK PRIMARY KEY (ASSETREGISTRY_ID) ON VSTR_IDX
  6208. GO
  6209.  
  6210. ALTER TABLE RIDW.D_TESTCASE_STATE ADD CONSTRAINT D_TSTSTATE_PK PRIMARY KEY (STATE_ID) ON VSTR_IDX
  6211. GO
  6212.  
  6213. ALTER TABLE RIDW.D_ACTIVITY ADD CONSTRAINT D_ACTIVITY_PK PRIMARY KEY (ACTIVITY_ID) ON VSTR_IDX
  6214. GO
  6215.  
  6216. ALTER TABLE RIDW.D_FILE ADD CONSTRAINT D_FILE_PK PRIMARY KEY (FILE_ID) ON VSTR_IDX
  6217. GO
  6218.  
  6219. ALTER TABLE RIDW.D_FILE_STREAM ADD CONSTRAINT D_FILESTR_PK PRIMARY KEY (FILE_STREAM_ID) ON VSTR_IDX
  6220. GO
  6221.  
  6222. ALTER TABLE RIDW.D_FILE_BASELINE ADD CONSTRAINT D_FILEBASE_PK PRIMARY KEY (FILE_BASELINE_ID) ON VSTR_IDX
  6223. GO
  6224.  
  6225. ALTER TABLE RIDW.D_FILE_VERSION ADD CONSTRAINT D_FILE_VER_PK PRIMARY KEY (FILE_VERSION_ID) ON VSTR_IDX
  6226. GO
  6227.  
  6228. ALTER TABLE RIDW.D_EXECUTIONWKITEM_STATE ADD CONSTRAINT D_CFGTSTSTATE_PK PRIMARY KEY (STATE_ID) ON VSTR_IDX
  6229. GO
  6230.  
  6231. ALTER TABLE RIDW.D_TESTPLAN_STATE ADD CONSTRAINT D_TSTPLN_STATE_PK PRIMARY KEY (STATE_ID) ON VSTR_IDX
  6232. GO
  6233.  
  6234. ALTER TABLE RIDW.D_TESTSUITE_STATE ADD CONSTRAINT D_TSTSUI_STATE_PK PRIMARY KEY (STATE_ID) ON VSTR_IDX
  6235. GO
  6236.  
  6237. ALTER TABLE RIDW.D_TASK_STATE ADD CONSTRAINT D_TASK_STATE_PK PRIMARY KEY (STATE_ID) ON VSTR_IDX
  6238. GO
  6239.  
  6240. ALTER TABLE RIDW.D_TASK ADD CONSTRAINT D_TASK_PK PRIMARY KEY (TASK_ID) ON VSTR_IDX
  6241. GO
  6242.  
  6243. ALTER TABLE RIDW.D_FACTOR ADD CONSTRAINT D_FACTOR_PK PRIMARY KEY (FACTOR_ID) ON VSTR_IDX
  6244. GO
  6245.  
  6246. ALTER TABLE RIDW.D_BUILD_TYPE ADD CONSTRAINT D_BUILDTYPE_PK PRIMARY KEY (BUILD_TYPE_ID) ON VSTR_IDX
  6247. GO
  6248.  
  6249. ALTER TABLE RIDW.D_REQUEST_TYPE ADD CONSTRAINT D_REQTYPE_PK PRIMARY KEY (REQUEST_TYPE_ID) ON VSTR_IDX
  6250. GO
  6251.  
  6252. ALTER TABLE RIDW.D_CONFIGURATION ADD CONSTRAINT D_CONFIG_PK PRIMARY KEY (CONFIGURATION_ID) ON VSTR_IDX
  6253. GO
  6254.  
  6255. ALTER TABLE RIDW.D_RESOURCE_GROUP ADD CONSTRAINT D_RESGROUP_PK PRIMARY KEY (RESOURCE_GROUP_ID) ON VSTR_IDX
  6256. GO
  6257.  
  6258. ALTER TABLE RIDW.D_LAB_RESOURCE ADD CONSTRAINT D_LABRES_PK PRIMARY KEY (LAB_RESOURCE_ID) ON VSTR_IDX
  6259. GO
  6260.  
  6261. ALTER TABLE RIDW.D_OS_TYPE ADD CONSTRAINT D_OSTYPE_PK PRIMARY KEY (OS_TYPE_ID) ON VSTR_IDX
  6262. GO
  6263.  
  6264. ALTER TABLE RIDW.D_REQUEST_CATEGORY ADD CONSTRAINT D_REQCAT_PK PRIMARY KEY (REQUEST_CATEGORY_ID) ON VSTR_IDX
  6265. GO
  6266.  
  6267. ALTER TABLE RIDW.D_FILE_CLASSIFICATION ADD CONSTRAINT D_FILECLS_PK PRIMARY KEY (FILE_CLASS_ID) ON VSTR_IDX
  6268. GO
  6269.  
  6270. ALTER TABLE RIDW.D_FILE_STREAM_CLASSIFICATION ADD CONSTRAINT D_FILESTRMCLS_PK PRIMARY KEY (FILE_STREAM_CLASS_ID) ON VSTR_IDX
  6271. GO
  6272.  
  6273. ALTER TABLE RIDW.D_JOB ADD CONSTRAINT D_JOB_PK PRIMARY KEY (JOB_ID) ON VSTR_IDX
  6274. GO
  6275.  
  6276. ALTER TABLE RIDW.D_JOB_RESULT ADD CONSTRAINT D_JOBRES_PK PRIMARY KEY (JOB_RESULT_ID) ON VSTR_IDX
  6277. GO
  6278.  
  6279. ALTER TABLE RIDW.D_JOB_RESULT_STATE ADD CONSTRAINT D_RESULT_PK PRIMARY KEY (STATE_ID) ON VSTR_IDX
  6280. GO
  6281.  
  6282. ALTER TABLE RIDW.D_TIMESHEET_STATE ADD CONSTRAINT D_TIMESHEETST_PK PRIMARY KEY (STATE_ID) ON VSTR_IDX
  6283. GO
  6284.  
  6285. ALTER TABLE RIDW.D_PROJECT_ALLOCATION ADD CONSTRAINT D_PROJALLO_PK PRIMARY KEY (PROJECT_ALLOCATION_ID) ON VSTR_IDX
  6286. GO
  6287.  
  6288. ALTER TABLE RIDW.D_SKILL ADD CONSTRAINT D_SKILL_PK PRIMARY KEY (SKILL_ID) ON VSTR_IDX
  6289. GO
  6290.  
  6291. ALTER TABLE RIDW.D_COMPETENCY ADD CONSTRAINT D_COMPETENCY_PK PRIMARY KEY (COMPETENCY_ID) ON VSTR_IDX
  6292. GO
  6293.  
  6294. ALTER TABLE RIDW.D_POOL ADD CONSTRAINT D_POOL_PK PRIMARY KEY (POOL_ID) ON VSTR_IDX
  6295. GO
  6296.  
  6297. ALTER TABLE RIDW.D_BASELINE ADD CONSTRAINT D_BASELINE_PK PRIMARY KEY (BASELINE_ID) ON VSTR_IDX
  6298. GO
  6299.  
  6300. ALTER TABLE RIDW.D_CHARGECODE ADD CONSTRAINT D_CHARGECODE_PK PRIMARY KEY (CHARGECODE_ID) ON VSTR_IDX
  6301. GO
  6302.  
  6303. ALTER TABLE RIDW.D_TIMECODE ADD CONSTRAINT D_TIMECODE_PK PRIMARY KEY (TIMECODE_ID) ON VSTR_IDX
  6304. GO
  6305.  
  6306. ALTER TABLE RIDW.D_PORTFOLIO ADD CONSTRAINT D_PORTFOLIO_PK PRIMARY KEY (PORTFOLIO_ID) ON VSTR_IDX
  6307. GO
  6308.  
  6309. ALTER TABLE RIDW.BD_PORTFOLIO ADD CONSTRAINT BD_PORTFOLIO_PK PRIMARY KEY (PORTFOLIO_ID,PROGRAM_ID,PROJECT_ID) ON VSTR_IDX
  6310. GO
  6311.  
  6312. ALTER TABLE RIDW.D_REQUIREMENT_TYPE ADD CONSTRAINT D_REQUITYPE_PK PRIMARY KEY (REQUIREMENT_TYPE_ID) ON VSTR_IDX
  6313. GO
  6314.  
  6315. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQU_METRIC_PK PRIMARY KEY (REQUEST_METRIC_ID) ON VSTR_IDX
  6316. GO
  6317.  
  6318. ALTER TABLE RIDW.H_REQUEST_METRICS_TOTAL ADD CONSTRAINT HREQMETRIC_PK PRIMARY KEY (REQUEST_METRIC_ID, REQUEST_ID) ON VSTR_IDX
  6319. GO
  6320.  
  6321. ALTER TABLE RIDW.H_REQUEST_METRICS_BLOCKING ADD CONSTRAINT HREQMETRICB_PK PRIMARY KEY (REQUEST_METRIC_ID, REQUEST_ID) ON VSTR_IDX
  6322. GO
  6323.  
  6324. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_DEF_AG_PK PRIMARY KEY (AGING_METRIC_ID) ON VSTR_IDX
  6325. GO
  6326.  
  6327. ALTER TABLE RIDW.H_REQUEST_AGING_TOTAL ADD CONSTRAINT HREQAG_PK PRIMARY KEY (AGING_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6328. GO
  6329.  
  6330. ALTER TABLE RIDW.H_REQUEST_AGING_MIN ADD CONSTRAINT HREQAGM_PK PRIMARY KEY (AGING_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6331. GO
  6332.  
  6333. ALTER TABLE RIDW.H_REQUEST_AGING_MAX ADD CONSTRAINT HREQAGX_PK PRIMARY KEY (AGING_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6334. GO
  6335.  
  6336. ALTER TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT F_REQCDT_PK PRIMARY KEY (REQCDT_METRIC_ID) ON VSTR_IDX
  6337. GO
  6338.  
  6339. ALTER TABLE RIDW.F_EXECUTION_RESULT_METRICS ADD CONSTRAINT F_EXERES_PK PRIMARY KEY (EXERES_METRICS_ID) ON VSTR_IDX
  6340. GO
  6341.  
  6342. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_PK PRIMARY KEY (REQDT_METRIC_ID) ON VSTR_IDX
  6343. GO
  6344.  
  6345. ALTER TABLE RIDW.F_REQUEST_FAILURE_METRICS ADD CONSTRAINT F_REQFL_PK PRIMARY KEY (REQFAIL_METRIC_ID) ON VSTR_IDX
  6346. GO
  6347.  
  6348. ALTER TABLE RIDW.H_REQUEST_FAILURE_METRICS ADD CONSTRAINT HREQFMETRIC_PK PRIMARY KEY (REQFAIL_METRIC_ID, REQUEST_ID) ON VSTR_IDX
  6349. GO
  6350.  
  6351. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_PK PRIMARY KEY (REQ_METRIC_ID) ON VSTR_IDX
  6352. GO
  6353.  
  6354. ALTER TABLE RIDW.H_REQUIREMENT_METRICS_TOTAL ADD CONSTRAINT HREQUIMETTOT_PK PRIMARY KEY (REQ_METRIC_ID, REQUIREMENT_ID) ON VSTR_IDX
  6355. GO
  6356.  
  6357. ALTER TABLE RIDW.H_REQUIREMENT_METRICS_CHANGES ADD CONSTRAINT HREQUIMETCH_PK PRIMARY KEY (REQ_METRIC_ID, REQUIREMENT_ID) ON VSTR_IDX
  6358. GO
  6359.  
  6360. ALTER TABLE RIDW.F_EXECUTION_WORKITEM_METRICS ADD CONSTRAINT F_EXECWK_PK PRIMARY KEY (EXECWORKITEM_METRIC_ID) ON VSTR_IDX
  6361. GO
  6362.  
  6363. ALTER TABLE RIDW.H_EXECUTION_WORKITEM_METRICS ADD CONSTRAINT HEXECWKMETRIC_PK PRIMARY KEY (EXECWORKITEM_METRIC_ID, EXECWORKITEM_ID) ON VSTR_IDX
  6364. GO
  6365.  
  6366. ALTER TABLE RIDW.F_TESTCASE_METRICS ADD CONSTRAINT F_TSTCASE_PK PRIMARY KEY (TSTCASE_METRIC_ID) ON VSTR_IDX
  6367. GO
  6368.  
  6369. ALTER TABLE RIDW.F_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_PTSTCASEPLN_PK PRIMARY KEY (TSTCASE_METRIC_ID) ON VSTR_IDX
  6370. GO
  6371.  
  6372. ALTER TABLE RIDW.F_C_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_CPTSTCASEPL_PK PRIMARY KEY (TSTCASE_METRIC_ID) ON VSTR_IDX
  6373. GO
  6374.  
  6375. ALTER TABLE RIDW.F_PROJ_TESTCASE_METRICS ADD CONSTRAINT F_PTSTCASE_PK PRIMARY KEY (TSTCASE_METRIC_ID) ON VSTR_IDX
  6376. GO
  6377.  
  6378. ALTER TABLE RIDW.F_C_PROJ_TESTCASE_METRICS ADD CONSTRAINT F_CPTSTCASE_PK PRIMARY KEY (TSTCASE_METRIC_ID) ON VSTR_IDX
  6379. GO
  6380.  
  6381. ALTER TABLE RIDW.H_TESTCASE_METRICS ADD CONSTRAINT HTSTCMETRIC_PK PRIMARY KEY (TSTCASE_METRIC_ID, TESTCASE_ID) ON VSTR_IDX
  6382. GO
  6383.  
  6384. ALTER TABLE RIDW.H_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT HPTSTCASEPLN_PK PRIMARY KEY (TSTCASE_METRIC_ID, TESTCASE_ID) ON VSTR_IDX
  6385. GO
  6386.  
  6387. ALTER TABLE RIDW.H_PROJ_TESTCASE_METRICS ADD CONSTRAINT HPTSTCASE_PK PRIMARY KEY (TSTCASE_METRIC_ID, TESTCASE_ID) ON VSTR_IDX
  6388. GO
  6389.  
  6390. ALTER TABLE RIDW.F_BUILD_METRICS ADD CONSTRAINT F_BUILD_PK PRIMARY KEY (BUILD_METRIC_ID) ON VSTR_IDX
  6391. GO
  6392.  
  6393. ALTER TABLE RIDW.H_BUILD_ATTEMPTS ADD CONSTRAINT HBLDATTE_PK PRIMARY KEY (BUILD_METRIC_ID, BUILD_ID) ON VSTR_IDX
  6394. GO
  6395.  
  6396. ALTER TABLE RIDW.H_BUILD_PASS ADD CONSTRAINT HBLDPAS_PK PRIMARY KEY (BUILD_METRIC_ID, BUILD_ID) ON VSTR_IDX
  6397. GO
  6398.  
  6399. ALTER TABLE RIDW.H_BUILD_FAIL ADD CONSTRAINT HBLDFAIL_PK PRIMARY KEY (BUILD_METRIC_ID, BUILD_ID) ON VSTR_IDX
  6400. GO
  6401.  
  6402. ALTER TABLE RIDW.F_TEXT_FILE_VERSION_METRICS ADD CONSTRAINT F_TFV_MET_PK PRIMARY KEY (SLOC_METRICS_ID) ON VSTR_IDX
  6403. GO
  6404.  
  6405. ALTER TABLE RIDW.H_TEXT_FILE_VERSION_METRICS_CH ADD CONSTRAINT H_TFVCH_PK PRIMARY KEY (SLOC_METRICS_ID,FILE_VERSION_ID) ON VSTR_IDX
  6406. GO
  6407.  
  6408. ALTER TABLE RIDW.H_TEXT_FILE_VERSION_METRICS_TO ADD CONSTRAINT H_TFVT_PK PRIMARY KEY (SLOC_METRICS_ID,FILE_VERSION_ID) ON VSTR_IDX
  6409. GO
  6410.  
  6411. ALTER TABLE RIDW.F_CHILDREQUIREMENT_METRICS ADD CONSTRAINT F_CHREQM_PK PRIMARY KEY (CHILDREQ_METRICS_ID) ON VSTR_IDX
  6412. GO
  6413.  
  6414. ALTER TABLE RIDW.F_PROJECT_PERFORMANCE_METRICS ADD CONSTRAINT F_PPM_PK PRIMARY KEY (PERF_METRICS_ID) ON VSTR_IDX
  6415. GO
  6416.  
  6417. ALTER TABLE RIDW.H_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT H_REQCLD_PK PRIMARY KEY (REQCDT_METRIC_ID, REQUEST_ID) ON VSTR_IDX
  6418. GO
  6419.  
  6420. ALTER TABLE RIDW.H_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT H_REQDT_PK PRIMARY KEY (REQDT_METRIC_ID, REQUEST_ID) ON VSTR_IDX
  6421. GO
  6422.  
  6423. ALTER TABLE RIDW.H_EXECUTION_RESULT_METRICS ADD CONSTRAINT H_EXERES_PK PRIMARY KEY (EXERES_METRICS_ID, EXECUTION_RESULT_ID) ON VSTR_IDX
  6424. GO
  6425.  
  6426. ALTER TABLE RIDW.H_CHILDREQUIREMENT_METRICS ADD CONSTRAINT H_CHREQ_PK PRIMARY KEY (CHILDREQ_METRICS_ID, REQUIREMENT_ID) ON VSTR_IDX
  6427. GO
  6428.  
  6429. ALTER TABLE RIDW.D_ACTIVITY_STATE ADD CONSTRAINT D_ACT_STATE_PK PRIMARY KEY (STATE_ID) ON VSTR_IDX
  6430. GO
  6431.  
  6432. ALTER TABLE RIDW.D_ACTIVITY_CLASSIFICATION ADD CONSTRAINT D_ACT_CLASS_PK PRIMARY KEY (ACTIVITY_CLASS_ID) ON VSTR_IDX
  6433. GO
  6434.  
  6435. ALTER TABLE RIDW.D_COMPONENT_CLASSIFICATION ADD CONSTRAINT D_COMP_STATE_PK PRIMARY KEY (COMPONENT_CLASS_ID) ON VSTR_IDX
  6436. GO
  6437.  
  6438. ALTER TABLE RIDW.D_PROJECT_CLASSIFICATION ADD CONSTRAINT D_PRJ_CLASS_PK PRIMARY KEY (PROJECT_CLASS_ID) ON VSTR_IDX
  6439. GO
  6440.  
  6441. ALTER TABLE RIDW.D_TASK_TYPE ADD CONSTRAINT DTASKTYPE_PK PRIMARY KEY (TASK_TYPE_ID) ON VSTR_IDX
  6442. GO
  6443.  
  6444. ALTER TABLE RIDW.D_AGE_RANK ADD CONSTRAINT D_AGE_RANK_PK PRIMARY KEY (AGE_RANK_ID) ON VSTR_IDX
  6445. GO
  6446.  
  6447. ALTER TABLE RIDW.F_ACTIVITY_METRICS ADD CONSTRAINT F_ACTM_PK PRIMARY KEY (ACTIVITY_METRICS_ID) ON VSTR_IDX
  6448. GO
  6449.  
  6450. ALTER TABLE RIDW.H_ACTIVITY_METRICS ADD CONSTRAINT H_ACTM_STATE_PK PRIMARY KEY (ACTIVITY_METRICS_ID,ACTIVITY_ID) ON VSTR_IDX
  6451. GO
  6452.  
  6453. ALTER TABLE RIDW.F_ACTIVITY_CREATION_DT_METRICS ADD CONSTRAINT F_ACTCRDM_PK PRIMARY KEY (ACTIVITYCRD_METRICS_ID) ON VSTR_IDX
  6454. GO
  6455.  
  6456. ALTER TABLE RIDW.H_ACTIVITY_CREATION_DT_METRICS ADD CONSTRAINT H_ACTCRDM_PK PRIMARY KEY (ACTIVITYCRD_METRICS_ID,ACTIVITY_ID) ON VSTR_IDX
  6457. GO
  6458.  
  6459. ALTER TABLE RIDW.F_EXECRESULT_DATE_METRICS ADD CONSTRAINT F_EXECRESDT_PK PRIMARY KEY (EXECRESDT_METRICS_ID) ON VSTR_IDX
  6460. GO
  6461.  
  6462. ALTER TABLE RIDW.H_EXECRESULT_DATE_METRICS ADD CONSTRAINT H_EXECRESDTK_PK PRIMARY KEY(EXECRESDT_METRICS_ID,EXECUTION_RESULT_ID) ON VSTR_IDX
  6463. GO
  6464.  
  6465. ALTER TABLE RIDW.F_EXECRESPOINTS_METRICS ADD CONSTRAINT F_EXECPTS_PK PRIMARY KEY (EXECRES_METRIC_ID) ON VSTR_IDX
  6466. GO
  6467.  
  6468. ALTER TABLE RIDW.H_EXECRESPOINTS_METRICS ADD CONSTRAINT H_EXECPTS_PK PRIMARY KEY (EXECRES_METRIC_ID,EXECUTION_RESULT_ID) ON VSTR_IDX
  6469. GO
  6470.  
  6471. ALTER TABLE RIDW.F_REQUEST_TURNAROUND ADD CONSTRAINT F_REQTURN_PK PRIMARY KEY (TURNAROUND_METRIC_ID) ON VSTR_IDX
  6472. GO
  6473.  
  6474. ALTER TABLE RIDW.H_REQUEST_TURNAROUND_TOTAL ADD CONSTRAINT H_REQTURNTOT_PK PRIMARY KEY (TURNAROUND_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6475. GO
  6476.  
  6477. ALTER TABLE RIDW.H_REQUEST_TURNAROUND_MIN ADD CONSTRAINT H_REQTURNMIN_PK PRIMARY KEY (TURNAROUND_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6478. GO
  6479.  
  6480. ALTER TABLE RIDW.H_REQUEST_TURNAROUND_MAX ADD CONSTRAINT H_REQTURNMAX_PK PRIMARY KEY (TURNAROUND_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6481. GO
  6482.  
  6483. ALTER TABLE RIDW.F_TASK_METRICS ADD CONSTRAINT F_TSKMET_PK PRIMARY KEY (TASK_METRICS_ID) ON VSTR_IDX
  6484. GO
  6485.  
  6486. ALTER TABLE RIDW.H_TASK_METRICS ADD CONSTRAINT H_TSKMET_PK PRIMARY KEY (TASK_METRICS_ID,TASK_ID) ON VSTR_IDX
  6487. GO
  6488.  
  6489. ALTER TABLE RIDW.F_TASK_CREATION_DT_METRICS ADD CONSTRAINT F_TSKCRDTMET_PK PRIMARY KEY (TASKCRD_METRICS_ID) ON VSTR_IDX
  6490. GO
  6491.  
  6492. ALTER TABLE RIDW.H_TASK_CREATION_DT_METRICS ADD CONSTRAINT H_TSKCRDTMET_PK PRIMARY KEY (TASKCRD_METRICS_ID,TASK_ID) ON VSTR_IDX
  6493. GO
  6494.  
  6495. ALTER TABLE RIDW.F_TASK_CLOSURE_DT_METRICS ADD CONSTRAINT F_TSKCLDTMET_PK PRIMARY KEY (TASKCLS_METRICS_ID) ON VSTR_IDX
  6496. GO
  6497.  
  6498. ALTER TABLE RIDW.H_TASK_CLOSURE_DT_METRICS ADD CONSTRAINT H_TSKCLDTMET_PK PRIMARY KEY (TASKCLS_METRICS_ID,TASK_ID) ON VSTR_IDX
  6499. GO
  6500.  
  6501. ALTER TABLE RIDW.H_BUILD_EXEC_DT_METRICS_TOT ADD CONSTRAINT H_BLDEXDTMET_PK PRIMARY KEY (BUILD_EXEC_METRIC_ID,BUILD_ID) ON VSTR_IDX
  6502. GO
  6503.  
  6504. ALTER TABLE RIDW.F_BUILD_EXECUTION_DT_METRICS ADD CONSTRAINT F_BLDEXDTMET_PK PRIMARY KEY (BUILD_EXEC_METRIC_ID) ON VSTR_IDX
  6505. GO
  6506.  
  6507. ALTER TABLE RIDW.D_TESTCASE_CLASSIFICATION ADD CONSTRAINT D_TSTCCLASS_PK PRIMARY KEY (TESTCASE_CLASS_ID) ON VSTR_IDX
  6508. GO
  6509.  
  6510. ALTER TABLE RIDW.D_EXECWORKITEM_CLASSIFICATION ADD CONSTRAINT D_EXWKITCLASS_PK PRIMARY KEY (EXECWORKIT_CLASS_ID) ON VSTR_IDX
  6511. GO
  6512.  
  6513. ALTER TABLE RIDW.D_EXECRESULT_CLASSIFICATION ADD CONSTRAINT D_EXECRESCLASS_PK PRIMARY KEY (EXECRES_CLASS_ID) ON VSTR_IDX
  6514. GO
  6515.  
  6516. ALTER TABLE RIDW.D_TESTSUITE_CLASSIFICATION ADD CONSTRAINT D_TESTSUCLASS_PK PRIMARY KEY (TESTSUITE_CLASS_ID) ON VSTR_IDX
  6517. GO
  6518.  
  6519. ALTER TABLE RIDW.F_LAB_RESUTILIZATION_METRICS ADD CONSTRAINT F_LABRESUTL_PK PRIMARY KEY (LAB_RESUTIL_ID) ON VSTR_IDX
  6520. GO
  6521.  
  6522. ALTER TABLE RIDW.H_LAB_RESUTILIZATION_METRICS ADD CONSTRAINT H_LABRESUTL_PK PRIMARY KEY (LAB_RESUTIL_ID,LAB_RESOURCE_ID) ON VSTR_IDX
  6523. GO
  6524.  
  6525. ALTER TABLE RIDW.F_TEXT_FILE_CHANGE_METRICS ADD CONSTRAINT FFTXTCHNGM_PK PRIMARY KEY (FTEXTCHNG_METRICS_ID) ON VSTR_IDX
  6526. GO
  6527.  
  6528. ALTER TABLE RIDW.H_TEXT_FILE_CHANGE_METRICS ADD CONSTRAINT HFTXTCHNGM_PK PRIMARY KEY (FTEXTCHNG_METRICS_ID,FILE_ID) ON VSTR_IDX
  6529. GO
  6530.  
  6531. ALTER TABLE RIDW.F_FILE_STREAM_METRICS ADD CONSTRAINT FFILESTRMET_PK PRIMARY KEY (FSTREAM_METRICS_ID) ON VSTR_IDX
  6532. GO
  6533.  
  6534. ALTER TABLE RIDW.H_FILE_STREAM_METRICS ADD CONSTRAINT HFILESTRMET_PK PRIMARY KEY (FSTREAM_METRICS_ID,FILE_STREAM_ID) ON VSTR_IDX
  6535. GO
  6536.  
  6537. ALTER TABLE RIDW.D_BUILD_CLASSIFICATION ADD CONSTRAINT D_BUILDCLASS_PK PRIMARY KEY (BUILD_CLASS_ID) ON VSTR_IDX
  6538. GO
  6539.  
  6540. ALTER TABLE RIDW.F_JOB_EXECUTION_DT_METRICS ADD CONSTRAINT F_JOBEXECRES_PK PRIMARY KEY (F_JOBRES_METRIC_ID) ON VSTR_IDX
  6541. GO
  6542.  
  6543. ALTER TABLE RIDW.H_JOB_EXECUTION_DT_METRICS ADD CONSTRAINT H_JOBEXECRES_PK PRIMARY KEY (F_JOBRES_METRIC_ID,JOB_RESULT_ID) ON VSTR_IDX
  6544. GO
  6545.  
  6546. ALTER TABLE RIDW.F_REQUEST_RESOLUTIO_DT_METRICS ADD CONSTRAINT F_REQRESDT_PK PRIMARY KEY (REQDT_METRIC_ID) ON VSTR_IDX
  6547. GO
  6548.  
  6549. ALTER TABLE RIDW.H_REQUEST_RESOLUTIO_DT_METRICS ADD CONSTRAINT H_REQRESDT_PK PRIMARY KEY (REQDT_METRIC_ID, REQUEST_ID) ON VSTR_IDX
  6550. GO
  6551.  
  6552. ALTER TABLE RIDW.F_RELEASE_REQUEST_METRICS ADD CONSTRAINT F_RELREQ_PK PRIMARY KEY (F_RELREQ_METRIC_ID) ON VSTR_IDX
  6553. GO
  6554.  
  6555. ALTER TABLE RIDW.H_RELEASE_REQUEST_METRICS ADD CONSTRAINT H_RELREQ_PK PRIMARY KEY (F_RELREQ_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6556. GO
  6557.  
  6558. ALTER TABLE RIDW.F_REL_REQUEST_TURN_METRICS ADD CONSTRAINT F_RELREQTU_PK PRIMARY KEY (F_RELREQ_TURN_METRIC_ID) ON VSTR_IDX
  6559. GO
  6560.  
  6561. ALTER TABLE RIDW.H_REL_REQUEST_TURN_METRICS ADD CONSTRAINT H_RELREQTU_PK PRIMARY KEY (F_RELREQ_TURN_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6562. GO
  6563.  
  6564. ALTER TABLE RIDW.F_TIME_TO_MARKET_RELEA_METRICS ADD CONSTRAINT F_TTMKTREL_PK PRIMARY KEY (F_TIME_TO_MRKT_METRIC_ID) ON VSTR_IDX
  6565. GO
  6566.  
  6567. ALTER TABLE RIDW.H_TIME_TO_MARKET_REL_METRICS ADD CONSTRAINT H_TTMKTREL_PK PRIMARY KEY (F_TIME_TO_MRKT_METRIC_ID,RELEASE_ID) ON VSTR_IDX
  6568. GO
  6569.  
  6570. ALTER TABLE RIDW.F_C_REQUEST_METRICS ADD CONSTRAINT F_C_REQU_METRIC_PK PRIMARY KEY (REQUEST_METRIC_ID) ON VSTR_IDX
  6571. GO
  6572.  
  6573. ALTER TABLE RIDW.F_C_REQUEST_AGING ADD CONSTRAINT F_C_DEF_AG_PK PRIMARY KEY (AGING_METRIC_ID) ON VSTR_IDX
  6574. GO
  6575.  
  6576. ALTER TABLE RIDW.F_C_REQUEST_TURNAROUND ADD CONSTRAINT F_C_REQTURN_PK PRIMARY KEY (TURNAROUND_METRIC_ID) ON VSTR_IDX
  6577. GO
  6578.  
  6579. ALTER TABLE RIDW.F_C_EXECUTION_RESULT_METRICS ADD CONSTRAINT F_C_EXERES_PK PRIMARY KEY (EXERES_METRICS_ID) ON VSTR_IDX
  6580. GO
  6581.  
  6582. ALTER TABLE RIDW.F_C_REQUEST_FAILURE_METRICS ADD CONSTRAINT F_C_REQFL_PK PRIMARY KEY (REQFAIL_METRIC_ID) ON VSTR_IDX
  6583. GO
  6584.  
  6585. ALTER TABLE RIDW.F_C_REQUIREMENT_METRICS ADD CONSTRAINT F_C_REQMET_PK PRIMARY KEY (REQ_METRIC_ID) ON VSTR_IDX
  6586. GO
  6587.  
  6588. ALTER TABLE RIDW.F_C_EXECUTION_WORKITEM_METRICS ADD CONSTRAINT F_C_EXECWK_PK PRIMARY KEY (EXECWORKITEM_METRIC_ID) ON VSTR_IDX
  6589. GO
  6590.  
  6591. ALTER TABLE RIDW.F_C_TESTCASE_METRICS ADD CONSTRAINT F_C_TSTCASE_PK PRIMARY KEY (TSTCASE_METRIC_ID) ON VSTR_IDX
  6592. GO
  6593.  
  6594. ALTER TABLE RIDW.F_C_BUILD_METRICS ADD CONSTRAINT F_C_BUILD_PK PRIMARY KEY (BUILD_METRIC_ID) ON VSTR_IDX
  6595. GO
  6596.  
  6597. ALTER TABLE RIDW.F_C_PROJECT_PERFORM_METRICS ADD CONSTRAINT F_C_PPM_PK PRIMARY KEY (PERF_METRICS_ID) ON VSTR_IDX
  6598. GO
  6599.  
  6600. ALTER TABLE RIDW.F_C_CHILDREQUIREMENT_METRICS ADD CONSTRAINT F_C_CHREQM_PK PRIMARY KEY (CHILDREQ_METRICS_ID) ON VSTR_IDX
  6601. GO
  6602.  
  6603. ALTER TABLE RIDW.F_C_EXECRESPOINTS_METRICS ADD CONSTRAINT F_C_EXECPTS_PK PRIMARY KEY (EXECRES_METRIC_ID) ON VSTR_IDX
  6604. GO
  6605.  
  6606. ALTER TABLE RIDW.F_C_ACTIVITY_METRICS ADD CONSTRAINT F_C_ACTM_PK PRIMARY KEY (ACTIVITY_METRICS_ID) ON VSTR_IDX
  6607. GO
  6608.  
  6609. ALTER TABLE RIDW.F_C_TASK_METRICS ADD CONSTRAINT F_C_TSKMET_PK PRIMARY KEY (TASK_METRICS_ID) ON VSTR_IDX
  6610. GO
  6611.  
  6612. ALTER TABLE RIDW.F_C_LAB_RESUTILIZATION_METRICS ADD CONSTRAINT F_C_LABRESUTL_PK PRIMARY KEY (LAB_RESUTIL_ID) ON VSTR_IDX
  6613. GO
  6614.  
  6615. ALTER TABLE RIDW.F_C_TEXT_FILE_CHANGE_METRICS ADD CONSTRAINT FCFTXTCHNGM_PK PRIMARY KEY (FTEXTCHNG_METRICS_ID) ON VSTR_IDX
  6616. GO
  6617.  
  6618. ALTER TABLE RIDW.F_C_FILE_STREAM_METRICS ADD CONSTRAINT FCFILESTRMET_PK PRIMARY KEY (FSTREAM_METRICS_ID) ON VSTR_IDX
  6619. GO
  6620.  
  6621. ALTER TABLE RIDW.F_C_RELEASE_REQUEST_METRICS ADD CONSTRAINT F_C_RELREQ_PK PRIMARY KEY (F_RELREQ_METRIC_ID) ON VSTR_IDX
  6622. GO
  6623.  
  6624. ALTER TABLE RIDW.F_C_REL_REQUEST_TURN_METRICS ADD CONSTRAINT F_C_RELREQTU_PK PRIMARY KEY (F_RELREQ_TURN_METRIC_ID) ON VSTR_IDX
  6625. GO
  6626.  
  6627. ALTER TABLE RIDW.F_ACTIVITY_ITER_METRICS ADD CONSTRAINT F_ACTITER_MET_PK PRIMARY KEY (ACTIVITY_METRICS_ID) ON VSTR_IDX
  6628. GO
  6629.  
  6630. ALTER TABLE RIDW.F_ACTIVITY_REQ_METRICS ADD CONSTRAINT F_ACTREQ_MET_PK PRIMARY KEY (ACTIVITY_METRICS_ID) ON VSTR_IDX
  6631. GO
  6632.  
  6633. ALTER TABLE RIDW.F_ACT_ITER_CREATION_DT_METRICS ADD CONSTRAINT F_AICRDT_MET_PK PRIMARY KEY (ACTIVITYCRD_METRICS_ID) ON VSTR_IDX
  6634. GO
  6635.  
  6636. ALTER TABLE RIDW.F_ACT_REQU_CREATION_DT_METRICS ADD CONSTRAINT F_ARCRDT_MET_PK PRIMARY KEY (ACTIVITYCRD_METRICS_ID) ON VSTR_IDX
  6637. GO
  6638.  
  6639. ALTER TABLE RIDW.F_BUILD_REQUI_METRICS ADD CONSTRAINT F_BLDREQUI_MET_PK PRIMARY KEY (BUILD_METRIC_ID) ON VSTR_IDX
  6640. GO
  6641.  
  6642. ALTER TABLE RIDW.F_BUILD_REQU_EXEC_DT_METRICS ADD CONSTRAINT F_BREDT_MET_PK PRIMARY KEY (BUILD_EXEC_METRIC_ID) ON VSTR_IDX
  6643. GO
  6644.  
  6645. ALTER TABLE RIDW.F_BUILD_REQU_METRICS ADD CONSTRAINT F_BLDREQU_MET_PK PRIMARY KEY (BUILD_METRIC_ID) ON VSTR_IDX
  6646. GO
  6647.  
  6648. ALTER TABLE RIDW.F_C_ACTIVITY_ITER_METRICS ADD CONSTRAINT F_C_ACTITER_MET_PK PRIMARY KEY (ACTIVITY_METRICS_ID) ON VSTR_IDX
  6649. GO
  6650.  
  6651. ALTER TABLE RIDW.F_C_ACTIVITY_REQ_METRICS ADD CONSTRAINT F_C_ACTREQ_MET_PK PRIMARY KEY (ACTIVITY_METRICS_ID) ON VSTR_IDX
  6652. GO
  6653.  
  6654. ALTER TABLE RIDW.F_C_BUILD_REQUI_METRICS ADD CONSTRAINT F_CBLDREQ_MET_PK PRIMARY KEY (BUILD_METRIC_ID) ON VSTR_IDX
  6655. GO
  6656.  
  6657. ALTER TABLE RIDW.F_C_BUILD_REQU_METRICS ADD CONSTRAINT F_C_BLDREQU_MET_PK PRIMARY KEY (BUILD_METRIC_ID) ON VSTR_IDX
  6658. GO
  6659.  
  6660. ALTER TABLE RIDW.F_C_EXECRESPOINTS_ITER_METRICS ADD CONSTRAINT F_CEPTI_MET_PK PRIMARY KEY (EXECRES_METRIC_ID) ON VSTR_IDX
  6661. GO
  6662.  
  6663. ALTER TABLE RIDW.F_C_EXEC_RESULT_ITER_METRICS ADD CONSTRAINT F_CEREI_MET_PK PRIMARY KEY (EXERES_METRICS_ID) ON VSTR_IDX
  6664. GO
  6665.  
  6666. ALTER TABLE RIDW.F_C_EXEC_WORKITEM_ITER_METRICS ADD CONSTRAINT F_CEWI_MET_PK PRIMARY KEY (EXECWORKITEM_METRIC_ID) ON VSTR_IDX
  6667. GO
  6668.  
  6669. ALTER TABLE RIDW.F_C_EXEC_WORKITEM_REQU_METRICS ADD CONSTRAINT F_CEWIR_MET_PK PRIMARY KEY (EXECWORKITEM_METRIC_ID) ON VSTR_IDX
  6670. GO
  6671.  
  6672. ALTER TABLE RIDW.F_C_REQUEST_CUST_METRICS ADD CONSTRAINT F_C_REQCUST_MET_PK PRIMARY KEY (REQUEST_METRIC_ID) ON VSTR_IDX
  6673. GO
  6674.  
  6675. ALTER TABLE RIDW.F_C_REQUEST_REQUI_FAIL_METRICS ADD CONSTRAINT F_CREQRQF_MET_PK PRIMARY KEY (REQFAIL_METRIC_ID) ON VSTR_IDX
  6676. GO
  6677.  
  6678. ALTER TABLE RIDW.F_C_REQUEST_REQUI_METRICS ADD CONSTRAINT F_CREQRQU_MET_PK PRIMARY KEY (REQUEST_METRIC_ID) ON VSTR_IDX
  6679. GO
  6680.  
  6681. ALTER TABLE RIDW.F_C_REQUEST_TPLN_AGING ADD CONSTRAINT F_C_REQTPLN_AG_PK PRIMARY KEY (AGING_METRIC_ID) ON VSTR_IDX
  6682. GO
  6683.  
  6684. ALTER TABLE RIDW.F_C_REQUEST_TPLN_FAIL_METRICS ADD CONSTRAINT F_CREQTPF_MET_PK PRIMARY KEY (REQFAIL_METRIC_ID) ON VSTR_IDX
  6685. GO
  6686.  
  6687. ALTER TABLE RIDW.F_C_REQUEST_TPLN_METRICS ADD CONSTRAINT F_C_REQTPLN_MET_PK PRIMARY KEY (REQUEST_METRIC_ID) ON VSTR_IDX
  6688. GO
  6689.  
  6690. ALTER TABLE RIDW.F_C_REQUEST_TPLN_TURNAROUND ADD CONSTRAINT F_CREQTPT_MET_PK PRIMARY KEY (TURNAROUND_METRIC_ID) ON VSTR_IDX
  6691. GO
  6692.  
  6693. ALTER TABLE RIDW.F_C_REQUIREMENT_TPLN_METRICS ADD CONSTRAINT F_CREQUTP_MET_PK PRIMARY KEY (REQ_METRIC_ID) ON VSTR_IDX
  6694. GO
  6695.  
  6696. ALTER TABLE RIDW.F_C_REQUI_TCASE_METRICS ADD CONSTRAINT F_CREQTC_MET_PK PRIMARY KEY (REQ_METRIC_ID) ON VSTR_IDX
  6697. GO
  6698.  
  6699. ALTER TABLE RIDW.F_C_TASK_COMP_METRICS ADD CONSTRAINT F_CTKCM_MET_PK PRIMARY KEY (TASK_METRICS_ID) ON VSTR_IDX
  6700. GO
  6701.  
  6702. ALTER TABLE RIDW.F_C_TESTCASE_ITER_METRICS ADD CONSTRAINT F_CTSI_MET_PK PRIMARY KEY (TSTCASE_METRIC_ID) ON VSTR_IDX
  6703. GO
  6704.  
  6705. ALTER TABLE RIDW.F_C_TESTCASE_REQUI_METRICS ADD CONSTRAINT F_CTPJR_MET_PK PRIMARY KEY (TSTCASE_METRIC_ID) ON VSTR_IDX
  6706. GO
  6707.  
  6708. ALTER TABLE RIDW.F_C_TEXT_FILE_VERSION_METRICS ADD CONSTRAINT F_CTXFV_MET_PK PRIMARY KEY (SLOC_METRICS_ID) ON VSTR_IDX
  6709. GO
  6710.  
  6711. ALTER TABLE RIDW.F_C_TEXT_FILE_VER_REQU_METRICS ADD CONSTRAINT F_CTXFVR_MET_PK PRIMARY KEY (SLOC_METRICS_ID) ON VSTR_IDX
  6712. GO
  6713.  
  6714. ALTER TABLE RIDW.F_EXECRESPOINTS_ITER_METRICS ADD CONSTRAINT F_EXPI_MET_PK PRIMARY KEY (EXECRES_METRIC_ID) ON VSTR_IDX
  6715. GO
  6716.  
  6717. ALTER TABLE RIDW.F_EXECUTION_RES_ITER_METRICS ADD CONSTRAINT F_ERI_MET_PK PRIMARY KEY (EXERES_METRICS_ID) ON VSTR_IDX
  6718. GO
  6719.  
  6720. ALTER TABLE RIDW.F_EXEC_WORKITEM_ITER_METRICS ADD CONSTRAINT F_EWI_MET_PK PRIMARY KEY (EXECWORKITEM_METRIC_ID) ON VSTR_IDX
  6721. GO
  6722.  
  6723. ALTER TABLE RIDW.F_EXEC_WORKITEM_REQU_METRICS ADD CONSTRAINT F_EWR_MET_PK PRIMARY KEY (EXECWORKITEM_METRIC_ID) ON VSTR_IDX
  6724. GO
  6725.  
  6726. ALTER TABLE RIDW.F_REQUEST_CUST_METRICS ADD CONSTRAINT F_REQCUST_MET_PK PRIMARY KEY (REQUEST_METRIC_ID) ON VSTR_IDX
  6727. GO
  6728.  
  6729. ALTER TABLE RIDW.F_REQUEST_REQUI_FAIL_METRICS ADD CONSTRAINT F_RQRUF_MET_PK PRIMARY KEY (REQFAIL_METRIC_ID) ON VSTR_IDX
  6730. GO
  6731.  
  6732. ALTER TABLE RIDW.F_REQUEST_REQUI_METRICS ADD CONSTRAINT F_REQREQUI_MET_PK PRIMARY KEY (REQUEST_METRIC_ID) ON VSTR_IDX
  6733. GO
  6734.  
  6735. ALTER TABLE RIDW.F_REQUEST_RES_REQUI_DT_METRICS ADD CONSTRAINT F_RRERD_MET_PK PRIMARY KEY (REQDT_METRIC_ID) ON VSTR_IDX
  6736. GO
  6737.  
  6738. ALTER TABLE RIDW.F_REQUEST_RES_TPLN_DT_METRICS ADD CONSTRAINT F_RRETD_MET_PK PRIMARY KEY (REQDT_METRIC_ID) ON VSTR_IDX
  6739. GO
  6740.  
  6741. ALTER TABLE RIDW.F_REQUEST_TPLN_AGING ADD CONSTRAINT F_REQTPLN_AG_PK PRIMARY KEY (AGING_METRIC_ID) ON VSTR_IDX
  6742. GO
  6743.  
  6744. ALTER TABLE RIDW.F_REQUEST_TPLN_FAIL_METRICS ADD CONSTRAINT F_RPLF_MET_PK PRIMARY KEY (REQFAIL_METRIC_ID) ON VSTR_IDX
  6745. GO
  6746.  
  6747. ALTER TABLE RIDW.F_REQUEST_TPLN_METRICS ADD CONSTRAINT F_REQTPLN_MET_PK PRIMARY KEY (REQUEST_METRIC_ID) ON VSTR_IDX
  6748. GO
  6749.  
  6750. ALTER TABLE RIDW.F_REQUEST_TPLN_TURNAROUND ADD CONSTRAINT F_RQTPT_PK PRIMARY KEY (TURNAROUND_METRIC_ID) ON VSTR_IDX
  6751. GO
  6752.  
  6753. ALTER TABLE RIDW.F_REQUE_CLOSE_REQUI_DT_METRICS ADD CONSTRAINT F_RCRDT_MET_PK PRIMARY KEY (REQCDT_METRIC_ID) ON VSTR_IDX
  6754. GO
  6755.  
  6756. ALTER TABLE RIDW.F_REQUE_CLOSE_TPLN_DT_METRICS ADD CONSTRAINT F_RCTD_MET_PK PRIMARY KEY (REQCDT_METRIC_ID) ON VSTR_IDX
  6757. GO
  6758.  
  6759. ALTER TABLE RIDW.F_REQUIREMENT_TPLN_METRICS ADD CONSTRAINT F_REQUITPLN_MET_PK PRIMARY KEY (REQ_METRIC_ID) ON VSTR_IDX
  6760. GO
  6761.  
  6762. ALTER TABLE RIDW.F_REQUI_TCASE_METRICS ADD CONSTRAINT F_RTC_MET_PK PRIMARY KEY (REQ_METRIC_ID) ON VSTR_IDX
  6763. GO
  6764.  
  6765. ALTER TABLE RIDW.F_REQU_CREATI_REQUI_DT_METRICS ADD CONSTRAINT F_RRDT_MET_PK PRIMARY KEY (REQDT_METRIC_ID) ON VSTR_IDX
  6766. GO
  6767.  
  6768. ALTER TABLE RIDW.F_REQU_CREATI_TPLN_DT_METRICS ADD CONSTRAINT F_RCRTD_MET_PK PRIMARY KEY (REQDT_METRIC_ID) ON VSTR_IDX
  6769. GO
  6770.  
  6771. ALTER TABLE RIDW.F_TASK_CLOSE_COMP_DT_METRICS ADD CONSTRAINT F_TCCMD_MET_PK PRIMARY KEY (TASKCLS_METRICS_ID) ON VSTR_IDX
  6772. GO
  6773.  
  6774. ALTER TABLE RIDW.F_TASK_COMP_METRICS ADD CONSTRAINT F_TASK_COMP_MET_PK PRIMARY KEY (TASK_METRICS_ID) ON VSTR_IDX
  6775. GO
  6776.  
  6777. ALTER TABLE RIDW.F_TASK_CREATE_COMP_DT_METRICS ADD CONSTRAINT F_TCRCMD_MET_PK PRIMARY KEY (TASKCRD_METRICS_ID) ON VSTR_IDX
  6778. GO
  6779.  
  6780. ALTER TABLE RIDW.F_TESTCASE_ITER_METRICS ADD CONSTRAINT F_TESTITER_MET_PK PRIMARY KEY (TSTCASE_METRIC_ID) ON VSTR_IDX
  6781. GO
  6782.  
  6783. ALTER TABLE RIDW.F_TESTCASE_REQUI_METRICS ADD CONSTRAINT F_TPJR_MET_PK PRIMARY KEY (TSTCASE_METRIC_ID) ON VSTR_IDX
  6784. GO
  6785.  
  6786. ALTER TABLE RIDW.F_TEXT_FILE_VERSION_DT_METRICS ADD CONSTRAINT F_TFVD_MET_PK PRIMARY KEY (SLOC_METRICS_ID) ON VSTR_IDX
  6787. GO
  6788.  
  6789. ALTER TABLE RIDW.F_TEXT_FILE_VERSREQ_DT_METRICS ADD CONSTRAINT F_TFVRD_MET_PK PRIMARY KEY (SLOC_METRICS_ID) ON VSTR_IDX
  6790. GO
  6791.  
  6792. ALTER TABLE RIDW.F_TEXT_FILE_VER_REQU_METRICS ADD CONSTRAINT F_TXFVR_MET_PK PRIMARY KEY (SLOC_METRICS_ID) ON VSTR_IDX
  6793. GO
  6794.  
  6795. ALTER TABLE RIDW.F_ACTIVITY_COMP_METRICS ADD CONSTRAINT F_ACTCMPM_PK PRIMARY KEY (ACTIVITY_METRICS_ID) ON VSTR_IDX
  6796. GO
  6797.  
  6798. ALTER TABLE RIDW.F_C_ACTIVITY_COMP_METRICS ADD CONSTRAINT F_C_ACTCMPM_PK PRIMARY KEY (ACTIVITY_METRICS_ID) ON VSTR_IDX
  6799. GO
  6800.  
  6801. ALTER TABLE RIDW.F_ACT_COM_CREATION_DT_METRICS ADD CONSTRAINT F_ACTCOMCRDM_PK PRIMARY KEY (ACTIVITYCRD_METRICS_ID) ON VSTR_IDX
  6802. GO
  6803.  
  6804. ALTER TABLE RIDW.F_TEXT_FILE_VER_BSLN_METRICS ADD CONSTRAINT F_TFVBSLN_MET_PK PRIMARY KEY (SLOC_METRICS_ID) ON VSTR_IDX
  6805. GO
  6806.  
  6807. ALTER TABLE RIDW.F_C_TEXT_FILE_VERBSLN_METRICS ADD CONSTRAINT F_CTXFVBSLN_PK PRIMARY KEY (SLOC_METRICS_ID) ON VSTR_IDX
  6808. GO
  6809.  
  6810. ALTER TABLE RIDW.H_ACTIVITY_ITER_METRICS ADD CONSTRAINT H_ACT_ITER_MET_PK PRIMARY KEY (ACTIVITY_ID,ACTIVITY_METRICS_ID) ON VSTR_IDX
  6811. GO
  6812.  
  6813. ALTER TABLE RIDW.H_ACTIVITY_REQ_METRICS ADD CONSTRAINT H_ACT_REQ_MET_PK PRIMARY KEY (ACTIVITY_METRICS_ID,ACTIVITY_ID) ON VSTR_IDX
  6814. GO
  6815.  
  6816. ALTER TABLE RIDW.H_ACT_ITER_CREATION_DT_METRICS ADD CONSTRAINT H_AICRD_MET_PK PRIMARY KEY (ACTIVITYCRD_METRICS_ID,ACTIVITY_ID) ON VSTR_IDX
  6817. GO
  6818.  
  6819. ALTER TABLE RIDW.H_ACT_REQUI_CREAT_DT_METRICS ADD CONSTRAINT H_ARCRD_MET_PK PRIMARY KEY (ACTIVITYCRD_METRICS_ID,ACTIVITY_ID) ON VSTR_IDX
  6820. GO
  6821.  
  6822. ALTER TABLE RIDW.H_BUILD_REQUI_ATTEMPTS ADD CONSTRAINT H_BRQA_PK PRIMARY KEY (BUILD_METRIC_ID,BUILD_ID) ON VSTR_IDX
  6823. GO
  6824.  
  6825. ALTER TABLE RIDW.H_BUILD_REQUI_FAIL ADD CONSTRAINT H_BRQF_PK PRIMARY KEY (BUILD_METRIC_ID,BUILD_ID) ON VSTR_IDX
  6826. GO
  6827.  
  6828. ALTER TABLE RIDW.H_BUILD_REQUI_PASS ADD CONSTRAINT H_BRQP_PK PRIMARY KEY (BUILD_METRIC_ID,BUILD_ID) ON VSTR_IDX
  6829. GO
  6830.  
  6831. ALTER TABLE RIDW.H_BUILD_REQU_ATTEMPTS ADD CONSTRAINT H_BRQUA_PK PRIMARY KEY (BUILD_METRIC_ID,BUILD_ID) ON VSTR_IDX
  6832. GO
  6833.  
  6834. ALTER TABLE RIDW.H_BUILD_REQU_EXEC_DT_MET_TOT ADD CONSTRAINT H_BREDT_MET_PK PRIMARY KEY (BUILD_EXEC_METRIC_ID,BUILD_ID) ON VSTR_IDX
  6835. GO
  6836.  
  6837. ALTER TABLE RIDW.H_BUILD_REQU_FAIL ADD CONSTRAINT H_BLD_REQU_FAIL_PK PRIMARY KEY (BUILD_METRIC_ID,BUILD_ID) ON VSTR_IDX
  6838. GO
  6839.  
  6840. ALTER TABLE RIDW.H_BUILD_REQU_PASS ADD CONSTRAINT H_BLD_REQU_PASS_PK PRIMARY KEY (BUILD_METRIC_ID,BUILD_ID) ON VSTR_IDX
  6841. GO
  6842.  
  6843. ALTER TABLE RIDW.H_EXECRESPOINTS_ITER_METRICS ADD CONSTRAINT H_EXPI_MET_PK PRIMARY KEY (EXECRES_METRIC_ID,EXECUTION_RESULT_ID) ON VSTR_IDX
  6844. GO
  6845.  
  6846. ALTER TABLE RIDW.H_EXECUTION_RES_ITER_METRICS ADD CONSTRAINT H_ERI_MET_PK PRIMARY KEY (EXERES_METRICS_ID,EXECUTION_RESULT_ID) ON VSTR_IDX
  6847. GO
  6848.  
  6849. ALTER TABLE RIDW.H_EXEC_WORKITEM_ITER_METRICS ADD CONSTRAINT HEWI_MET_PK PRIMARY KEY (EXECWORKITEM_METRIC_ID,EXECWORKITEM_ID) ON VSTR_IDX
  6850. GO
  6851.  
  6852. ALTER TABLE RIDW.H_EXEC_WORKITEM_REQU_METRICS ADD CONSTRAINT HEWR_MET_PK PRIMARY KEY (EXECWORKITEM_METRIC_ID,EXECWORKITEM_ID) ON VSTR_IDX
  6853. GO
  6854.  
  6855. ALTER TABLE RIDW.H_REQUEST_AGING_TPLN_MAX ADD CONSTRAINT H_RAT_MX_PK PRIMARY KEY (AGING_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6856. GO
  6857.  
  6858. ALTER TABLE RIDW.H_REQUEST_AGING_TPLN_MIN ADD CONSTRAINT H_RAT_MI_PK PRIMARY KEY (AGING_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6859. GO
  6860.  
  6861. ALTER TABLE RIDW.H_REQUEST_AGING_TPLN_TOTAL ADD CONSTRAINT H_RAT_TO_PK PRIMARY KEY (AGING_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6862. GO
  6863.  
  6864. ALTER TABLE RIDW.H_TASK_CREATE_COMP_DT_METRICS ADD CONSTRAINT H_TCRCMD_MET_PK PRIMARY KEY (TASKCRD_METRICS_ID,TASK_ID) ON VSTR_IDX
  6865. GO
  6866.  
  6867. ALTER TABLE RIDW.H_REQUEST_CUST_METRICS_BLOCK ADD CONSTRAINT H_RCBL_MET_PK PRIMARY KEY (REQUEST_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6868. GO
  6869.  
  6870. ALTER TABLE RIDW.H_REQUEST_CUST_METRICS_TOTAL ADD CONSTRAINT H_RCTO_MET_PK PRIMARY KEY (REQUEST_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6871. GO
  6872.  
  6873. ALTER TABLE RIDW.H_REQUEST_REQUI_FAIL_METRICS ADD CONSTRAINT H_RRF_MET_PK PRIMARY KEY (REQFAIL_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6874. GO
  6875.  
  6876. ALTER TABLE RIDW.H_REQUEST_REQUI_METRICS_BLOCK ADD CONSTRAINT H_RRIBL_MET_PK PRIMARY KEY (REQUEST_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6877. GO
  6878.  
  6879. ALTER TABLE RIDW.H_REQUEST_REQUI_METRICS_TOTAL ADD CONSTRAINT H_RRITO_MET_PK PRIMARY KEY (REQUEST_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6880. GO
  6881.  
  6882. ALTER TABLE RIDW.H_REQUEST_RES_REQUI_DT_METRICS ADD CONSTRAINT H_RRRQD_MET_PK PRIMARY KEY (REQDT_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6883. GO
  6884.  
  6885. ALTER TABLE RIDW.H_REQUEST_RES_TPLN_DT_METRICS ADD CONSTRAINT H_RRETD_MET_PK PRIMARY KEY (REQDT_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6886. GO
  6887.  
  6888. ALTER TABLE RIDW.H_REQUEST_TPLN_FAIL_METRICS ADD CONSTRAINT H_RTF_MET_PK PRIMARY KEY (REQFAIL_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6889. GO
  6890.  
  6891. ALTER TABLE RIDW.H_REQUEST_TPLN_METRICS_BLOCK ADD CONSTRAINT H_RQTPB_MET_PK PRIMARY KEY (REQUEST_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6892. GO
  6893.  
  6894. ALTER TABLE RIDW.H_REQUEST_TPLN_METRICS_TOTAL ADD CONSTRAINT H_RQTPT_MET_PK PRIMARY KEY (REQUEST_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6895. GO
  6896.  
  6897. ALTER TABLE RIDW.H_REQUEST_TPLN_TURNAROUND_MAX ADD CONSTRAINT H_RQTPT_MAX_PK PRIMARY KEY (TURNAROUND_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6898. GO
  6899.  
  6900. ALTER TABLE RIDW.H_REQUEST_TPLN_TURNAROUND_MIN ADD CONSTRAINT H_RQTPT_MIN_PK PRIMARY KEY (TURNAROUND_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6901. GO
  6902.  
  6903. ALTER TABLE RIDW.H_REQUEST_TPLN_TURNAROUND_TOT ADD CONSTRAINT H_RQTPT_TOT_PK PRIMARY KEY (TURNAROUND_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6904. GO
  6905.  
  6906. ALTER TABLE RIDW.H_REQUE_CLOSE_REQUI_DT_METRICS ADD CONSTRAINT H_RCRUD_MET_PK PRIMARY KEY (REQCDT_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6907. GO
  6908.  
  6909. ALTER TABLE RIDW.H_REQUE_CLOSE_TPLN_DT_METRICS ADD CONSTRAINT H_RCTPD_MET_PK PRIMARY KEY (REQCDT_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6910. GO
  6911.  
  6912. ALTER TABLE RIDW.H_REQUI_TCASE_METRICS_CHANGES ADD CONSTRAINT H_RTCCH_MET_PK PRIMARY KEY (REQ_METRIC_ID,REQUIREMENT_ID) ON VSTR_IDX
  6913. GO
  6914.  
  6915. ALTER TABLE RIDW.H_REQUI_TCASE_METRICS_TOTAL ADD CONSTRAINT H_RTCT_MET_PK PRIMARY KEY (REQ_METRIC_ID,REQUIREMENT_ID) ON VSTR_IDX
  6916. GO
  6917.  
  6918. ALTER TABLE RIDW.H_REQUI_TPLN_METRICS_CHANGES ADD CONSTRAINT H_RTPCH_MET_PK PRIMARY KEY (REQ_METRIC_ID,REQUIREMENT_ID) ON VSTR_IDX
  6919. GO
  6920.  
  6921. ALTER TABLE RIDW.H_REQUI_TPLN_METRICS_TOTAL ADD CONSTRAINT H_RTPTO_MET_PK PRIMARY KEY (REQ_METRIC_ID,REQUIREMENT_ID) ON VSTR_IDX
  6922. GO
  6923.  
  6924. ALTER TABLE RIDW.H_REQU_CREATI_REQUI_DT_METRICS ADD CONSTRAINT H_RCRD_MET_PK PRIMARY KEY (REQDT_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6925. GO
  6926.  
  6927. ALTER TABLE RIDW.H_REQU_CREATI_TPLN_DT_METRICS ADD CONSTRAINT H_RCTTPD_MET_PK PRIMARY KEY (REQDT_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  6928. GO
  6929.  
  6930. ALTER TABLE RIDW.H_TASK_CLOSE_COMP_DT_METRICS ADD CONSTRAINT H_TCCMD_MET_PK PRIMARY KEY (TASKCLS_METRICS_ID,TASK_ID) ON VSTR_IDX
  6931. GO
  6932.  
  6933. ALTER TABLE RIDW.H_TASK_COMP_METRICS ADD CONSTRAINT H_TASK_COMP_MET_PK PRIMARY KEY (TASK_METRICS_ID,TASK_ID) ON VSTR_IDX
  6934. GO
  6935.  
  6936. ALTER TABLE RIDW.H_TESTCASE_ITER_METRICS ADD CONSTRAINT H_TCI_MET_PK PRIMARY KEY (TSTCASE_METRIC_ID,TESTCASE_ID) ON VSTR_IDX
  6937. GO
  6938.  
  6939. ALTER TABLE RIDW.H_TESTCASE_REQUI_METRICS ADD CONSTRAINT H_TPJR_MET_PK PRIMARY KEY (TSTCASE_METRIC_ID,TESTCASE_ID) ON VSTR_IDX
  6940. GO
  6941.  
  6942. ALTER TABLE RIDW.H_TEXT_FILE_VERS_DT_METRICS_CH ADD CONSTRAINT H_TXFVDCH_MET_PK PRIMARY KEY (SLOC_METRICS_ID,FILE_VERSION_ID) ON VSTR_IDX
  6943. GO
  6944.  
  6945. ALTER TABLE RIDW.H_TEXT_FILE_VERS_DT_METRICS_TO ADD CONSTRAINT H_TXFVDTO_MET_PK PRIMARY KEY (SLOC_METRICS_ID,FILE_VERSION_ID) ON VSTR_IDX
  6946. GO
  6947.  
  6948. ALTER TABLE RIDW.H_TEXT_FILE_VER_REQ_METRICS_CH ADD CONSTRAINT H_TXFVRCH_MET_PK PRIMARY KEY (SLOC_METRICS_ID,FILE_VERSION_ID) ON VSTR_IDX
  6949. GO
  6950.  
  6951. ALTER TABLE RIDW.H_TEXT_FILE_VER_REQ_METRICS_TO ADD CONSTRAINT H_TXFVRTO_MET_PK PRIMARY KEY (SLOC_METRICS_ID,FILE_VERSION_ID) ON VSTR_IDX
  6952. GO
  6953.  
  6954. ALTER TABLE RIDW.H_TXT_FILE_VERSREQ_DT_METR_CH ADD CONSTRAINT H_TXFVRDC_MET_PK PRIMARY KEY (SLOC_METRICS_ID,FILE_VERSION_ID) ON VSTR_IDX
  6955. GO
  6956.  
  6957. ALTER TABLE RIDW.H_TXT_FILE_VERSREQ_DT_METR_TO ADD CONSTRAINT H_TXFVRDT_MET_PK PRIMARY KEY (SLOC_METRICS_ID,FILE_VERSION_ID) ON VSTR_IDX
  6958. GO
  6959.  
  6960. ALTER TABLE RIDW.H_ACTIVITY_COMP_METRICS ADD CONSTRAINT H_ACTCOMPM_PK PRIMARY KEY (ACTIVITY_METRICS_ID,ACTIVITY_ID) ON VSTR_IDX
  6961. GO
  6962.  
  6963. ALTER TABLE RIDW.H_ACT_COM_CREATION_DT_METRICS ADD CONSTRAINT H_ACTCOMCRDM_PK PRIMARY KEY (ACTIVITYCRD_METRICS_ID,ACTIVITY_ID) ON VSTR_IDX
  6964. GO
  6965.  
  6966. ALTER TABLE RIDW.H_TEXT_FILE_VERBSLN_METRICS_CH ADD CONSTRAINT H_TFVBSLNCH_PK PRIMARY KEY (SLOC_METRICS_ID,FILE_VERSION_ID) ON VSTR_IDX
  6967. GO
  6968.  
  6969. ALTER TABLE RIDW.H_TEXT_FILE_VERBSLN_METRICS_TO ADD CONSTRAINT H_TFVBSLNT_PK PRIMARY KEY (SLOC_METRICS_ID,FILE_VERSION_ID) ON VSTR_IDX
  6970. GO
  6971.  
  6972. ALTER TABLE RIDW.F_MISSING_TIMESHEET_METRICS ADD CONSTRAINT F_MISSTIMSH_PK PRIMARY KEY (TIMESHEET_METRICS_ID) ON VSTR_IDX
  6973. GO
  6974.  
  6975. ALTER TABLE RIDW.H_MISSING_TIMESHEET_METRICS ADD CONSTRAINT H_MISSTIMSH_PK PRIMARY KEY (TIMESHEET_METRICS_ID,ACTIVITY_ID) ON VSTR_IDX
  6976. GO
  6977.  
  6978. ALTER TABLE RIDW.F_TIMESHEET_METRICS ADD CONSTRAINT F_TIMESH_PK PRIMARY KEY (TIMESHEET_METRICS_ID) ON VSTR_IDX
  6979. GO
  6980.  
  6981. ALTER TABLE RIDW.H_TIMESHEET_METRICS ADD CONSTRAINT H_TIMESH_PK PRIMARY KEY (TIMESHEET_METRICS_ID,ACTIVITY_ID) ON VSTR_IDX
  6982. GO
  6983.  
  6984. ALTER TABLE RIDW.F_TIMESHEET_TIMECODE_METRICS ADD CONSTRAINT F_TIMESHTC_PK PRIMARY KEY (TIMESHEET_METRICS_ID) ON VSTR_IDX
  6985. GO
  6986.  
  6987. ALTER TABLE RIDW.H_TIMESHEET_TIMECODE_METRICS ADD CONSTRAINT H_TIMESHTC_PK PRIMARY KEY (TIMESHEET_METRICS_ID,ACTIVITY_ID) ON VSTR_IDX
  6988. GO
  6989.  
  6990. ALTER TABLE RIDW.F_WK_PROJ_RESDEMSUPP_METRICS ADD CONSTRAINT F_WPJRESDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID) ON VSTR_IDX
  6991. GO
  6992.  
  6993. ALTER TABLE RIDW.F_MO_PROJ_RESDEMSUPP_METRICS ADD CONSTRAINT F_MPJRESDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID) ON VSTR_IDX
  6994. GO
  6995.  
  6996. ALTER TABLE RIDW.F_WK_RESOURCE_UTIL_METRICS ADD CONSTRAINT F_WRESUTILMET_PK PRIMARY KEY (F_RESUTIL_MET_ID) ON VSTR_IDX
  6997. GO
  6998.  
  6999. ALTER TABLE RIDW.F_MO_RESOURCE_UTIL_METRICS ADD CONSTRAINT F_MRESUTILMET_PK PRIMARY KEY (F_RESUTIL_MET_ID) ON VSTR_IDX
  7000. GO
  7001.  
  7002. ALTER TABLE RIDW.F_RISK_METRICS ADD CONSTRAINT F_RISKMET_PK PRIMARY KEY (F_RISKMET_ID) ON VSTR_IDX
  7003. GO
  7004.  
  7005. ALTER TABLE RIDW.F_C_RISK_METRICS ADD CONSTRAINT F_C_RISKMET_PK PRIMARY KEY (F_RISKMET_ID) ON VSTR_IDX
  7006. GO
  7007.  
  7008. ALTER TABLE RIDW.H_WK_PROJ_RESDEMSUPP_METRICS ADD CONSTRAINT H_WPJRESDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID,PROJECT_ALLOCATION_ID) ON VSTR_IDX
  7009. GO
  7010.  
  7011. ALTER TABLE RIDW.H_MO_PROJ_RESDEMSUPP_METRICS ADD CONSTRAINT H_MPJRESDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID,PROJECT_ALLOCATION_ID) ON VSTR_IDX
  7012. GO
  7013.  
  7014. ALTER TABLE RIDW.H_WK_RESOURCE_UTIL_METRICS ADD CONSTRAINT H_WRESUTILMET_PK PRIMARY KEY (F_RESUTIL_MET_ID,RESOURCE_ID) ON VSTR_IDX
  7015. GO
  7016.  
  7017. ALTER TABLE RIDW.H_MO_RESOURCE_UTIL_METRICS ADD CONSTRAINT H_MRESUTILMET_PK PRIMARY KEY (F_RESUTIL_MET_ID,RESOURCE_ID) ON VSTR_IDX
  7018. GO
  7019.  
  7020. ALTER TABLE RIDW.H_RISK_METRICS ADD CONSTRAINT H_RISKMET_PK PRIMARY KEY (F_RISKMET_ID,RISK_ID) ON VSTR_IDX
  7021. GO
  7022.  
  7023. ALTER TABLE RIDW.D_RISK ADD CONSTRAINT D_RISK_PK PRIMARY KEY (RISK_ID) ON VSTR_IDX
  7024. GO
  7025.  
  7026. ALTER TABLE RIDW.D_RISK_STATE ADD CONSTRAINT D_RISKSTATE_PK PRIMARY KEY (STATE_ID) ON VSTR_IDX
  7027. GO
  7028.  
  7029. ALTER TABLE RIDW.D_PROBABILITY_RANK ADD CONSTRAINT D_PROBRNK_PK PRIMARY KEY (PROBABILITY_RANK_ID) ON VSTR_IDX
  7030. GO
  7031.  
  7032. ALTER TABLE RIDW.D_IMPACT_RANK ADD CONSTRAINT D_IMPRNK_PK PRIMARY KEY (IMPACT_RANK_ID) ON VSTR_IDX
  7033. GO
  7034.  
  7035. ALTER TABLE RIDW.D_PROBABILITY_COST_RANK ADD CONSTRAINT D_PROBCSTRNK_PK PRIMARY KEY (PROBABILITY_COST_RANK_ID) ON VSTR_IDX
  7036. GO
  7037.  
  7038. ALTER TABLE RIDW.D_SCORE_RANK ADD CONSTRAINT D_SCORERNK_PK PRIMARY KEY (SCORE_RANK_ID) ON VSTR_IDX
  7039. GO
  7040.  
  7041. ALTER TABLE RIDW.F_TASK_ITER_VARIANCE_METRICS ADD CONSTRAINT FTSKITVARMET_PK PRIMARY KEY (F_TASKVAR_MET_ID) ON VSTR_IDX
  7042. GO
  7043.  
  7044. ALTER TABLE RIDW.F_TASK_PROJ_VARIANCE_METRICS ADD CONSTRAINT FTSKPRJVARMET_PK PRIMARY KEY (F_TASKVAR_MET_ID) ON VSTR_IDX
  7045. GO
  7046.  
  7047. ALTER TABLE RIDW.F_C_TASK_ITE_VARIANCE_METRICS ADD CONSTRAINT FCTSKITVARMET_PK PRIMARY KEY (F_TASKVAR_MET_ID) ON VSTR_IDX
  7048. GO
  7049.  
  7050. ALTER TABLE RIDW.F_C_TASK_PRO_VARIANCE_METRICS ADD CONSTRAINT FCTSKPRVARMET_PK PRIMARY KEY (F_TASKVAR_MET_ID) ON VSTR_IDX
  7051. GO
  7052.  
  7053. ALTER TABLE RIDW.H_TASK_ITER_VARIANCE_METRICS ADD CONSTRAINT HTSKITVARMET_PK PRIMARY KEY (F_TASKVAR_MET_ID,TASK_ID) ON VSTR_IDX
  7054. GO
  7055.  
  7056. ALTER TABLE RIDW.H_TASK_PROJ_VARIANCE_METRICS ADD CONSTRAINT HTSKPRJVARME_PK PRIMARY KEY (F_TASKVAR_MET_ID,TASK_ID) ON VSTR_IDX
  7057. GO
  7058.  
  7059. ALTER TABLE RIDW.D_OPERATING_TERRITORY ADD CONSTRAINT D_OPTERRITORY_PK PRIMARY KEY (TERRITORY_ID) ON VSTR_IDX
  7060. GO
  7061.  
  7062. ALTER TABLE RIDW.D_COUNTRY ADD CONSTRAINT D_COUNTRY_PK PRIMARY KEY (COUNTRY_ID) ON VSTR_IDX
  7063. GO
  7064.  
  7065. ALTER TABLE RIDW.D_PROVINCE_STATE ADD CONSTRAINT D_PROVSTATE_PK PRIMARY KEY (PROVINCE_STATE_ID) ON VSTR_IDX
  7066. GO
  7067.  
  7068. ALTER TABLE RIDW.D_CITY ADD CONSTRAINT D_CITY_PK PRIMARY KEY (CITY_ID) ON VSTR_IDX
  7069. GO
  7070.  
  7071. ALTER TABLE RIDW.D_ORGANIZATION ADD CONSTRAINT D_ORGANIZATION_PK PRIMARY KEY (ORGANIZATION_ID) ON VSTR_IDX
  7072. GO
  7073.  
  7074. ALTER TABLE RIDW.F_WK_SCPROJ_RESDEMSUP_METRICS ADD CONSTRAINT F_WSCPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID) ON VSTR_IDX
  7075. GO
  7076.  
  7077. ALTER TABLE RIDW.H_WK_SCPROJ_RESDEMSUP_METRICS ADD CONSTRAINT H_WSCPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID,PROJECT_ALLOCATION_ID) ON VSTR_IDX
  7078. GO
  7079.  
  7080. ALTER TABLE RIDW.F_WK_SKPROJ_RESDEMSUP_METRICS ADD CONSTRAINT F_WSKPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID) ON VSTR_IDX
  7081. GO
  7082.  
  7083. ALTER TABLE RIDW.H_WK_SKPROJ_RESDEMSUP_METRICS ADD CONSTRAINT H_WSKPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID,PROJECT_ALLOCATION_ID) ON VSTR_IDX
  7084. GO
  7085.  
  7086. ALTER TABLE RIDW.F_WK_COPROJ_RESDEMSUP_METRICS ADD CONSTRAINT F_WCOPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID) ON VSTR_IDX
  7087. GO
  7088.  
  7089. ALTER TABLE RIDW.H_WK_COPROJ_RESDEMSUP_METRICS ADD CONSTRAINT H_WCOPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID,PROJECT_ALLOCATION_ID) ON VSTR_IDX
  7090. GO
  7091.  
  7092. ALTER TABLE RIDW.F_MO_SCPROJ_RESDEMSUP_METRICS ADD CONSTRAINT F_MSCPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID) ON VSTR_IDX
  7093. GO
  7094.  
  7095. ALTER TABLE RIDW.H_MO_SCPROJ_RESDEMSUP_METRICS ADD CONSTRAINT H_MSCPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID,PROJECT_ALLOCATION_ID) ON VSTR_IDX
  7096. GO
  7097.  
  7098. ALTER TABLE RIDW.F_MO_SKPROJ_RESDEMSUP_METRICS ADD CONSTRAINT F_MSKPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID) ON VSTR_IDX
  7099. GO
  7100.  
  7101. ALTER TABLE RIDW.H_MO_SKPROJ_RESDEMSUP_METRICS ADD CONSTRAINT H_MSKPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID,PROJECT_ALLOCATION_ID) ON VSTR_IDX
  7102. GO
  7103.  
  7104. ALTER TABLE RIDW.F_MO_COPROJ_RESDEMSUP_METRICS ADD CONSTRAINT F_MCOPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID) ON VSTR_IDX
  7105. GO
  7106.  
  7107. ALTER TABLE RIDW.H_MO_COPROJ_RESDEMSUP_METRICS ADD CONSTRAINT H_MCOPRDSMET_PK PRIMARY KEY (F_PROJDS_MET_ID,PROJECT_ALLOCATION_ID) ON VSTR_IDX
  7108. GO
  7109.  
  7110. ALTER TABLE RIDW.F_WK_SCRESOURCE_UTIL_METRICS ADD CONSTRAINT F_WSCRESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID) ON VSTR_IDX
  7111. GO
  7112.  
  7113. ALTER TABLE RIDW.H_WK_SCRESOURCE_UTIL_METRICS ADD CONSTRAINT H_WSCRESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID,RESOURCE_ID) ON VSTR_IDX
  7114. GO
  7115.  
  7116. ALTER TABLE RIDW.F_WK_SKRESOURCE_UTIL_METRICS ADD CONSTRAINT F_WSKRESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID) ON VSTR_IDX
  7117. GO
  7118.  
  7119. ALTER TABLE RIDW.H_WK_SKRESOURCE_UTIL_METRICS ADD CONSTRAINT H_WSKRESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID,RESOURCE_ID) ON VSTR_IDX
  7120. GO
  7121.  
  7122. ALTER TABLE RIDW.F_WK_CORESOURCE_UTIL_METRICS ADD CONSTRAINT F_WCORESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID) ON VSTR_IDX
  7123. GO
  7124.  
  7125. ALTER TABLE RIDW.H_WK_CORESOURCE_UTIL_METRICS ADD CONSTRAINT H_WCORESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID,RESOURCE_ID) ON VSTR_IDX
  7126. GO
  7127.  
  7128. ALTER TABLE RIDW.F_MO_SCRESOURCE_UTIL_METRICS ADD CONSTRAINT F_MSCRESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID) ON VSTR_IDX
  7129. GO
  7130.  
  7131. ALTER TABLE RIDW.H_MO_SCRESOURCE_UTIL_METRICS ADD CONSTRAINT H_MSCRESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID,RESOURCE_ID) ON VSTR_IDX
  7132. GO
  7133.  
  7134. ALTER TABLE RIDW.F_MO_SKRESOURCE_UTIL_METRICS ADD CONSTRAINT F_MSKRESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID) ON VSTR_IDX
  7135. GO
  7136.  
  7137. ALTER TABLE RIDW.H_MO_SKRESOURCE_UTIL_METRICS ADD CONSTRAINT H_MSKRESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID,RESOURCE_ID) ON VSTR_IDX
  7138. GO
  7139.  
  7140. ALTER TABLE RIDW.F_MO_CORESOURCE_UTIL_METRICS ADD CONSTRAINT F_MCORESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID) ON VSTR_IDX
  7141. GO
  7142.  
  7143. ALTER TABLE RIDW.H_MO_CORESOURCE_UTIL_METRICS ADD CONSTRAINT H_MCORESUTMET_PK PRIMARY KEY (F_RESUTIL_MET_ID,RESOURCE_ID) ON VSTR_IDX
  7144. GO
  7145.  
  7146. ALTER TABLE RIDW.F_STORY_METRICS ADD CONSTRAINT F_STORY_METRIC_PK PRIMARY KEY (F_STORY_METRIC_ID) ON VSTR_IDX
  7147. GO
  7148.  
  7149. ALTER TABLE RIDW.F_C_STORY_METRICS ADD CONSTRAINT F_CSTORY_METRIC_PK PRIMARY KEY (F_STORY_METRIC_ID) ON VSTR_IDX
  7150. GO
  7151.  
  7152. ALTER TABLE RIDW.H_STORY_METRICS ADD CONSTRAINT HSTORYPIONTS_PK PRIMARY KEY (F_STORY_METRIC_ID, REQUEST_ID) ON VSTR_IDX
  7153. GO
  7154.  
  7155. ALTER TABLE RIDW.F_REQUEST_FAILURE_DT_METRICS ADD CONSTRAINT F_REQFAIL_DTM_PK PRIMARY KEY (REQFAIL_METRIC_ID) ON VSTR_IDX
  7156. GO
  7157.  
  7158. ALTER TABLE RIDW.H_REQUEST_FAILURE_DT_METRICS ADD CONSTRAINT H_REQFAIL_DTM_PK PRIMARY KEY (REQFAIL_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  7159. GO
  7160.  
  7161. ALTER TABLE RIDW.F_REQUEST_TPLN_FAILDT_METRICS ADD CONSTRAINT F_REQTPLN_FDT_PK PRIMARY KEY (REQFAIL_METRIC_ID) ON VSTR_IDX
  7162. GO
  7163.  
  7164. ALTER TABLE RIDW.H_REQUEST_TPLN_FAILDT_METRICS ADD CONSTRAINT H_REQTPLN_FDT_PK PRIMARY KEY (REQFAIL_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  7165. GO
  7166.  
  7167. ALTER TABLE RIDW.F_REQUEST_REQUI_FAILDT_METRICS ADD CONSTRAINT F_REQREQUI_FDT_PK PRIMARY KEY (REQFAIL_METRIC_ID) ON VSTR_IDX
  7168. GO
  7169.  
  7170. ALTER TABLE RIDW.H_REQUEST_REQUI_FAILDT_METRICS ADD CONSTRAINT H_REQREQUI_FDT_PK PRIMARY KEY (REQFAIL_METRIC_ID,REQUEST_ID) ON VSTR_IDX
  7171. GO
  7172.  
  7173. ALTER TABLE RIDW.F_REQUIR_MODIF_DT_METRICS ADD CONSTRAINT F_REQMODI_DTM_PK PRIMARY KEY (REQ_METRIC_ID) ON VSTR_IDX
  7174. GO
  7175.  
  7176. ALTER TABLE RIDW.H_REQUIR_MODIF_DT_METRICS ADD CONSTRAINT H_REQMODI_DTM_PK PRIMARY KEY (REQ_METRIC_ID,REQUIREMENT_ID) ON VSTR_IDX
  7177. GO
  7178.  
  7179. ALTER TABLE RIDW.F_PROJECT_FINANCIAL_METRICS ADD CONSTRAINT F_PRJFINMET_PK PRIMARY KEY (F_PROJFIN_METRIC_ID) ON VSTR_IDX
  7180. GO
  7181.  
  7182. ALTER TABLE RIDW.F_C_PROJECT_FINANCIAL_METRICS ADD CONSTRAINT F_CPRJFINMET_PK PRIMARY KEY (F_PROJFIN_METRIC_ID) ON VSTR_IDX
  7183. GO
  7184.  
  7185. ALTER TABLE RIDW.H_PROJECT_FINANCIAL_METRICS ADD CONSTRAINT H_PRJFINMET_PK PRIMARY KEY (F_PROJFIN_METRIC_ID,PROJECT_ID) ON VSTR_IDX
  7186. GO
  7187.  
  7188. ALTER TABLE RIDW.F_TP_PROJECT_FINANCIAL_METRICS ADD CONSTRAINT F_TPPRJFINMET_PK PRIMARY KEY (F_TPPROJFIN_METRIC_ID) ON VSTR_IDX
  7189. GO
  7190.  
  7191. ALTER TABLE RIDW.H_TP_PROJECT_FINANCIAL_METRICS ADD CONSTRAINT H_TPPRJFINMET_PK PRIMARY KEY (F_TPPROJFIN_METRIC_ID,PROJECT_ID) ON VSTR_IDX
  7192. GO
  7193.  
  7194. ALTER TABLE RIDW.D_ASSET ADD CONSTRAINT D_ASSET_PK PRIMARY KEY (ASSET_ID) ON VSTR_IDX
  7195. GO
  7196.  
  7197. ALTER TABLE RIDW.D_ASSET_TYPE ADD CONSTRAINT D_ASSETTP_PK PRIMARY KEY (ASSET_TYPE_ID) ON VSTR_IDX
  7198. GO
  7199.  
  7200. ALTER TABLE RIDW.D_ACTION_TYPE ADD CONSTRAINT D_ACTION_TYPE_PK PRIMARY KEY (ACTION_TYPE_ID) ON VSTR_IDX
  7201. GO
  7202.  
  7203. ALTER TABLE RIDW.F_ASSET_UTIL_DT_METRICS ADD CONSTRAINT F_ASTUTDT_PK PRIMARY KEY (F_ASSET_METRIC_ID) ON VSTR_IDX
  7204. GO
  7205.  
  7206. ALTER TABLE RIDW.F_LICENSE_DT_METRICS ADD CONSTRAINT F_LICDTMET_PK PRIMARY KEY (F_LICENSE_METRIC_ID) ON VSTR_IDX
  7207. GO
  7208.  
  7209. ALTER TABLE RIDW.D_REQUEST_PRIORITY ADD CONSTRAINT D_REQPRIORITY_PK PRIMARY KEY (PRIORITY_ID) ON VSTR_IDX
  7210. GO
  7211.  
  7212. ALTER TABLE RIDW.D_REQUEST_SEVERITY ADD CONSTRAINT D_REQSEVERITY_PK PRIMARY KEY (SEVERITY_ID) ON VSTR_IDX
  7213. GO
  7214.  
  7215. ALTER TABLE RIDW.D_REQUEST_STATUS ADD CONSTRAINT D_REQSTATUS_PK PRIMARY KEY (STATUS_ID) ON VSTR_IDX
  7216. GO
  7217.  
  7218. ALTER TABLE RIDW.D_BALLOT_TAB ADD CONSTRAINT D_BALLTAB_PK PRIMARY KEY (BALLOT_TAB_ID) ON VSTR_IDX
  7219. GO
  7220.  
  7221. ALTER TABLE RIDW.F_SC_BALLOT_TAB_RESULT_METRICS ADD CONSTRAINT F_BALLTABMET_PK PRIMARY KEY (BALLOT_TAB_RESULT_METRICS_ID) ON VSTR_IDX
  7222. GO
  7223.  
  7224. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK1 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7225. GO
  7226.  
  7227. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK13 FOREIGN KEY (RELEASE_ID) REFERENCES RIDW.D_RELEASE (RELEASE_ID)
  7228. GO
  7229.  
  7230. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK14 FOREIGN KEY (FIXEDINRELEASE_ID) REFERENCES RIDW.D_RELEASE (RELEASE_ID)
  7231. GO
  7232.  
  7233. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK15 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7234. GO
  7235.  
  7236. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK16 FOREIGN KEY (REQUEST_CLASS_ID) REFERENCES RIDW.D_REQUEST_CLASSIFICATION (REQUEST_CLASS_ID)
  7237. GO
  7238.  
  7239. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK17 FOREIGN KEY (RESOURCE_ID) REFERENCES RIDW.D_RESOURCE (RESOURCE_ID)
  7240. GO
  7241.  
  7242. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK19 FOREIGN KEY (STATUS_ID) REFERENCES RIDW.D_REQUEST_STATUS (STATUS_ID)
  7243. GO
  7244.  
  7245. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK2 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_REQUEST_STATE (STATE_ID)
  7246. GO
  7247.  
  7248. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK20 FOREIGN KEY (CREATOR_ID) REFERENCES RIDW.D_RESOURCE(RESOURCE_ID)
  7249. GO
  7250.  
  7251. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK21 FOREIGN KEY (REQUEST_CATEGORY_ID) REFERENCES RIDW.D_REQUEST_CATEGORY (REQUEST_CATEGORY_ID)
  7252. GO
  7253.  
  7254. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK3 FOREIGN KEY (PRIORITY_ID) REFERENCES RIDW.D_REQUEST_PRIORITY (PRIORITY_ID)
  7255. GO
  7256.  
  7257. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK4 FOREIGN KEY (SEVERITY_ID) REFERENCES RIDW.D_REQUEST_SEVERITY (SEVERITY_ID)
  7258. GO
  7259.  
  7260. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK5 FOREIGN KEY (TEAM_ID) REFERENCES RIDW.D_TEAM (TEAM_ID)
  7261. GO
  7262.  
  7263. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK6 FOREIGN KEY (PLATFORM_ID) REFERENCES RIDW.D_PLATFORM (PLATFORM_ID)
  7264. GO
  7265.  
  7266. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK8 FOREIGN KEY (ITERATION_ID) REFERENCES RIDW.D_ITERATION (ITERATION_ID)
  7267. GO
  7268.  
  7269. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK9 FOREIGN KEY (COMPONENT_ID) REFERENCES RIDW.D_COMPONENT (COMPONENT_ID)
  7270. GO
  7271.  
  7272. ALTER TABLE RIDW.F_REQUEST_METRICS ADD CONSTRAINT F_REQUEST_FK10 FOREIGN KEY (REQUEST_TYPE_ID) REFERENCES RIDW.D_REQUEST_TYPE (REQUEST_TYPE_ID)
  7273. GO
  7274.  
  7275. ALTER TABLE RIDW.H_REQUEST_METRICS_TOTAL ADD CONSTRAINT HREQMETRIC_FK1 FOREIGN KEY (REQUEST_METRIC_ID) REFERENCES RIDW.F_REQUEST_METRICS (REQUEST_METRIC_ID) ON DELETE CASCADE
  7276. GO
  7277.  
  7278. ALTER TABLE RIDW.H_REQUEST_METRICS_TOTAL ADD CONSTRAINT HREQMETRIC_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIDW.D_REQUEST (REQUEST_ID) ON DELETE CASCADE
  7279. GO
  7280.  
  7281. ALTER TABLE RIDW.H_REQUEST_METRICS_BLOCKING ADD CONSTRAINT HREQMETRICB_FK1 FOREIGN KEY (REQUEST_METRIC_ID) REFERENCES RIDW.F_REQUEST_METRICS (REQUEST_METRIC_ID) ON DELETE CASCADE
  7282. GO
  7283.  
  7284. ALTER TABLE RIDW.H_REQUEST_METRICS_BLOCKING ADD CONSTRAINT HREQMETRICB_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIDW.D_REQUEST (REQUEST_ID) ON DELETE CASCADE
  7285. GO
  7286.  
  7287. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_REQ_AGD_FK1 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_REQUEST_STATE (STATE_ID)
  7288. GO
  7289.  
  7290. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_REQ_AGD_FK2 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7291. GO
  7292.  
  7293. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_REQ_AGD_FK3 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7294. GO
  7295.  
  7296. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_REQ_AGD_FK4 FOREIGN KEY (COMPONENT_ID) REFERENCES RIDW.D_COMPONENT (COMPONENT_ID)
  7297. GO
  7298.  
  7299. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_REQ_AGD_FK5 FOREIGN KEY (RESOURCE_ID) REFERENCES RIDW.D_RESOURCE (RESOURCE_ID)
  7300. GO
  7301.  
  7302. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_REQ_AGD_FK6 FOREIGN KEY (SEVERITY_ID) REFERENCES RIDW.D_REQUEST_SEVERITY (SEVERITY_ID)
  7303. GO
  7304.  
  7305. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_REQ_AGD_FK7 FOREIGN KEY (PRIORITY_ID) REFERENCES RIDW.D_REQUEST_PRIORITY (PRIORITY_ID)
  7306. GO
  7307.  
  7308. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_REQ_AGD_FK8 FOREIGN KEY (ITERATION_ID) REFERENCES RIDW.D_ITERATION (ITERATION_ID)
  7309. GO
  7310.  
  7311. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_REQ_AGD_FK9 FOREIGN KEY (REQUEST_CLASS_ID) REFERENCES RIDW.D_REQUEST_CLASSIFICATION (REQUEST_CLASS_ID)
  7312. GO
  7313.  
  7314. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_REQ_AGD_FK10 FOREIGN KEY (REQUEST_TYPE_ID) REFERENCES RIDW.D_REQUEST_TYPE (REQUEST_TYPE_ID)
  7315. GO
  7316.  
  7317. ALTER TABLE RIDW.F_REQUEST_AGING ADD CONSTRAINT F_REQ_AGD_FK11 FOREIGN KEY (CREATOR_ID) REFERENCES RIDW.D_RESOURCE(RESOURCE_ID)
  7318. GO
  7319.  
  7320. ALTER TABLE RIDW.H_REQUEST_AGING_MIN ADD CONSTRAINT HREQAGM_FK1 FOREIGN KEY (AGING_METRIC_ID) REFERENCES RIDW.F_REQUEST_AGING (AGING_METRIC_ID) ON DELETE CASCADE
  7321. GO
  7322.  
  7323. ALTER TABLE RIDW.H_REQUEST_AGING_MIN ADD CONSTRAINT HREQAGM_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIDW.D_REQUEST (REQUEST_ID) ON DELETE CASCADE
  7324. GO
  7325.  
  7326. ALTER TABLE RIDW.H_REQUEST_AGING_MAX ADD CONSTRAINT HREQAGX_FK1 FOREIGN KEY (AGING_METRIC_ID) REFERENCES RIDW.F_REQUEST_AGING (AGING_METRIC_ID) ON DELETE CASCADE
  7327. GO
  7328.  
  7329. ALTER TABLE RIDW.H_REQUEST_AGING_MAX ADD CONSTRAINT HREQAGX_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIDW.D_REQUEST (REQUEST_ID) ON DELETE CASCADE
  7330. GO
  7331.  
  7332. ALTER TABLE RIDW.H_REQUEST_AGING_TOTAL ADD CONSTRAINT HREQAG_FK1 FOREIGN KEY (AGING_METRIC_ID) REFERENCES RIDW.F_REQUEST_AGING (AGING_METRIC_ID) ON DELETE CASCADE
  7333. GO
  7334.  
  7335. ALTER TABLE RIDW.H_REQUEST_AGING_TOTAL ADD CONSTRAINT HREQAG_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIDW.D_REQUEST (REQUEST_ID) ON DELETE CASCADE
  7336. GO
  7337.  
  7338. ALTER TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT F_REQCDT_FK1 FOREIGN KEY (RELEASE_ID) REFERENCES RIDW.D_RELEASE (RELEASE_ID)
  7339. GO
  7340.  
  7341. ALTER TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT F_REQCDT_FK2 FOREIGN KEY (COMPONENT_ID) REFERENCES RIDW.D_COMPONENT (COMPONENT_ID)
  7342. GO
  7343.  
  7344. ALTER TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT F_REQCDT_FK3 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7345. GO
  7346.  
  7347. ALTER TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT F_REQCDT_FK5 FOREIGN KEY (REQUEST_CLASS_ID) REFERENCES RIDW.D_REQUEST_CLASSIFICATION (REQUEST_CLASS_ID)
  7348. GO
  7349.  
  7350. ALTER TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT F_REQCDT_FK7 FOREIGN KEY (STATUS_ID) REFERENCES RIDW.D_REQUEST_STATUS (STATUS_ID)
  7351. GO
  7352.  
  7353. ALTER TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT F_REQCDT_FK8 FOREIGN KEY (CUSTOMER_PRIORITY_ID) REFERENCES RIDW.D_CUSTOMER_PRIORITY (CUSTOMER_PRIORITY_ID)
  7354. GO
  7355.  
  7356. ALTER TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT F_REQCDT_FK9 FOREIGN KEY (CLOSED_DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7357. GO
  7358.  
  7359. ALTER TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT F_REQCDT_FK10 FOREIGN KEY (SEVERITY_ID) REFERENCES RIDW.D_REQUEST_SEVERITY (SEVERITY_ID)
  7360. GO
  7361.  
  7362. ALTER TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT F_REQCDT_FK11 FOREIGN KEY (REQUEST_TYPE_ID) REFERENCES RIDW.D_REQUEST_TYPE (REQUEST_TYPE_ID)
  7363. GO
  7364.  
  7365. ALTER TABLE RIDW.F_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT F_REQCDT_FK12 FOREIGN KEY (CREATOR_ID) REFERENCES RIDW.D_RESOURCE(RESOURCE_ID)
  7366. GO
  7367.  
  7368. ALTER TABLE RIDW.F_TEXT_FILE_VERSION_METRICS ADD CONSTRAINT F_TFV_FK1 FOREIGN KEY (FILE_ID) REFERENCES RIDW.D_FILE (FILE_ID)
  7369. GO
  7370.  
  7371. ALTER TABLE RIDW.F_TEXT_FILE_VERSION_METRICS ADD CONSTRAINT F_TFV_FK2 FOREIGN KEY (RESOURCE_ID) REFERENCES RIDW.D_RESOURCE (RESOURCE_ID)
  7372. GO
  7373.  
  7374. ALTER TABLE RIDW.F_TEXT_FILE_VERSION_METRICS ADD CONSTRAINT F_TFV_FK3 FOREIGN KEY (FILE_STREAM_ID) REFERENCES RIDW.D_FILE_STREAM (FILE_STREAM_ID)
  7375. GO
  7376.  
  7377. ALTER TABLE RIDW.F_TEXT_FILE_VERSION_METRICS ADD CONSTRAINT F_TFV_FK4 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7378. GO
  7379.  
  7380. ALTER TABLE RIDW.F_TEXT_FILE_VERSION_METRICS ADD CONSTRAINT F_TFV_FK6 FOREIGN KEY (COMPONENT_ID) REFERENCES RIDW.D_COMPONENT (COMPONENT_ID)
  7381. GO
  7382.  
  7383. ALTER TABLE RIDW.F_TEXT_FILE_VERSION_METRICS ADD CONSTRAINT F_TFV_FK7 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7384. GO
  7385.  
  7386. ALTER TABLE RIDW.F_TEXT_FILE_VERSION_METRICS ADD CONSTRAINT F_TFV_FK10 FOREIGN KEY (FILE_CLASS_ID) REFERENCES RIDW.D_FILE_CLASSIFICATION (FILE_CLASS_ID)
  7387. GO
  7388.  
  7389. ALTER TABLE RIDW.H_TEXT_FILE_VERSION_METRICS_CH ADD CONSTRAINT H_TFVCH_FK1 FOREIGN KEY (SLOC_METRICS_ID) REFERENCES RIDW.F_TEXT_FILE_VERSION_METRICS (SLOC_METRICS_ID) ON DELETE CASCADE
  7390. GO
  7391.  
  7392. ALTER TABLE RIDW.H_TEXT_FILE_VERSION_METRICS_CH ADD CONSTRAINT H_TFVCH_FK2 FOREIGN KEY (FILE_VERSION_ID) REFERENCES RIDW.D_FILE_VERSION (FILE_VERSION_ID) ON DELETE CASCADE
  7393. GO
  7394.  
  7395. ALTER TABLE RIDW.H_TEXT_FILE_VERSION_METRICS_TO ADD CONSTRAINT H_TFVT_FK1 FOREIGN KEY (SLOC_METRICS_ID) REFERENCES RIDW.F_TEXT_FILE_VERSION_METRICS (SLOC_METRICS_ID) ON DELETE CASCADE
  7396. GO
  7397.  
  7398. ALTER TABLE RIDW.H_TEXT_FILE_VERSION_METRICS_TO ADD CONSTRAINT H_TFVT_FK2 FOREIGN KEY (FILE_VERSION_ID) REFERENCES RIDW.D_FILE_VERSION (FILE_VERSION_ID) ON DELETE CASCADE
  7399. GO
  7400.  
  7401. ALTER TABLE RIDW.F_EXECUTION_RESULT_METRICS ADD CONSTRAINT F_EXERES_FK2 FOREIGN KEY (ASSETREGISTRY_ID) REFERENCES RIDW.D_ASSETREGISTRY (ASSETREGISTRY_ID)
  7402. GO
  7403.  
  7404. ALTER TABLE RIDW.F_EXECUTION_RESULT_METRICS ADD CONSTRAINT F_EXERES_FK3 FOREIGN KEY (TESTCASE_ID) REFERENCES RIDW.D_TESTCASE (TESTCASE_ID)
  7405. GO
  7406.  
  7407. ALTER TABLE RIDW.F_EXECUTION_RESULT_METRICS ADD CONSTRAINT F_EXERES_FK4 FOREIGN KEY (VERDICT_ID) REFERENCES RIDW.D_VERDICT (VERDICT_ID)
  7408. GO
  7409.  
  7410. ALTER TABLE RIDW.F_EXECUTION_RESULT_METRICS ADD CONSTRAINT F_EXERES_FK5 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7411. GO
  7412.  
  7413. ALTER TABLE RIDW.F_EXECUTION_RESULT_METRICS ADD CONSTRAINT F_EXERES_FK6 FOREIGN KEY (EXECRES_CLASS_ID) REFERENCES RIDW.D_EXECRESULT_CLASSIFICATION (EXECRES_CLASS_ID)
  7414. GO
  7415.  
  7416. ALTER TABLE RIDW.F_EXECUTION_RESULT_METRICS ADD CONSTRAINT F_EXERES_FK7 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIDW.D_TESTPLAN (TESTPLAN_ID)
  7417. GO
  7418.  
  7419. ALTER TABLE RIDW.F_EXECUTION_RESULT_METRICS ADD CONSTRAINT F_EXERES_FK8 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7420. GO
  7421.  
  7422. ALTER TABLE RIDW.H_EXECRESULT_DATE_METRICS ADD CONSTRAINT H_EXECRESDTK_FK1 FOREIGN KEY (EXECRESDT_METRICS_ID) REFERENCES RIDW.F_EXECRESULT_DATE_METRICS (EXECRESDT_METRICS_ID) ON DELETE CASCADE
  7423. GO
  7424.  
  7425. ALTER TABLE RIDW.H_EXECRESULT_DATE_METRICS ADD CONSTRAINT H_EXECRESDTK_FK2 FOREIGN KEY (EXECUTION_RESULT_ID) REFERENCES RIDW.D_EXECUTION_RESULT (EXECUTION_RESULT_ID) ON DELETE CASCADE
  7426. GO
  7427.  
  7428. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK1 FOREIGN KEY (RELEASE_ID) REFERENCES RIDW.D_RELEASE (RELEASE_ID)
  7429. GO
  7430.  
  7431. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK2 FOREIGN KEY (COMPONENT_ID) REFERENCES RIDW.D_COMPONENT (COMPONENT_ID)
  7432. GO
  7433.  
  7434. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK3 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7435. GO
  7436.  
  7437. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK5 FOREIGN KEY (REQUEST_CLASS_ID) REFERENCES RIDW.D_REQUEST_CLASSIFICATION (REQUEST_CLASS_ID)
  7438. GO
  7439.  
  7440. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK7 FOREIGN KEY (STATUS_ID) REFERENCES RIDW.D_REQUEST_STATUS (STATUS_ID)
  7441. GO
  7442.  
  7443. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK8 FOREIGN KEY (CUSTOMER_PRIORITY_ID) REFERENCES RIDW.D_CUSTOMER_PRIORITY (CUSTOMER_PRIORITY_ID)
  7444. GO
  7445.  
  7446. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK9 FOREIGN KEY (CREATION_DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7447. GO
  7448.  
  7449. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK10 FOREIGN KEY (SEVERITY_ID) REFERENCES RIDW.D_REQUEST_SEVERITY (SEVERITY_ID)
  7450. GO
  7451.  
  7452. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK11 FOREIGN KEY (REQUEST_TYPE_ID) REFERENCES RIDW.D_REQUEST_TYPE (REQUEST_TYPE_ID)
  7453. GO
  7454.  
  7455. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK12 FOREIGN KEY (TEAM_ID) REFERENCES RIDW.D_TEAM (TEAM_ID)
  7456. GO
  7457.  
  7458. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK13 FOREIGN KEY (REQUEST_CATEGORY_ID) REFERENCES RIDW.D_REQUEST_CATEGORY (REQUEST_CATEGORY_ID)
  7459. GO
  7460.  
  7461. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK14 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_REQUEST_STATE (STATE_ID)
  7462. GO
  7463.  
  7464. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK15 FOREIGN KEY (PRIORITY_ID) REFERENCES RIDW.D_REQUEST_PRIORITY (PRIORITY_ID)
  7465. GO
  7466.  
  7467. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK16 FOREIGN KEY (ITERATION_ID) REFERENCES RIDW.D_ITERATION (ITERATION_ID)
  7468. GO
  7469.  
  7470. ALTER TABLE RIDW.F_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT F_REQDT_FK17 FOREIGN KEY (CREATOR_ID) REFERENCES RIDW.D_RESOURCE(RESOURCE_ID)
  7471. GO
  7472.  
  7473. ALTER TABLE RIDW.F_REQUEST_FAILURE_METRICS ADD CONSTRAINT F_REQFL_FK1 FOREIGN KEY (RELEASE_ID) REFERENCES RIDW.D_RELEASE (RELEASE_ID)
  7474. GO
  7475.  
  7476. ALTER TABLE RIDW.F_REQUEST_FAILURE_METRICS ADD CONSTRAINT F_REQFL_FK2 FOREIGN KEY (COMPONENT_ID) REFERENCES RIDW.D_COMPONENT (COMPONENT_ID)
  7477. GO
  7478.  
  7479. ALTER TABLE RIDW.F_REQUEST_FAILURE_METRICS ADD CONSTRAINT F_REQFL_FK3 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7480. GO
  7481.  
  7482. ALTER TABLE RIDW.F_REQUEST_FAILURE_METRICS ADD CONSTRAINT F_REQFL_FK4 FOREIGN KEY (ITERATION_ID) REFERENCES RIDW.D_ITERATION (ITERATION_ID)
  7483. GO
  7484.  
  7485. ALTER TABLE RIDW.F_REQUEST_FAILURE_METRICS ADD CONSTRAINT F_REQFL_FK5 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7486. GO
  7487.  
  7488. ALTER TABLE RIDW.F_REQUEST_FAILURE_METRICS ADD CONSTRAINT F_REQFL_FK6 FOREIGN KEY (CREATOR_ID) REFERENCES RIDW.D_RESOURCE(RESOURCE_ID)
  7489. GO
  7490.  
  7491. ALTER TABLE RIDW.H_REQUEST_FAILURE_METRICS ADD CONSTRAINT HREQFMETRIC_FK1 FOREIGN KEY (REQFAIL_METRIC_ID) REFERENCES RIDW.F_REQUEST_FAILURE_METRICS (REQFAIL_METRIC_ID) ON DELETE CASCADE
  7492. GO
  7493.  
  7494. ALTER TABLE RIDW.H_REQUEST_FAILURE_METRICS ADD CONSTRAINT HREQFMETRIC_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIDW.D_REQUEST (REQUEST_ID) ON DELETE CASCADE
  7495. GO
  7496.  
  7497. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK1 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7498. GO
  7499.  
  7500. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7501. GO
  7502.  
  7503. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK3 FOREIGN KEY (ITERATION_ID) REFERENCES RIDW.D_ITERATION (ITERATION_ID)
  7504. GO
  7505.  
  7506. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK4 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_REQUIREMENT_STATE (STATE_ID)
  7507. GO
  7508.  
  7509. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK5 FOREIGN KEY (REQUIREMENT_CLASS_ID) REFERENCES RIDW.D_REQUIREMENT_CLASSIFICATION (REQUIREMENT_CLASS_ID)
  7510. GO
  7511.  
  7512. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK6 FOREIGN KEY (STATUS_ID) REFERENCES RIDW.D_STATUS (STATUS_ID)
  7513. GO
  7514.  
  7515. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK7 FOREIGN KEY (STABILITY_ID) REFERENCES RIDW.D_STABILITY (STABILITY_ID)
  7516. GO
  7517.  
  7518. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK8 FOREIGN KEY (DIFFICULTY_ID) REFERENCES RIDW.D_DIFFICULTY (DIFFICULTY_ID)
  7519. GO
  7520.  
  7521. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK11 FOREIGN KEY (COMPONENT_ID) REFERENCES RIDW.D_COMPONENT (COMPONENT_ID)
  7522. GO
  7523.  
  7524. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK12 FOREIGN KEY (RESOURCE_ID) REFERENCES RIDW.D_RESOURCE (RESOURCE_ID)
  7525. GO
  7526.  
  7527. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK13 FOREIGN KEY (PRIORITY_ID) REFERENCES RIDW.D_PRIORITY (PRIORITY_ID)
  7528. GO
  7529.  
  7530. ALTER TABLE RIDW.F_REQUIREMENT_METRICS ADD CONSTRAINT F_REQMET_FK14 FOREIGN KEY (REQUIREMENT_TYPE_ID) REFERENCES RIDW.D_REQUIREMENT_TYPE (REQUIREMENT_TYPE_ID)
  7531. GO
  7532.  
  7533. ALTER TABLE RIDW.H_REQUIREMENT_METRICS_TOTAL ADD CONSTRAINT HREQUIMETTOT_FK1 FOREIGN KEY (REQ_METRIC_ID) REFERENCES RIDW.F_REQUIREMENT_METRICS (REQ_METRIC_ID) ON DELETE CASCADE
  7534. GO
  7535.  
  7536. ALTER TABLE RIDW.H_REQUIREMENT_METRICS_TOTAL ADD CONSTRAINT HREQUIMETTOT_FK2 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIDW.D_REQUIREMENT (REQUIREMENT_ID) ON DELETE CASCADE
  7537. GO
  7538.  
  7539. ALTER TABLE RIDW.H_REQUIREMENT_METRICS_CHANGES ADD CONSTRAINT HREQUIMETCH_FK1 FOREIGN KEY (REQ_METRIC_ID) REFERENCES RIDW.F_REQUIREMENT_METRICS (REQ_METRIC_ID) ON DELETE CASCADE
  7540. GO
  7541.  
  7542. ALTER TABLE RIDW.H_REQUIREMENT_METRICS_CHANGES ADD CONSTRAINT HREQUIMETCH_FK2 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIDW.D_REQUIREMENT (REQUIREMENT_ID) ON DELETE CASCADE
  7543. GO
  7544.  
  7545. ALTER TABLE RIDW.F_EXECUTION_WORKITEM_METRICS ADD CONSTRAINT F_CFGTST_FK1 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7546. GO
  7547.  
  7548. ALTER TABLE RIDW.F_EXECUTION_WORKITEM_METRICS ADD CONSTRAINT F_CFGTST_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7549. GO
  7550.  
  7551. ALTER TABLE RIDW.F_EXECUTION_WORKITEM_METRICS ADD CONSTRAINT F_CFGTST_FK4 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIDW.D_TESTPLAN (TESTPLAN_ID)
  7552. GO
  7553.  
  7554. ALTER TABLE RIDW.F_EXECUTION_WORKITEM_METRICS ADD CONSTRAINT F_CFGTST_FK5 FOREIGN KEY (VERDICT_ID) REFERENCES RIDW.D_VERDICT (VERDICT_ID)
  7555. GO
  7556.  
  7557. ALTER TABLE RIDW.F_EXECUTION_WORKITEM_METRICS ADD CONSTRAINT F_CFGTST_FK6 FOREIGN KEY (EXECWORKIT_CLASS_ID) REFERENCES RIDW.D_EXECWORKITEM_CLASSIFICATION (EXECWORKIT_CLASS_ID)
  7558. GO
  7559.  
  7560. ALTER TABLE RIDW.F_EXECUTION_WORKITEM_METRICS ADD CONSTRAINT F_CFGTST_FK7 FOREIGN KEY (CONFIGURATION_ID) REFERENCES RIDW.D_CONFIGURATION (CONFIGURATION_ID)
  7561. GO
  7562.  
  7563. ALTER TABLE RIDW.H_EXECUTION_WORKITEM_METRICS ADD CONSTRAINT HEXECWKMETRIC_FK1 FOREIGN KEY (EXECWORKITEM_METRIC_ID) REFERENCES RIDW.F_EXECUTION_WORKITEM_METRICS (EXECWORKITEM_METRIC_ID) ON DELETE CASCADE
  7564. GO
  7565.  
  7566. ALTER TABLE RIDW.H_EXECUTION_WORKITEM_METRICS ADD CONSTRAINT HEXECWKMETRIC_FK2 FOREIGN KEY (EXECWORKITEM_ID) REFERENCES RIDW.D_EXECUTION_WORKITEM (EXECWORKITEM_ID) ON DELETE CASCADE
  7567. GO
  7568.  
  7569. ALTER TABLE RIDW.F_TESTCASE_METRICS ADD CONSTRAINT F_TSTCASE_FK1 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7570. GO
  7571.  
  7572. ALTER TABLE RIDW.F_TESTCASE_METRICS ADD CONSTRAINT F_TSTCASE_FK5 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIDW.D_TESTPLAN (TESTPLAN_ID)
  7573. GO
  7574.  
  7575. ALTER TABLE RIDW.F_TESTCASE_METRICS ADD CONSTRAINT F_TSTCASE_FK7 FOREIGN KEY (TESTCASE_CLASS_ID) REFERENCES RIDW.D_TESTCASE_CLASSIFICATION (TESTCASE_CLASS_ID)
  7576. GO
  7577.  
  7578. ALTER TABLE RIDW.F_TESTCASE_METRICS ADD CONSTRAINT F_TSTCASE_FK8 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_TESTCASE_STATE (STATE_ID)
  7579. GO
  7580.  
  7581. ALTER TABLE RIDW.F_TESTCASE_METRICS ADD CONSTRAINT F_TSTCASE_FK9 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7582. GO
  7583.  
  7584. ALTER TABLE RIDW.F_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_PTSTCASEPLN_FK1 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7585. GO
  7586.  
  7587. ALTER TABLE RIDW.F_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_PTSTCASEPLN_FK2 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIDW.D_TESTPLAN (TESTPLAN_ID)
  7588. GO
  7589.  
  7590. ALTER TABLE RIDW.F_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_PTSTCASEPLN_FK3 FOREIGN KEY (TESTCASE_CLASS_ID) REFERENCES RIDW.D_TESTCASE_CLASSIFICATION (TESTCASE_CLASS_ID)
  7591. GO
  7592.  
  7593. ALTER TABLE RIDW.F_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_PTSTCASEPLN_FK4 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_TESTCASE_STATE (STATE_ID)
  7594. GO
  7595.  
  7596. ALTER TABLE RIDW.F_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_PTSTCASEPLN_FK5 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7597. GO
  7598.  
  7599. ALTER TABLE RIDW.F_C_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_CPTSTCASEPL_FK1 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7600. GO
  7601.  
  7602. ALTER TABLE RIDW.F_C_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_CPTSTCASEPL_FK2 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIDW.D_TESTPLAN (TESTPLAN_ID)
  7603. GO
  7604.  
  7605. ALTER TABLE RIDW.F_C_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_CPTSTCASEPL_FK3 FOREIGN KEY (TESTCASE_CLASS_ID) REFERENCES RIDW.D_TESTCASE_CLASSIFICATION (TESTCASE_CLASS_ID)
  7606. GO
  7607.  
  7608. ALTER TABLE RIDW.F_C_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_CPTSTCASEPL_FK4 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_TESTCASE_STATE (STATE_ID)
  7609. GO
  7610.  
  7611. ALTER TABLE RIDW.F_C_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT F_CPTSTCASEPL_FK5 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7612. GO
  7613.  
  7614. ALTER TABLE RIDW.F_PROJ_TESTCASE_METRICS ADD CONSTRAINT F_PTSTCASE_FK1 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7615. GO
  7616.  
  7617. ALTER TABLE RIDW.F_PROJ_TESTCASE_METRICS ADD CONSTRAINT F_PTSTCASE_FK2 FOREIGN KEY (TESTCASE_CLASS_ID) REFERENCES RIDW.D_TESTCASE_CLASSIFICATION (TESTCASE_CLASS_ID)
  7618. GO
  7619.  
  7620. ALTER TABLE RIDW.F_PROJ_TESTCASE_METRICS ADD CONSTRAINT F_PTSTCASE_FK3 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_TESTCASE_STATE (STATE_ID)
  7621. GO
  7622.  
  7623. ALTER TABLE RIDW.F_PROJ_TESTCASE_METRICS ADD CONSTRAINT F_PTSTCASE_FK4 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7624. GO
  7625.  
  7626. ALTER TABLE RIDW.F_C_PROJ_TESTCASE_METRICS ADD CONSTRAINT F_CPTSTCASE_FK1 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7627. GO
  7628.  
  7629. ALTER TABLE RIDW.F_C_PROJ_TESTCASE_METRICS ADD CONSTRAINT F_CPTSTCASE_FK2 FOREIGN KEY (TESTCASE_CLASS_ID) REFERENCES RIDW.D_TESTCASE_CLASSIFICATION (TESTCASE_CLASS_ID)
  7630. GO
  7631.  
  7632. ALTER TABLE RIDW.F_C_PROJ_TESTCASE_METRICS ADD CONSTRAINT F_CPTSTCASE_FK3 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_TESTCASE_STATE (STATE_ID)
  7633. GO
  7634.  
  7635. ALTER TABLE RIDW.F_C_PROJ_TESTCASE_METRICS ADD CONSTRAINT F_CPTSTCASE_FK4 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7636. GO
  7637.  
  7638. ALTER TABLE RIDW.H_TESTCASE_METRICS ADD CONSTRAINT HTSTCMETRIC_FK1 FOREIGN KEY (TSTCASE_METRIC_ID) REFERENCES RIDW.F_TESTCASE_METRICS (TSTCASE_METRIC_ID) ON DELETE CASCADE
  7639. GO
  7640.  
  7641. ALTER TABLE RIDW.H_TESTCASE_METRICS ADD CONSTRAINT HTSTCMETRIC_FK2 FOREIGN KEY (TESTCASE_ID) REFERENCES RIDW.D_TESTCASE (TESTCASE_ID) ON DELETE CASCADE
  7642. GO
  7643.  
  7644. ALTER TABLE RIDW.H_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT HPTSTCASEPLN_FK1 FOREIGN KEY (TSTCASE_METRIC_ID) REFERENCES RIDW.F_PROJ_TESTCASE_TPLN_METRICS (TSTCASE_METRIC_ID) ON DELETE CASCADE
  7645. GO
  7646.  
  7647. ALTER TABLE RIDW.H_PROJ_TESTCASE_TPLN_METRICS ADD CONSTRAINT HPTSTCASEPLN_FK2 FOREIGN KEY (TESTCASE_ID) REFERENCES RIDW.D_TESTCASE (TESTCASE_ID) ON DELETE CASCADE
  7648. GO
  7649.  
  7650. ALTER TABLE RIDW.H_PROJ_TESTCASE_METRICS ADD CONSTRAINT HPTSTCASE_FK1 FOREIGN KEY (TSTCASE_METRIC_ID) REFERENCES RIDW.F_PROJ_TESTCASE_METRICS (TSTCASE_METRIC_ID) ON DELETE CASCADE
  7651. GO
  7652.  
  7653. ALTER TABLE RIDW.H_PROJ_TESTCASE_METRICS ADD CONSTRAINT HPTSTCASE_FK2 FOREIGN KEY (TESTCASE_ID) REFERENCES RIDW.D_TESTCASE (TESTCASE_ID) ON DELETE CASCADE
  7654. GO
  7655.  
  7656. ALTER TABLE RIDW.H_BUILD_ATTEMPTS ADD CONSTRAINT HBLDATTE_FK1 FOREIGN KEY (BUILD_METRIC_ID) REFERENCES RIDW.F_BUILD_METRICS (BUILD_METRIC_ID) ON DELETE CASCADE
  7657. GO
  7658.  
  7659. ALTER TABLE RIDW.H_BUILD_ATTEMPTS ADD CONSTRAINT HBLDATTE_FK2 FOREIGN KEY (BUILD_ID) REFERENCES RIDW.D_BUILD (BUILD_ID) ON DELETE CASCADE
  7660. GO
  7661.  
  7662. ALTER TABLE RIDW.H_BUILD_PASS ADD CONSTRAINT HBLDPAS_FK1 FOREIGN KEY (BUILD_METRIC_ID) REFERENCES RIDW.F_BUILD_METRICS (BUILD_METRIC_ID) ON DELETE CASCADE
  7663. GO
  7664.  
  7665. ALTER TABLE RIDW.H_BUILD_PASS ADD CONSTRAINT HBLDPAS_FK2 FOREIGN KEY (BUILD_ID) REFERENCES RIDW.D_BUILD (BUILD_ID) ON DELETE CASCADE
  7666. GO
  7667.  
  7668. ALTER TABLE RIDW.H_BUILD_FAIL ADD CONSTRAINT HBLDFAIL_FK1 FOREIGN KEY (BUILD_METRIC_ID) REFERENCES RIDW.F_BUILD_METRICS (BUILD_METRIC_ID) ON DELETE CASCADE
  7669. GO
  7670.  
  7671. ALTER TABLE RIDW.H_BUILD_FAIL ADD CONSTRAINT HBLDFAIL_FK2 FOREIGN KEY (BUILD_ID) REFERENCES RIDW.D_BUILD (BUILD_ID) ON DELETE CASCADE
  7672. GO
  7673.  
  7674. ALTER TABLE RIDW.F_CHILDREQUIREMENT_METRICS ADD CONSTRAINT F_CHREQM_FK1 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7675. GO
  7676.  
  7677. ALTER TABLE RIDW.F_CHILDREQUIREMENT_METRICS ADD CONSTRAINT F_CHREQM_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7678. GO
  7679.  
  7680. ALTER TABLE RIDW.F_CHILDREQUIREMENT_METRICS ADD CONSTRAINT F_CHREQM_FK3 FOREIGN KEY (ITERATION_ID) REFERENCES RIDW.D_ITERATION (ITERATION_ID)
  7681. GO
  7682.  
  7683. ALTER TABLE RIDW.F_CHILDREQUIREMENT_METRICS ADD CONSTRAINT F_CHREQM_FK4 FOREIGN KEY (RELEASE_ID) REFERENCES RIDW.D_RELEASE (RELEASE_ID)
  7684. GO
  7685.  
  7686. ALTER TABLE RIDW.F_CHILDREQUIREMENT_METRICS ADD CONSTRAINT F_CHREQM_FK5 FOREIGN KEY (PARENT_REQUIREMENT_ID) REFERENCES RIDW.D_REQUIREMENT (REQUIREMENT_ID)
  7687. GO
  7688.  
  7689. ALTER TABLE RIDW.F_CHILDREQUIREMENT_METRICS ADD CONSTRAINT F_CHREQM_FK6 FOREIGN KEY (COMPONENT_ID) REFERENCES RIDW.D_COMPONENT (COMPONENT_ID)
  7690. GO
  7691.  
  7692. ALTER TABLE RIDW.F_CHILDREQUIREMENT_METRICS ADD CONSTRAINT F_CHREQM_FK7 FOREIGN KEY (REQUIREMENT_CLASS_ID) REFERENCES RIDW.D_REQUIREMENT_CLASSIFICATION (REQUIREMENT_CLASS_ID)
  7693. GO
  7694.  
  7695. ALTER TABLE RIDW.F_CHILDREQUIREMENT_METRICS ADD CONSTRAINT F_CHREQM_FK8 FOREIGN KEY (REQUIREMENT_TYPE_ID) REFERENCES RIDW.D_REQUIREMENT_TYPE (REQUIREMENT_TYPE_ID)
  7696. GO
  7697.  
  7698. ALTER TABLE RIDW.F_PROJECT_PERFORMANCE_METRICS ADD CONSTRAINT F_PPM_FK1 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7699. GO
  7700.  
  7701. ALTER TABLE RIDW.F_PROJECT_PERFORMANCE_METRICS ADD CONSTRAINT F_PPM_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7702. GO
  7703.  
  7704. ALTER TABLE RIDW.F_BUILD_METRICS ADD CONSTRAINT F_BUILD_FK1 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7705. GO
  7706.  
  7707. ALTER TABLE RIDW.F_BUILD_METRICS ADD CONSTRAINT F_BUILD_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7708. GO
  7709.  
  7710. ALTER TABLE RIDW.F_BUILD_METRICS ADD CONSTRAINT F_BUILD_FK5 FOREIGN KEY (COMPONENT_ID) REFERENCES RIDW.D_COMPONENT (COMPONENT_ID)
  7711. GO
  7712.  
  7713. ALTER TABLE RIDW.F_BUILD_METRICS ADD CONSTRAINT F_BUILD_FK7 FOREIGN KEY (BUILD_TYPE_ID) REFERENCES RIDW.D_BUILD_TYPE (BUILD_TYPE_ID)
  7714. GO
  7715.  
  7716. ALTER TABLE RIDW.F_BUILD_METRICS ADD CONSTRAINT F_BUILD_FK8 FOREIGN KEY (BUILD_CLASS_ID) REFERENCES RIDW.D_BUILD_CLASSIFICATION (BUILD_CLASS_ID)
  7717. GO
  7718.  
  7719. ALTER TABLE RIDW.H_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT H_REQCLD_FK1 FOREIGN KEY (REQCDT_METRIC_ID) REFERENCES RIDW.F_REQUEST_CLOSURE_DATE_METRICS (REQCDT_METRIC_ID) ON DELETE CASCADE
  7720. GO
  7721.  
  7722. ALTER TABLE RIDW.H_REQUEST_CLOSURE_DATE_METRICS ADD CONSTRAINT H_REQCLD_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIDW.D_REQUEST (REQUEST_ID) ON DELETE CASCADE
  7723. GO
  7724.  
  7725. ALTER TABLE RIDW.H_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT H_REQDT_FK1 FOREIGN KEY (REQDT_METRIC_ID) REFERENCES RIDW.F_REQUEST_CREATION_DT_METRICS (REQDT_METRIC_ID) ON DELETE CASCADE
  7726. GO
  7727.  
  7728. ALTER TABLE RIDW.H_REQUEST_CREATION_DT_METRICS ADD CONSTRAINT H_REQDT_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIDW.D_REQUEST (REQUEST_ID) ON DELETE CASCADE
  7729. GO
  7730.  
  7731. ALTER TABLE RIDW.H_EXECUTION_RESULT_METRICS ADD CONSTRAINT H_EXERES_FK1 FOREIGN KEY (EXERES_METRICS_ID) REFERENCES RIDW.F_EXECUTION_RESULT_METRICS (EXERES_METRICS_ID) ON DELETE CASCADE
  7732. GO
  7733.  
  7734. ALTER TABLE RIDW.H_EXECUTION_RESULT_METRICS ADD CONSTRAINT H_EXERES_FK2 FOREIGN KEY (EXECUTION_RESULT_ID) REFERENCES RIDW.D_EXECUTION_RESULT(EXECUTION_RESULT_ID) ON DELETE CASCADE
  7735. GO
  7736.  
  7737. ALTER TABLE RIDW.H_CHILDREQUIREMENT_METRICS ADD CONSTRAINT H_CHREQ_FK1 FOREIGN KEY (CHILDREQ_METRICS_ID) REFERENCES RIDW.F_CHILDREQUIREMENT_METRICS (CHILDREQ_METRICS_ID) ON DELETE CASCADE
  7738. GO
  7739.  
  7740. ALTER TABLE RIDW.H_CHILDREQUIREMENT_METRICS ADD CONSTRAINT H_CHREQ_FK2 FOREIGN KEY (REQUIREMENT_ID) REFERENCES RIDW.D_REQUIREMENT(REQUIREMENT_ID) ON DELETE CASCADE
  7741. GO
  7742.  
  7743. ALTER TABLE RIDW.F_EXECRESULT_DATE_METRICS ADD CONSTRAINT F_EXECRESDT_FK1 FOREIGN KEY (TESTCASE_ID) REFERENCES RIDW.D_TESTCASE (TESTCASE_ID)
  7744. GO
  7745.  
  7746. ALTER TABLE RIDW.F_EXECRESULT_DATE_METRICS ADD CONSTRAINT F_EXECRESDT_FK2 FOREIGN KEY (COMPONENT_ID) REFERENCES RIDW.D_COMPONENT (COMPONENT_ID)
  7747. GO
  7748.  
  7749. ALTER TABLE RIDW.F_EXECRESULT_DATE_METRICS ADD CONSTRAINT F_EXECRESDT_FK4 FOREIGN KEY (DAY_OF_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7750. GO
  7751.  
  7752. ALTER TABLE RIDW.F_EXECRESULT_DATE_METRICS ADD CONSTRAINT F_EXECRESDT_FK5 FOREIGN KEY (EXECRES_CLASS_ID) REFERENCES RIDW.D_EXECRESULT_CLASSIFICATION (EXECRES_CLASS_ID)
  7753. GO
  7754.  
  7755. ALTER TABLE RIDW.F_EXECRESULT_DATE_METRICS ADD CONSTRAINT F_EXECRESDT_FK6 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIDW.D_TESTPLAN (TESTPLAN_ID)
  7756. GO
  7757.  
  7758. ALTER TABLE RIDW.F_EXECRESULT_DATE_METRICS ADD CONSTRAINT F_EXECRESDT_FK7 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7759. GO
  7760.  
  7761. ALTER TABLE RIDW.F_ACTIVITY_METRICS ADD CONSTRAINT F_ACTM_FK1 FOREIGN KEY (ACTIVITY_CLASS_ID) REFERENCES RIDW.D_ACTIVITY_CLASSIFICATION (ACTIVITY_CLASS_ID)
  7762. GO
  7763.  
  7764. ALTER TABLE RIDW.F_ACTIVITY_METRICS ADD CONSTRAINT F_ACTM_FK2 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7765. GO
  7766.  
  7767. ALTER TABLE RIDW.F_ACTIVITY_METRICS ADD CONSTRAINT F_ACTM_FK4 FOREIGN KEY (RESOURCE_ID) REFERENCES RIDW.D_RESOURCE (RESOURCE_ID)
  7768. GO
  7769.  
  7770. ALTER TABLE RIDW.F_ACTIVITY_METRICS ADD CONSTRAINT F_ACTM_FK5 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7771. GO
  7772.  
  7773. ALTER TABLE RIDW.F_ACTIVITY_METRICS ADD CONSTRAINT F_ACTM_FK7 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_ACTIVITY_STATE (STATE_ID)
  7774. GO
  7775.  
  7776. ALTER TABLE RIDW.F_ACTIVITY_METRICS ADD CONSTRAINT F_ACTM_FK8 FOREIGN KEY (PRIORITY_ID) REFERENCES RIDW.D_PRIORITY (PRIORITY_ID)
  7777. GO
  7778.  
  7779. ALTER TABLE RIDW.H_ACTIVITY_METRICS ADD CONSTRAINT H_ACTM_STATE_FK1 FOREIGN KEY (ACTIVITY_METRICS_ID) REFERENCES RIDW.F_ACTIVITY_METRICS (ACTIVITY_METRICS_ID) ON DELETE CASCADE
  7780. GO
  7781.  
  7782. ALTER TABLE RIDW.H_ACTIVITY_METRICS ADD CONSTRAINT H_ACTM_STATE_FK2 FOREIGN KEY (ACTIVITY_ID) REFERENCES RIDW.D_ACTIVITY (ACTIVITY_ID) ON DELETE CASCADE
  7783. GO
  7784.  
  7785. ALTER TABLE RIDW.F_ACTIVITY_CREATION_DT_METRICS ADD CONSTRAINT F_ACTCRDM_FK1 FOREIGN KEY (ACTIVITY_CLASS_ID) REFERENCES RIDW.D_ACTIVITY_CLASSIFICATION (ACTIVITY_CLASS_ID)
  7786. GO
  7787.  
  7788. ALTER TABLE RIDW.F_ACTIVITY_CREATION_DT_METRICS ADD CONSTRAINT F_ACTCRDM_FK2 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_ACTIVITY_STATE (STATE_ID)
  7789. GO
  7790.  
  7791. ALTER TABLE RIDW.F_ACTIVITY_CREATION_DT_METRICS ADD CONSTRAINT F_ACTCRDM_FK3 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7792. GO
  7793.  
  7794. ALTER TABLE RIDW.F_ACTIVITY_CREATION_DT_METRICS ADD CONSTRAINT F_ACTCRDM_FK5 FOREIGN KEY (RESOURCE_ID) REFERENCES RIDW.D_RESOURCE (RESOURCE_ID)
  7795. GO
  7796.  
  7797. ALTER TABLE RIDW.F_ACTIVITY_CREATION_DT_METRICS ADD CONSTRAINT F_ACTCRDM_FK6 FOREIGN KEY (PRIORITY_ID) REFERENCES RIDW.D_PRIORITY (PRIORITY_ID)
  7798. GO
  7799.  
  7800. ALTER TABLE RIDW.H_ACTIVITY_CREATION_DT_METRICS ADD CONSTRAINT H_ACTCRDM_FK1 FOREIGN KEY (ACTIVITYCRD_METRICS_ID) REFERENCES RIDW.F_ACTIVITY_CREATION_DT_METRICS (ACTIVITYCRD_METRICS_ID) ON DELETE CASCADE
  7801. GO
  7802.  
  7803. ALTER TABLE RIDW.H_ACTIVITY_CREATION_DT_METRICS ADD CONSTRAINT H_ACTCRDM_FK2 FOREIGN KEY (ACTIVITY_ID) REFERENCES RIDW.D_ACTIVITY (ACTIVITY_ID) ON DELETE CASCADE
  7804. GO
  7805.  
  7806. ALTER TABLE RIDW.F_EXECRESPOINTS_METRICS ADD CONSTRAINT F_EXECPTS_FK2 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7807. GO
  7808.  
  7809. ALTER TABLE RIDW.F_EXECRESPOINTS_METRICS ADD CONSTRAINT F_EXECPTS_FK3 FOREIGN KEY (TESTPLAN_ID) REFERENCES RIDW.D_TESTPLAN (TESTPLAN_ID)
  7810. GO
  7811.  
  7812. ALTER TABLE RIDW.F_EXECRESPOINTS_METRICS ADD CONSTRAINT F_EXECPTS_FK4 FOREIGN KEY (TESTCASE_ID) REFERENCES RIDW.D_TESTCASE (TESTCASE_ID)
  7813. GO
  7814.  
  7815. ALTER TABLE RIDW.F_EXECRESPOINTS_METRICS ADD CONSTRAINT F_EXECPTS_FK5 FOREIGN KEY (EXECRES_CLASS_ID) REFERENCES RIDW.D_EXECRESULT_CLASSIFICATION (EXECRES_CLASS_ID)
  7816. GO
  7817.  
  7818. ALTER TABLE RIDW.F_EXECRESPOINTS_METRICS ADD CONSTRAINT F_EXECPTS_FK6 FOREIGN KEY (VERDICT_ID) REFERENCES RIDW.D_VERDICT (VERDICT_ID)
  7819. GO
  7820.  
  7821. ALTER TABLE RIDW.F_EXECRESPOINTS_METRICS ADD CONSTRAINT F_EXECPTS_FK7 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7822. GO
  7823.  
  7824. ALTER TABLE RIDW.H_EXECRESPOINTS_METRICS ADD CONSTRAINT H_EXECPTS_FK1 FOREIGN KEY (EXECRES_METRIC_ID) REFERENCES RIDW.F_EXECRESPOINTS_METRICS (EXECRES_METRIC_ID) ON DELETE CASCADE
  7825. GO
  7826.  
  7827. ALTER TABLE RIDW.H_EXECRESPOINTS_METRICS ADD CONSTRAINT H_EXECPTS_FK2 FOREIGN KEY (EXECUTION_RESULT_ID) REFERENCES RIDW.D_EXECUTION_RESULT (EXECUTION_RESULT_ID) ON DELETE CASCADE
  7828. GO
  7829.  
  7830. ALTER TABLE RIDW.F_REQUEST_TURNAROUND ADD CONSTRAINT F_REQTURN_FK1 FOREIGN KEY (REQUEST_CLASS_ID) REFERENCES RIDW.D_REQUEST_CLASSIFICATION (REQUEST_CLASS_ID)
  7831. GO
  7832.  
  7833. ALTER TABLE RIDW.F_REQUEST_TURNAROUND ADD CONSTRAINT F_REQTURN_FK2 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7834. GO
  7835.  
  7836. ALTER TABLE RIDW.F_REQUEST_TURNAROUND ADD CONSTRAINT F_REQTURN_FK4 FOREIGN KEY (COMPONENT_ID) REFERENCES RIDW.D_COMPONENT (COMPONENT_ID)
  7837. GO
  7838.  
  7839. ALTER TABLE RIDW.F_REQUEST_TURNAROUND ADD CONSTRAINT F_REQTURN_FK5 FOREIGN KEY (RESOURCE_ID) REFERENCES RIDW.D_RESOURCE(RESOURCE_ID)
  7840. GO
  7841.  
  7842. ALTER TABLE RIDW.F_REQUEST_TURNAROUND ADD CONSTRAINT F_REQTURN_FK6 FOREIGN KEY (SEVERITY_ID) REFERENCES RIDW.D_REQUEST_SEVERITY (SEVERITY_ID)
  7843. GO
  7844.  
  7845. ALTER TABLE RIDW.F_REQUEST_TURNAROUND ADD CONSTRAINT F_REQTURN_FK7 FOREIGN KEY (PRIORITY_ID) REFERENCES RIDW.D_REQUEST_PRIORITY (PRIORITY_ID)
  7846. GO
  7847.  
  7848. ALTER TABLE RIDW.F_REQUEST_TURNAROUND ADD CONSTRAINT F_REQTURN_FK8 FOREIGN KEY (ITERATION_ID) REFERENCES RIDW.D_ITERATION (ITERATION_ID)
  7849. GO
  7850.  
  7851. ALTER TABLE RIDW.F_REQUEST_TURNAROUND ADD CONSTRAINT F_REQTURN_FK9 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7852. GO
  7853.  
  7854. ALTER TABLE RIDW.F_REQUEST_TURNAROUND ADD CONSTRAINT F_REQTURN_FK10 FOREIGN KEY (REQUEST_TYPE_ID) REFERENCES RIDW.D_REQUEST_TYPE (REQUEST_TYPE_ID)
  7855. GO
  7856.  
  7857. ALTER TABLE RIDW.F_REQUEST_TURNAROUND ADD CONSTRAINT F_REQTURN_FK11 FOREIGN KEY (CREATOR_ID) REFERENCES RIDW.D_RESOURCE(RESOURCE_ID)
  7858. GO
  7859.  
  7860. ALTER TABLE RIDW.H_REQUEST_TURNAROUND_TOTAL ADD CONSTRAINT H_REQTURNTOT_FK1 FOREIGN KEY (TURNAROUND_METRIC_ID) REFERENCES RIDW.F_REQUEST_TURNAROUND (TURNAROUND_METRIC_ID) ON DELETE CASCADE
  7861. GO
  7862.  
  7863. ALTER TABLE RIDW.H_REQUEST_TURNAROUND_TOTAL ADD CONSTRAINT H_REQTURNTOT_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIDW.D_REQUEST (REQUEST_ID) ON DELETE CASCADE
  7864. GO
  7865.  
  7866. ALTER TABLE RIDW.H_REQUEST_TURNAROUND_MIN ADD CONSTRAINT H_REQTURNMIN_FK1 FOREIGN KEY (TURNAROUND_METRIC_ID) REFERENCES RIDW.F_REQUEST_TURNAROUND (TURNAROUND_METRIC_ID) ON DELETE CASCADE
  7867. GO
  7868.  
  7869. ALTER TABLE RIDW.H_REQUEST_TURNAROUND_MIN ADD CONSTRAINT H_REQTURNMIN_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIDW.D_REQUEST (REQUEST_ID) ON DELETE CASCADE
  7870. GO
  7871.  
  7872. ALTER TABLE RIDW.H_REQUEST_TURNAROUND_MAX ADD CONSTRAINT H_REQTURNMAX_FK1 FOREIGN KEY (TURNAROUND_METRIC_ID) REFERENCES RIDW.F_REQUEST_TURNAROUND (TURNAROUND_METRIC_ID) ON DELETE CASCADE
  7873. GO
  7874.  
  7875. ALTER TABLE RIDW.H_REQUEST_TURNAROUND_MAX ADD CONSTRAINT H_REQTURNMAX_FK2 FOREIGN KEY (REQUEST_ID) REFERENCES RIDW.D_REQUEST (REQUEST_ID) ON DELETE CASCADE
  7876. GO
  7877.  
  7878. ALTER TABLE RIDW.F_TASK_METRICS ADD CONSTRAINT F_TSKMET_FK1 FOREIGN KEY (TASK_CLASS_ID) REFERENCES RIDW.D_TASK_CLASSIFICATION (TASK_CLASS_ID)
  7879. GO
  7880.  
  7881. ALTER TABLE RIDW.F_TASK_METRICS ADD CONSTRAINT F_TSKMET_FK2 FOREIGN KEY (DATE_ID) REFERENCES RIDW.D_DATE (DATE_ID)
  7882. GO
  7883.  
  7884. ALTER TABLE RIDW.F_TASK_METRICS ADD CONSTRAINT F_TSKMET_FK3 FOREIGN KEY (RESOURCE_ID) REFERENCES RIDW.D_RESOURCE (RESOURCE_ID)
  7885. GO
  7886.  
  7887. ALTER TABLE RIDW.F_TASK_METRICS ADD CONSTRAINT F_TSKMET_FK4 FOREIGN KEY (PROJECT_ID) REFERENCES RIDW.D_PROJECT (PROJECT_ID)
  7888. GO
  7889.  
  7890. ALTER TABLE RIDW.F_TASK_METRICS ADD CONSTRAINT F_TSKMET_FK6 FOREIGN KEY (STATE_ID) REFERENCES RIDW.D_TASK_STATE (STATE_ID)
  7891. GO
  7892.  
  7893. ALTER TABLE RIDW.F_TASK_METRICS ADD CONSTRAINT F_TSKMET_FK7 FOREIGN KEY (PRIORITY_ID) REFERENCES RIDW.D_PRIORITY (PRIORITY_ID)
  7894. GO
RAW Paste Data