Advertisement
GWibisono

task

Oct 29th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.28 KB | None | 0 0
  1. CREATE TABLE IF NOT EXISTS `task` (
  2.   `t_id` int(11) NOT NULL AUTO_INCREMENT,
  3.   `t_detail` text NOT NULL,
  4.   `t_stat` tinyint(4) NOT NULL DEFAULT '0',
  5.   `t_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  6.   `t_type` int(11) NOT NULL,
  7.   PRIMARY KEY (`t_id`)
  8. ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
  9.  
  10. --
  11. -- Dumping data for table `task`
  12. --
  13.  
  14. -- --------------------------------------------------------
  15.  
  16. --
  17. -- Table structure for table `task_report`
  18. --
  19.  
  20. CREATE TABLE IF NOT EXISTS `task_report` (
  21.   `r_id` int(11) NOT NULL AUTO_INCREMENT,
  22.   `r_task` int(11) NOT NULL,
  23.   `r_detail` text NOT NULL,
  24.   `r_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  25.   PRIMARY KEY (`r_id`),
  26.   KEY `r_task` (`r_task`)
  27. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  28.  
  29. -- --------------------------------------------------------
  30.  
  31. --
  32. -- Table structure for table `task_type`
  33. --
  34.  
  35. CREATE TABLE IF NOT EXISTS `task_type` (
  36.   `type_id` int(11) NOT NULL AUTO_INCREMENT,
  37.   `type_name` varchar(40) NOT NULL,
  38.   PRIMARY KEY (`type_id`)
  39. ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
  40.  
  41. --
  42. -- Dumping data for table `task_type`
  43. --
  44.  
  45. INSERT INTO `task_type` (`type_id`, `type_name`) VALUES
  46. (1, 'email');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement