123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- /**
- * Created by PhpStorm.
- * User: wxj
- * Date: 2019/10/30
- * Time: 14:17
- */
- namespace JinDouYun\Dao\Goods;
- use JinDouYun\Dao\BaseDao;
- class DGoodsCollect extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'goods_collect';
- $this->_primary = 'id';
- $this->_fields = [
- 'id',//int(11) NOT NULL AUTO_INCREMENT,
- 'userCenterId',//int(11) NOT NULL COMMENT '会员Id',
- 'goodsId',//int(11) NOT NULL COMMENT '商品id',
- 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
- 'updateTime',//int(11) DEFAULT NULL COMMENT '修改时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|