DCommonApp.Class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * 用户常用应用管理Dao
  4. * Created by PhpStorm.
  5. * User: 小威
  6. * Date: 2020/01/11
  7. * Time: 09:49
  8. */
  9. namespace JinDouYun\Dao\SystemSettings;
  10. use JinDouYun\Dao\BaseDao;
  11. class DCommonApp extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'common_app';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  19. "userCenterId", //int(10) NOT NULL COMMENT '用户userCenterId',
  20. "enterpriseId", //int(10) NOT NULL COMMENT '企业id',
  21. "content", //json NOT NULL COMMENT 'json内容',
  22. "updateTime", //int(10) NOT NULL COMMENT '更改时间',
  23. "createTime", //int(10) NOT NULL COMMENT '创建时间',
  24. "extend", //json DEFAULT NULL COMMENT '扩展字段',
  25. ];
  26. $this->_readonly = ['id'];
  27. $this->_create_autofill = [
  28. 'createTime' => time()
  29. ];
  30. $this->_update_autofill = [
  31. 'updateTime' => time()
  32. ];
  33. parent::__construct($serviceDB);
  34. }
  35. }