DAppVersion.Class.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace JinDouYun\Dao\System;
  3. use JinDouYun\Dao\BaseDao;
  4. /**
  5. * Class DAppVersion
  6. * @package JinDouYun\Dao\System
  7. */
  8. class DAppVersion extends BaseDao
  9. {
  10. public function __construct($serviceDB = 'default')
  11. {
  12. $this->_table = 'app_version';
  13. $this->_primary = 'id';
  14. $this->_fields = [
  15. "id",//int(10) NOT NULL AUTO_INCREMENT,
  16. "enterpriseId",//int(10) DEFAULT NULL COMMENT '企业id',
  17. "appVersion",//varchar(50) DEFAULT '' COMMENT '安卓应用版本',
  18. "downloadUrl",//varchar(255) DEFAULT '' COMMENT '安卓下载地址',
  19. "createTime",//int(10) DEFAULT NULL COMMENT '创建时间',
  20. "updateTime",//int(10) DEFAULT NULL COMMENT '更新时间',
  21. "extend",//json DEFAULT NULL COMMENT '扩展字段',
  22. ];
  23. $this->_readonly = ['id'];
  24. $this->_create_autofill = [
  25. 'createTime' => time()
  26. ];
  27. $this->_update_autofill = [
  28. 'updateTime' => time()
  29. ];
  30. parent::__construct($serviceDB);
  31. }
  32. }