DOem.Class.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: kang
  5. * Date: 2021/3/15
  6. * Time: 12:27
  7. */
  8. namespace JinDouYun\Dao\Oem;
  9. use JinDouYun\Dao\BaseDao;
  10. class DOem extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'oem_1';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id' , //int(10) NOT NULL AUTO_INCREMENT COMMENT 'oem主键id',
  18. 'enterpriseId', //tinyint(10) NOT NULL COMMENT '企业id',
  19. 'MiniprogramLogo', //varchar(255) NOT NULL COMMENT '小程序logo',
  20. 'logo' , //varchar(255) NOT NULL COMMENT 'logourl',
  21. 'createTime' , //int(11) NOT NULL COMMENT '创建时间',
  22. 'updateTime' , //int(11) DEFAULT NULL COMMENT '修改时间',
  23. 'extend' , //json DEFAULT NULL COMMENT '扩展',
  24. 'domain' , //varchar(255) NOT NULL COMMENT '主域名',
  25. 'tencentCloud' , // json DEFAULT NULL COMMENT '腾讯云',
  26. 'sms' , //json DEFAULT NULL COMMENT '短信配置',
  27. 'weixinOpenAppid',
  28. 'weixinOpen',
  29. 'apiDomain'
  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. }