Advertisement
Guest User

table footests

a guest
Jun 28th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.91 KB | None | 0 0
  1. | footests | CREATE TABLE `footests` (
  2.   `id` int(11) NOT NULL,
  3.   `parent_id` int(11) DEFAULT NULL,
  4.   `leak_id` int(11) DEFAULT NULL,
  5.   `inspection_type` varchar(50) DEFAULT NULL,
  6.   `inspection_method` varchar(50) DEFAULT NULL,
  7.   `l_component_type` varchar(50) DEFAULT NULL,
  8.   `repair_notes` varchar(10000) DEFAULT NULL,
  9.   `remonitoring_date` datetime DEFAULT NULL,
  10.   `remonitoring_notes` varchar(10000) DEFAULT NULL,
  11.   `test_type` varchar(15) DEFAULT NULL,
  12.   `is_fixed` tinyint(1) DEFAULT NULL,
  13.   `is_delayed` tinyint(1) DEFAULT NULL,
  14.   `days_open` int(11) DEFAULT NULL,
  15.   `delay_description` varchar(10000) DEFAULT NULL,
  16.   PRIMARY KEY (`id`),
  17.   KEY `parent_id` (`parent_id`),
  18.   CONSTRAINT `footests_ibfk_1` FOREIGN KEY (`id`) REFERENCES `tests` (`id`) ON DELETE CASCADE,
  19.   CONSTRAINT `footests_ibfk_2` FOREIGN KEY (`parent_id`) REFERENCES `footests` (`id`) ON DELETE CASCADE
  20. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement