DProcessSetting.Class.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace JinDouYun\Dao\System;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * @copyright Copyright (c) https://www.qianniaovip.com All rights reserved
  6. * Description: 流程配置
  7. * Class DProcessSetting
  8. * @package JinDouYun\Dao\System
  9. */
  10. class DProcessSetting extends BaseDao
  11. {
  12. /**
  13. * DProcessSetting constructor.
  14. * @param string $serviceDB
  15. */
  16. public function __construct($serviceDB = 'default')
  17. {
  18. $this->_table = 'process_setting';
  19. $this->_primary = 'id';
  20. $this->_fields = [
  21. "id",//int(11) NOT NULL AUTO_INCREMENT,
  22. "processType",//int(10) NOT NULL DEFAULT '0' COMMENT '流程类型',
  23. "content",//json DEFAULT NULL COMMENT '流程配置',
  24. "enterpriseId",//int(11) NOT NULL COMMENT '企业id',
  25. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  26. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  27. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  28. ];
  29. $this->_readonly = ['id'];
  30. $this->_create_autofill = [
  31. 'createTime' => time()
  32. ];
  33. $this->_update_autofill = [
  34. 'updateTime' => time()
  35. ];
  36. parent::__construct($serviceDB);
  37. }
  38. }