| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace app\common\model;
- class GoodsOrderDetail extends BaseModel
- {
- /**
- * @var string
- */
- protected $name = 'goods_order_detail';
- /**
- * @var array
- */
- protected $auto = [];
- /**
- * @var array
- */
- protected $insert = ['created_at','updated_at'];
- /**
- * @var array
- */
- protected $update = ['updated_at'];
- /**
- *
- * @author 许祖兴 < zuxing.xu@lettered.cn>
- * @date 2020/7/3 9:14
- *
- * @return \think\model\relation\BelongsTo
- */
- public function goods()
- {
- return $this->belongsTo('Goods','goods_id','id');
- }
- }
|