| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace app\common\model;
- class Seller extends BaseModel
- {
- /**
- * @var string
- */
- protected $name = 'seller';
- /**
- * @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/9 9:38
- *
- * @return \think\model\relation\BelongsTo
- */
- public function user()
- {
- return $this->belongsTo('Users','user_id','id');
- }
- }
|