DCustomerVisitsLog.Class.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace JinDouYun\Dao\Customer;
  3. use JinDouYun\Dao\BaseDao;
  4. class DCustomerVisitsLog extends BaseDao
  5. {
  6. public function __construct($serviceDB = 'default')
  7. {
  8. $this->_table = 'customer_visits_log_1';
  9. $this->_primary = 'id';
  10. $this->_fields = [
  11. 'id', //int(10) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  12. 'usercenterId', //int(11) NOT NULL COMMENT '客户id',
  13. 'customerId', //int(11) NOT NULL COMMENT '客户浏览记录id',
  14. 'shopId', //int(11) DEFAULT NULL COMMENT '店铺id',
  15. 'goodsId', //int(11) DEFAULT '0' COMMENT '商品id',
  16. 'createTime', //int(11) NOT NULL COMMENT '创建记录时间',
  17. 'updateTime', //int(11) DEFAULT NULL COMMENT '修改记录时间',
  18. 'extends', //json DEFAULT NULL COMMENT '扩展json',
  19. ];
  20. $this->_readonly = ['id'];
  21. $this->_create_autofill = [
  22. 'createTime' => time()
  23. ];
  24. $this->_update_autofill = [
  25. 'updateTime' => time()
  26. ];
  27. parent::__construct($serviceDB);
  28. }
  29. }