   `url` text NOT NULL,
   `type` varchar(32) NOT NULL,
   `action` varchar(32) NOT NULL,
-  `function` varchar(32) NOT NULL,
+  `function` varchar(32) DEFAULT NULL,
   `data` text NOT NULL,
   `share_type` varchar(10) NOT NULL,
   `used` int(10) NOT NULL DEFAULT '0',
-  `created_at` timestamp,
+  `created_at` timestamp NULL DEFAULT NULL,
   PRIMARY KEY (`code`)
 ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 

  `modified_by` int(11) DEFAULT NULL,
  `modified_at` datetime DEFAULT NULL,
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=119291 DEFAULT CHARSET=latin1;

CREATE TABLE `webgroup` (
  `webgroup_id` int(11) NOT NULL AUTO_INCREMENT,

  `identity` varchar(255) DEFAULT NULL,
  `type` enum('local','openid','ldap') NOT NULL DEFAULT 'local',
  `data` text,
  `status` enum('active','pending','disabled') DEFAULT NULL,
  `salt` varchar(8) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
