1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * 订单优惠表Dao
- * Created by PhpStorm.
- * User: XiaoMing
- * Date: 2019/10/31
- * Time: 15:58
- */
- namespace JinDouYun\Dao\Order;
- use JinDouYun\Dao\BaseDao;
- class DOrderCoupon extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'order_coupon';
- $this->_primary = 'id';
- $this->_fields = [
- "id",//int(10) NOT NULL AUTO_INCREMENT,
- "orderId",//int(10) NOT NULL DEFAULT '0' COMMENT '订单Id',
- "goodsId",//int(10) NOT NULL DEFAULT '0' COMMENT '商品id',
- "shopId",// int(10) NOT NULL DEFAULT '0' COMMENT '店铺id',
- "couponAmount",//decimal(12,2) default '0.00' COMMENT '商品优惠金额',
- "couponInfo",//json DEFAULT NULL COMMENT '优惠信息',
- "extends",//json DEFAULT NULL COMMENT '拓展字段',
- "createTime",//int(10) NOT NULL DEFAULT '0' COMMENT '创建时间',
- "updateTime",//int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- $this->_update_autofill = [
- 'updateTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|