123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace JinDouYun\Dao\Customer;
- use JinDouYun\Dao\BaseDao;
- class DCustomerVisitsLog extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'customer_visits_log_1';
- $this->_primary = 'id';
- $this->_fields = [
- 'id', //int(10) NOT NULL AUTO_INCREMENT COMMENT '主键id',
- 'usercenterId', //int(11) NOT NULL COMMENT '客户id',
- 'customerId', //int(11) NOT NULL COMMENT '客户浏览记录id',
- 'shopId', //int(11) DEFAULT NULL COMMENT '店铺id',
- 'goodsId', //int(11) DEFAULT '0' COMMENT '商品id',
- 'createTime', //int(11) NOT NULL COMMENT '创建记录时间',
- 'updateTime', //int(11) DEFAULT NULL COMMENT '修改记录时间',
- 'extends', //json DEFAULT NULL COMMENT '扩展json',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
-
- parent::__construct($serviceDB);
- }
- }
|