TaxiUser.php 602 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\common\model;
  3. class TaxiUser extends BaseModel
  4. {
  5. /**
  6. * @var string
  7. */
  8. protected $name = 'taxi_user';
  9. /**
  10. * @var array
  11. */
  12. protected $auto = [];
  13. /**
  14. * @var array
  15. */
  16. protected $insert = ['created_at','updated_at'];
  17. /**
  18. * @var array
  19. */
  20. protected $update = ['updated_at'];
  21. public function user(): \think\model\relation\BelongsTo
  22. {
  23. return $this->belongsTo('\app\common\model\Users', 'user_id')
  24. ->field('id,nickname,partnership,taxi_property');
  25. }
  26. }