DCommissionDesc.Class.php 928 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * 分销文字设置Dao
  4. * Created by PhpStorm.
  5. * User: haoren
  6. * Date: 2020/07/22
  7. * Time: 15:00
  8. */
  9. namespace JinDouYun\Dao\Commission;
  10. use JinDouYun\Dao\BaseDao;
  11. class DCommissionDesc extends BaseDao
  12. {
  13. public function __construct($serviceDB = 'default')
  14. {
  15. $this->_table = 'commission_desc';
  16. $this->_primary = 'id';
  17. $this->_fields = [
  18. "enterpriseId", //int(10) NOT NULL COMMENT '企业id',
  19. "desc", //json DEFAULT NULL COMMENT '文字设置内容',
  20. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  21. "updateTime", //int(10) 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. }