qii.sql 957 B

123456789101112131415161718192021222324252627282930
  1. CREATE DATABASE IF NOT EXISTS qii DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
  2. use qii;
  3. CREATE TABLE IF NOT EXISTS `database_form_data` (
  4. `id` int(11) NOT NULL AUTO_INCREMENT,
  5. `form_id` int(11) NOT NULL,
  6. `form_uniqid` char(41) NOT NULL,
  7. `form_value` text NOT NULL,
  8. `status` tinyint(1) NOT NULL DEFAULT '1',
  9. `add_time` int(11) DEFAULT NULL,
  10. `update_time` int(11) DEFAULT NULL,
  11. PRIMARY KEY (`id`)
  12. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  13. CREATE TABLE IF NOT EXISTS `database_form_setting` (
  14. `id` int(11) NOT NULL AUTO_INCREMENT,
  15. `uid` int(11) DEFAULT NULL,
  16. `uniqid` char(41) NOT NULL,
  17. `mask` char(32) NOT NULL,
  18. `form` text,
  19. `form_serialize` text,
  20. `status` tinyint(1) NOT NULL DEFAULT '1',
  21. `add_time` int(11) DEFAULT NULL,
  22. `update_time` int(11) DEFAULT NULL,
  23. PRIMARY KEY (`id`),
  24. UNIQUE KEY `uniqid_UNIQUE` (`uniqid`),
  25. UNIQUE KEY `mask_UNIQUE` (`mask`)
  26. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;