Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE IF NOT EXISTS `task` (
- `t_id` int(11) NOT NULL AUTO_INCREMENT,
- `t_detail` text NOT NULL,
- `t_stat` tinyint(4) NOT NULL DEFAULT '0',
- `t_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `t_type` int(11) NOT NULL,
- PRIMARY KEY (`t_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
- --
- -- Dumping data for table `task`
- --
- -- --------------------------------------------------------
- --
- -- Table structure for table `task_report`
- --
- CREATE TABLE IF NOT EXISTS `task_report` (
- `r_id` int(11) NOT NULL AUTO_INCREMENT,
- `r_task` int(11) NOT NULL,
- `r_detail` text NOT NULL,
- `r_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`r_id`),
- KEY `r_task` (`r_task`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `task_type`
- --
- CREATE TABLE IF NOT EXISTS `task_type` (
- `type_id` int(11) NOT NULL AUTO_INCREMENT,
- `type_name` varchar(40) NOT NULL,
- PRIMARY KEY (`type_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
- --
- -- Dumping data for table `task_type`
- --
- INSERT INTO `task_type` (`type_id`, `type_name`) VALUES
- (1, 'email');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement