12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- /**
- * App\Models\PersonFavorite
- *
- * @property int $id
- * @property int $uid 会员uid
- * @property int $job_id 职位ID
- * @property string $job_name 职位名称
- * @property \Illuminate\Support\Carbon|null $created_at
- * @property \Illuminate\Support\Carbon|null $updated_at
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PersonFavorite newModelQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PersonFavorite newQuery()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PersonFavorite query()
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PersonFavorite whereCreatedAt($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PersonFavorite whereId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PersonFavorite whereJobId($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PersonFavorite whereJobName($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PersonFavorite whereUid($value)
- * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PersonFavorite whereUpdatedAt($value)
- * @mixin \Eloquent
- */
- class PersonFavorite extends Model
- {
- protected $table = 'person_favorite';
- protected $fillable = ['uid','job_id','job_name'];
- protected $guarded = [];
- public function jobs()
- {
- return $this->belongsTo(Jobs::class, 'job_id');
- }
-
- public function personalJobsApply()
- {
- return $this->hasMany(PersonalJobsApply::class,'jobs_id','job_id');
- }
-
-
- }
|