DPageDefault.Class.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * 平台默认模版表
  4. * Created by PhpStorm.
  5. * User: XiaoMing
  6. * Date: 2020/4/14
  7. * Time: 9:51
  8. */
  9. namespace JinDouYun\Dao\System;
  10. use JinDouYun\Dao\BaseDao;
  11. class DPageDefault extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'page_default';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id",//int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '页面id',
  19. "pageType",//tinyint(3) unsigned NOT NULL DEFAULT '10' COMMENT '页面类型(1首页 2自定义页)',
  20. "pageName",//varchar(255) NOT NULL DEFAULT '' COMMENT '页面名称',
  21. "pageData",//json DEFAULT NULL COMMENT '页面数据',
  22. "enableStatus",//tinyint(3) NOT NULL DEFAULT '5' COMMENT '状态 默认5 正在使用 4未使用',
  23. "deleteStatus",//tinyint(3) NOT NULL DEFAULT '5' COMMENT '是否删除 默认5 正常 4删除',
  24. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  25. "isDefault",// tinyint(3) NOT NULL DEFAULT '4' COMMENT '是否默认模版 默认5 5是 4否',
  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. }