DCustomerCommunication.Class.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace JinDouYun\Dao\Customer;
  3. use JinDouYun\Dao\BaseDao;
  4. class DCustomerCommunication extends BaseDao
  5. {
  6. public function __construct($serviceDB = 'default')
  7. {
  8. $this->_table = 'customer_communication';
  9. $this->_primary = 'id';
  10. $this->_fields = [
  11. "id", //int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
  12. "customerId", //int(10) DEFAULT NULL COMMENT '客户id',
  13. "staffId", //int(10) DEFAULT NULL COMMENT '员工id',
  14. "content", //varchar(255) DEFAULT NULL COMMENT '描述',
  15. "time", //int(10) DEFAULT NULL COMMENT '跟进时间',
  16. 'location',//varchar(255) DEFAULT NULL COMMENT '定位',
  17. 'picture',//mediumblob COMMENT '图片地址',
  18. 'deleteStatus',
  19. "createTime", //int(10) DEFAULT NULL COMMENT '创建时间',
  20. "updateTime", //int(10) DEFAULT NULL COMMENT '修改时间',
  21. ];
  22. $this->_readonly = ['id'];
  23. $this->_create_autofill = [
  24. 'createTime' => time()
  25. ];
  26. $this->_update_autofill = [
  27. 'updateTime' => time()
  28. ];
  29. parent::__construct($serviceDB);
  30. }
  31. }