12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- /**
- * 购物车Dao
- * Created by PhpStorm.
- * User: XiaoMing
- * Date: 2019/11/6
- * Time: 16:13
- */
- namespace JinDouYun\Dao\Cart;
- use JinDouYun\Dao\BaseDao;
- class DCart extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'cart';
- $this->_primary = 'id';
- $this->_fields = [
- "id",//int(10) NOT NULL AUTO_INCREMENT,
- "skuId",// json DEFAULT NULL COMMENT 'skuId',
- "goodsCode",//varchar(255) NOT NULL DEFAULT '' COMMENT '商品编号',
- "goodsId",//int(10) NOT NULL DEFAULT '0' COMMENT '商品Id',
- "buyNum",//int(10) NOT NULL COMMENT '购买数量',
- "userCenterId",//int(10) NOT NULL DEFAULT '0' COMMENT 'userCenterId',
- "shopId",//int(10) NOT NULL DEFAULT '0' COMMENT '店铺Id',
- "shopCode",//varchar(255) DEFAULT '' COMMENT '店铺编码',
- "selection",//tinyint(3) NOT NULL DEFAULT '4' COMMENT '是否选中 默认4 未选中 5已选中',
- "source",//tinyint(3) DEFAULT NULL COMMENT '订单来源 默认1 ios 2android 3小程序 4后台创建',
- "extends",//json DEFAULT NULL COMMENT '拓展字段',
- "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
- "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
- "goodsBasicId",//int(10) NOT NULL DEFAULT '0' COMMENT '',
- "warehouseId",//仓库id
- "activityId",//int(10) NOT NULL DEFAULT '0' COMMENT '活动id',
- "cashierUid"//cashierUid
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|