| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace app\common\model;
- class FarmlandShipping extends BaseModel
- {
- /**
- * @var string
- */
- protected $name = 'farmland_shipping';
- /**
- * @var array
- */
- protected $auto = [];
- /**
- * @var array
- */
- protected $insert = ['created_at','updated_at'];
- /**
- * @var array
- */
- protected $update = ['updated_at'];
- /**
- *
- * @author 许祖兴 < zuxing.xu@lettered.cn>
- * @date 2021/1/25 17:22
- *
- * @return mixed
- */
- public function order()
- {
- return $this->belongsTo('FarmlandOrder','order_id','id');
- }
- }
|