install.sql 874 B

123456789101112131415161718192021
  1. CREATE TABLE IF NOT EXISTS `__PREFIX__faqueue_jobs` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `queue` varchar(255) NOT NULL,
  4. `payload` longtext NOT NULL,
  5. `attempts` tinyint(3) unsigned NOT NULL,
  6. `reserved` tinyint(3) unsigned NOT NULL,
  7. `reserved_at` int(10) unsigned DEFAULT NULL,
  8. `available_at` int(10) unsigned NOT NULL,
  9. `created_at` int(10) unsigned NOT NULL,
  10. PRIMARY KEY (`id`)
  11. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  12. CREATE TABLE `__PREFIX__faqueue_log` (
  13. `id` int(11) NOT NULL AUTO_INCREMENT,
  14. `queue` varchar(255) DEFAULT NULL COMMENT '队列名',
  15. `job` varchar(100) DEFAULT NULL COMMENT '执行类',
  16. `data` longtext COMMENT '任务数据',
  17. `create_time` int(10) DEFAULT NULL COMMENT '开始执行时间',
  18. `update_time` int(10) DEFAULT NULL COMMENT '更新时间',
  19. PRIMARY KEY (`id`)
  20. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;