|
Hi Alice,
Here are describes for the tables.
MariaDB [(none)]> desc dcs.dcs_item;
------------------------------------------------------------------+
| Field |
Type |
Null |
Key |
Default |
Extra |
------------------------------------------------------------------+
| dcs_id |
int(10) unsigned |
NO |
PRI |
NULL |
auto_increment |
| description |
varchar(255) |
NO |
|
|
|
| objects |
longtext |
NO |
|
NULL |
|
| notes |
longtext |
NO |
|
NULL |
|
| dcs_user_id |
int(10) unsigned |
NO |
MUL |
0 |
|
| deploy_date |
date |
NO |
|
0000-00-00 |
|
| add_data |
date |
NO |
|
0000-00-00 |
|
| type |
int(10) unsigned |
NO |
MUL |
0 |
|
| change_request_id |
int(11) |
YES |
MUL |
NULL |
|
| current_level |
int(11) |
YES |
MUL |
NULL |
|
| affects_inventory |
int(11) |
YES |
|
NULL |
|
| db_schema_id |
int(11) unsigned |
YES |
|
NULL |
|
------------------------------------------------------------------+
12 rows in set (0.00 sec)
MariaDB [(none)]> desc dcs.dcs_status_definition;
---------------------------------------------+
| Field |
Type |
Null |
Key |
Default |
Extra |
---------------------------------------------+
| status_code |
int(11) |
NO |
PRI |
NULL |
|
| description |
varchar(30) |
YES |
|
NULL |
|
| color |
varchar(20) |
YES |
|
NULL |
|
| active_status |
char(1) |
YES |
|
A |
|
| list_order |
int(11) |
NO |
|
NULL |
|
---------------------------------------------+
5 rows in set (0.00 sec)
MariaDB [(none)]> desc requests.requests;
---------------------------------------------------------------------+
| Field |
Type |
Null |
Key |
Default |
Extra |
---------------------------------------------------------------------+
| id |
int(10) unsigned |
NO |
PRI |
0 |
|
| priority_rank |
int(10) unsigned |
YES |
|
NULL |
|
| es3_priority |
int(10) unsigned |
NO |
MUL |
0 |
|
| customer_priority |
int(10) unsigned |
NO |
MUL |
0 |
|
| area |
int(10) unsigned |
NO |
MUL |
0 |
|
| request_desc |
varchar(200) |
NO |
|
NULL |
|
| user_id |
int(10) unsigned |
NO |
MUL |
0 |
|
| integration_id |
int(10) unsigned |
NO |
MUL |
0 |
|
| customer_contact_id |
int(10) unsigned |
NO |
MUL |
0 |
|
| summary |
text |
NO |
|
NULL |
|
| billable |
char(1) |
NO |
|
|
|
| proposed_cost |
int(10) unsigned zerofill |
NO |
|
0000000000 |
|
| es3_cost |
int(10) unsigned zerofill |
NO |
|
0000000000 |
|
| customer_cost |
int(10) unsigned zerofill |
NO |
|
0000000000 |
|
| benefits |
varchar(200) |
YES |
|
NULL |
|
| expected_es3_savings |
varchar(200) |
YES |
|
NULL |
|
| project_status |
int(10) unsigned |
NO |
MUL |
0 |
|
| production_dt |
datetime |
YES |
|
NULL |
|
| request_status |
int(10) unsigned |
NO |
MUL |
0 |
|
| comments |
text |
YES |
|
NULL |
|
| entry_dt |
datetime |
YES |
|
NULL |
|
| Request_type |
int(1) |
YES |
|
NULL |
|
| uat_resource |
varchar(300) |
YES |
|
NULL |
|
| risks |
varchar(2000) |
YES |
|
NULL |
|
| training |
varchar(2000) |
YES |
|
NULL |
|
| load_performance |
varchar(2000) |
YES |
|
NULL |
|
| pay_associated |
varchar(2000) |
YES |
|
NULL |
|
| type |
varchar(1) |
YES |
|
NULL |
|
| deployed_date |
date |
YES |
|
NULL |
|
| developer |
varchar(60) |
YES |
|
NULL |
|
| unit_test_dt |
date |
YES |
|
NULL |
|
| approved_for_qa_flg |
char(1) |
YES |
|
NULL |
|
| uat_test_complete_dt |
date |
YES |
|
NULL |
|
| disable |
enum('0','1') |
NO |
|
0 |
|
| ticket_nbr |
mediumtext |
YES |
|
NULL |
|
| release_id |
int(11) |
YES |
MUL |
NULL |
|
---------------------------------------------------------------------+
36 rows in set (0.00 sec)
MariaDB [(none)]> desc requests.release;
---------------------------------------------------------------+
| Field |
Type |
Null |
Key |
Default |
Extra |
---------------------------------------------------------------+
| Release_ID |
int(11) |
NO |
PRI |
NULL |
auto_increment |
| Release_date |
datetime |
NO |
MUL |
NULL |
|
| Datacenter_ID |
int(11) |
NO |
|
NULL |
|
| release_status_id |
int(11) |
NO |
|
NULL |
|
| Automated_build |
int(11) |
NO |
MUL |
0 |
|
| Entry_user |
varchar(60) |
NO |
|
NULL |
|
| Entry_dt |
datetime |
NO |
|
NULL |
|
| Update_user |
varchar(100) |
YES |
|
NULL |
|
| Update_dt |
datetime |
YES |
|
NULL |
|
| show_in_release_notes |
int(11) |
YES |
|
0 |
|
| comments |
varchar(100) |
YES |
|
NULL |
|
---------------------------------------------------------------+
11 rows in set (0.00 sec)
MariaDB [(none)]> desc requests.datacenter;
---------------------------------------------------------+
| Field |
Type |
Null |
Key |
Default |
Extra |
---------------------------------------------------------+
| Datacenter_ID |
int(11) |
NO |
PRI |
NULL |
auto_increment |
| Datacenter_name |
varchar(100) |
NO |
UNI |
NULL |
|
| Entry_user |
varchar(60) |
NO |
|
NULL |
|
| Entry_dt |
datetime |
NO |
|
NULL |
|
| Update_user |
varchar(100) |
YES |
|
NULL |
|
| Update_dt |
datetime |
YES |
|
NULL |
|
---------------------------------------------------------+
6 rows in set (0.00 sec)
Here are the CREATE TABLE statements.
CREATE TABLE `dcs_item` (
`dcs_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`description` varchar(255) NOT NULL DEFAULT '',
`objects` longtext NOT NULL,
`notes` longtext NOT NULL,
`dcs_user_id` int(10) unsigned NOT NULL DEFAULT '0',
`deploy_date` date NOT NULL DEFAULT '0000-00-00',
`add_data` date NOT NULL DEFAULT '0000-00-00',
`type` int(10) unsigned NOT NULL DEFAULT '0',
`change_request_id` int(11) DEFAULT NULL,
`current_level` int(11) DEFAULT NULL,
`affects_inventory` int(11) DEFAULT NULL,
`db_schema_id` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`dcs_id`),
KEY `TYPE` (`type`),
KEY `DCS_USER_ID` (`dcs_user_id`),
KEY `current_level` (`current_level`),
KEY `change_request_id` (`change_request_id`)
) ENGINE=InnoDB AUTO_INCREMENT=27883 DEFAULT CHARSET=latin1;
CREATE TABLE `dcs_status_definition` (
`status_code` int(11) NOT NULL,
`description` varchar(30) DEFAULT NULL,
`color` varchar(20) DEFAULT NULL,
`active_status` char(1) DEFAULT 'A' COMMENT 'Used by DCS to determine if the status is Active (A) or Inactve (I), example: Certified = I, Submitted for Review = A',
`list_order` int(11) NOT NULL COMMENT 'number used to order list shown to user',
PRIMARY KEY (`status_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `requests` (
`id` int(10) unsigned NOT NULL DEFAULT '0',
`priority_rank` int(10) unsigned DEFAULT NULL,
`es3_priority` int(10) unsigned NOT NULL DEFAULT '0',
`customer_priority` int(10) unsigned NOT NULL DEFAULT '0',
`area` int(10) unsigned NOT NULL DEFAULT '0',
`request_desc` varchar(200) NOT NULL,
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`integration_id` int(10) unsigned NOT NULL DEFAULT '0',
`customer_contact_id` int(10) unsigned NOT NULL DEFAULT '0',
`summary` text NOT NULL,
`billable` char(1) NOT NULL DEFAULT '',
`proposed_cost` int(10) unsigned zerofill NOT NULL DEFAULT '0000000000',
`es3_cost` int(10) unsigned zerofill NOT NULL DEFAULT '0000000000',
`customer_cost` int(10) unsigned zerofill NOT NULL DEFAULT '0000000000',
`benefits` varchar(200) DEFAULT NULL,
`expected_es3_savings` varchar(200) DEFAULT NULL,
`project_status` int(10) unsigned NOT NULL DEFAULT '0',
`production_dt` datetime DEFAULT NULL,
`request_status` int(10) unsigned NOT NULL DEFAULT '0',
`comments` text,
`entry_dt` datetime DEFAULT NULL,
`Request_type` int(1) DEFAULT NULL COMMENT 'P = Project B = Bug',
`uat_resource` varchar(300) DEFAULT NULL,
`risks` varchar(2000) DEFAULT NULL,
`training` varchar(2000) DEFAULT NULL,
`load_performance` varchar(2000) DEFAULT NULL,
`pay_associated` varchar(2000) DEFAULT NULL,
`type` varchar(1) DEFAULT NULL,
`deployed_date` date DEFAULT NULL,
`developer` varchar(60) DEFAULT NULL,
`unit_test_dt` date DEFAULT NULL,
`approved_for_qa_flg` char(1) DEFAULT NULL,
`uat_test_complete_dt` date DEFAULT NULL,
`disable` enum('0','1') NOT NULL DEFAULT '0' COMMENT 'Column to state whether item is active for dropdown',
`ticket_nbr` mediumtext,
`release_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `Index_2` (`es3_priority`),
KEY `FK_requests_3` (`area`),
KEY `FK_requests_4` (`user_id`),
KEY `FK_requests_5` (`integration_id`),
KEY `FK_requests_7` (`project_status`),
KEY `FK_requests_8` (`request_status`),
KEY `FK_requests_6` (`customer_contact_id`),
KEY `FK_requests_11` (`customer_contact_id`),
KEY `FK_requests_2` (`customer_priority`),
KEY `Release_id_index` (`release_id`),
CONSTRAINT `FK_requests_1` FOREIGN KEY (`es3_priority`) REFERENCES `es3_priority` (`id`),
CONSTRAINT `FK_requests_2` FOREIGN KEY (`customer_priority`) REFERENCES `customer_priority` (`id`),
CONSTRAINT `FK_requests_3` FOREIGN KEY (`area`) REFERENCES `area` (`id`),
CONSTRAINT `FK_requests_4` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`),
CONSTRAINT `FK_requests_5` FOREIGN KEY (`integration_id`) REFERENCES `integration_contact` (`id`),
CONSTRAINT `FK_requests_6` FOREIGN KEY (`customer_contact_id`) REFERENCES `customer_contact` (`id`),
CONSTRAINT `FK_requests_7` FOREIGN KEY (`project_status`) REFERENCES `project_status` (`id`),
CONSTRAINT `FK_requests_8` FOREIGN KEY (`request_status`) REFERENCES `request_status` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `release` (
`Release_ID` int(11) NOT NULL AUTO_INCREMENT,
`Release_date` datetime NOT NULL COMMENT 'Deployment date',
`Datacenter_ID` int(11) NOT NULL COMMENT 'Datacenter id, York or Optical/HMN',
`release_status_id` int(11) NOT NULL,
`Automated_build` int(11) NOT NULL DEFAULT '0' COMMENT '0=Not automated build, 1=automated build',
`Entry_user` varchar(60) NOT NULL,
`Entry_dt` datetime NOT NULL,
`Update_user` varchar(100) DEFAULT NULL,
`Update_dt` datetime DEFAULT NULL,
`show_in_release_notes` int(11) DEFAULT '0',
`comments` varchar(100) DEFAULT NULL,
PRIMARY KEY (`Release_ID`),
UNIQUE KEY `Release_ID_UNIQUE` (`Release_ID`),
KEY `Release_date_NORMAL` (`Release_date`),
KEY `Automated_build_NORMAL` (`Automated_build`)
) ENGINE=InnoDB AUTO_INCREMENT=193 DEFAULT CHARSET=latin1;
CREATE TABLE `datacenter` (
`Datacenter_ID` int(11) NOT NULL AUTO_INCREMENT,
`Datacenter_name` varchar(100) NOT NULL COMMENT 'York or Optical/HMN',
`Entry_user` varchar(60) NOT NULL,
`Entry_dt` datetime NOT NULL,
`Update_user` varchar(100) DEFAULT NULL,
`Update_dt` datetime DEFAULT NULL,
PRIMARY KEY (`Datacenter_ID`),
UNIQUE KEY `Datacenter_name_UNIQUE` (`Datacenter_name`),
UNIQUE KEY `Datacenter_ID_UNIQUE` (`Datacenter_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
|