DPage.Class.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * app diy页面
  4. * Created by PhpStorm.
  5. * User: XiaoMing
  6. * Date: 2020/3/19
  7. * Time: 12:13
  8. */
  9. namespace JinDouYun\Dao\System;
  10. use JinDouYun\Dao\BaseDao;
  11. class DPage extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'page';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "id",//int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '页面id',
  19. "shopId",//
  20. "merchantId",//
  21. "pageType",//tinyint(3) unsigned NOT NULL DEFAULT '10' COMMENT '页面类型(1首页 2自定义页)',
  22. "pageName",//varchar(255) NOT NULL DEFAULT '' COMMENT '页面名称',
  23. "pageData",//json DEFAULT NULL COMMENT '页面数据',
  24. "enableStatus",//tinyint(3) NOT NULL DEFAULT '5' COMMENT '状态 默认5 正在使用 4未使用',
  25. "deleteStatus",//tinyint(3) NOT NULL DEFAULT '5' COMMENT '是否删除 默认5 正常 4删除',
  26. "extends",//json DEFAULT NULL COMMENT '拓展字段',
  27. "isDefault",//tinyint(3) NOT NULL DEFAULT '4' COMMENT '是否默认模版 默认5 5是 4否',
  28. "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  29. "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  30. ];
  31. $this->_readonly = ['id'];
  32. $this->_create_autofill = [
  33. 'createTime' => time()
  34. ];
  35. $this->_update_autofill = [
  36. 'updateTime' => time()
  37. ];
  38. parent::__construct($serviceDB);
  39. }
  40. }