DBasicSetup.Class.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * 基本设置
  4. * Created by PhpStorm.
  5. * User: XiaoMing
  6. * Date: 2019/12/5
  7. * Time: 15:22
  8. */
  9. namespace JinDouYun\Dao\System;
  10. use JinDouYun\Dao\BaseDao;
  11. class DBasicSetup extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'basic_setup';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  19. "enterpriseId", //int(10) NOT NULL COMMENT '企业Id',
  20. "basicData", //json DEFAULT NULL COMMENT '模块数据',
  21. "extends", //json DEFAULT NULL COMMENT '拓展字段',
  22. "createTime", //int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  23. "updateTime", //int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  24. ];
  25. $this->_readonly = ['id'];
  26. $this->_create_autofill = [
  27. 'createTime' => time()
  28. ];
  29. $this->_update_autofill = [
  30. 'updateTime' => time()
  31. ];
  32. parent::__construct($serviceDB);
  33. }
  34. }