DEnterpriseTemplateModule.Class.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * 企业模版模块数据
  4. * Created by PhpStorm.
  5. * User: XiaoMing
  6. * Date: 2019/11/29
  7. * Time: 15:16
  8. */
  9. namespace JinDouYun\Dao\System;
  10. use JinDouYun\Dao\BaseDao;
  11. class DEnterpriseTemplateModule extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'enterprise_template_module';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id", //int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  19. "templateId", //int(10) NOT NULL COMMENT '模版Id',
  20. "moduleId", //int(10) NOT NULL COMMENT '模版->模块Id',
  21. "moduleAlias",// varchar(50) NOT NULL COMMENT '模块别名',
  22. "moduleData", //json DEFAULT NULL COMMENT '模块数据',
  23. "extends", //json DEFAULT NULL COMMENT '拓展字段',
  24. "enableStatus",// tinyint(3) NOT NULL DEFAULT '5' COMMENT '模版使用状态 默认5 正在使用 4未使用',
  25. "createTime", //int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  26. "updateTime", //int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  27. ];
  28. $this->_readonly = ['id'];
  29. $this->_create_autofill = [
  30. 'createTime' => time()
  31. ];
  32. $this->_update_autofill = [
  33. 'updateTime' => time()
  34. ];
  35. parent::__construct($serviceDB);
  36. }
  37. }