FuwaiJobs.php 545 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2019/4/24
  6. * Time: 17:35
  7. */
  8. namespace App\Transfer;
  9. use Illuminate\Database\Eloquent\Model;
  10. class FuwaiJobs extends Model
  11. {
  12. protected $connection = "transfer_center";
  13. protected $table = "qs_fuwai_jobs";
  14. protected $guarded = [];
  15. public function companyprofile()
  16. {
  17. return $this->belongsTo(CompanyProfile::class, 'company_id');
  18. }
  19. public function jobfairContact()
  20. {
  21. return $this->hasOne(JobfairJobContact::class, 'pid');
  22. }
  23. }