DEnterpriseBindPayment.Class.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: XiaoMing
  5. * Date: 2019/12/4
  6. * Time: 14:36
  7. */
  8. namespace JinDouYun\Dao\System;
  9. use JinDouYun\Dao\BaseDao;
  10. class DEnterpriseBindPayment extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = 'enterprise_bind_payment';
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. "id", //int(10) NOT NULL AUTO_INCREMENT,
  18. "settingId", //varchar(50) NOT NULL DEFAULT '' COMMENT '支付方式id',
  19. "defaultStatus", //tinyint(3) NOT NULL DEFAULT '4' COMMENT '是否默认 默认4 否 5是',
  20. "enableStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '状态 默认5 启用 4禁用',
  21. "deleteStatus", //tinyint(3) NOT NULL DEFAULT '5' COMMENT '是否删除 默认5 正常 4删除',
  22. "enterpriseId", //int(10) NOT NULL COMMENT '企业Id',
  23. "paymentData", //json DEFAULT NULL COMMENT '支付配置',
  24. "extends", //json DEFAULT NULL COMMENT '拓展字段',
  25. "createTime", //int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
  26. "updateTime", //int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  27. "logo",// varchar(255) NOT NULL DEFAULT '' COMMENT '支付logo',
  28. "paymentType",
  29. ];
  30. $this->_readonly = ['id'];
  31. $this->_create_autofill = [
  32. 'createTime' => time()
  33. ];
  34. $this->_update_autofill = [
  35. 'updateTime' => time()
  36. ];
  37. parent::__construct($serviceDB);
  38. }
  39. }