ProTeam.php 453 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace App\Models;
  3. # use Illuminate\Database\Eloquent\Model;
  4. class ProTeam extends Model
  5. {
  6. protected $table = 'pro_team';
  7. public function mcp()
  8. {
  9. return $this->hasOne(Pro::class, 'id', 'mcp_pro_id');
  10. }
  11. public function assistant()
  12. {
  13. return $this->hasOne(Pro::class, 'id', 'assistant_pro_id');
  14. }
  15. public function rd()
  16. {
  17. return $this->hasOne(Pro::class, 'id', 'rd_pro_id');
  18. }
  19. }