You've already forked isop-mirror
37 lines
727 B
PHP
37 lines
727 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Internship extends Model
|
|
{
|
|
/** @use HasFactory<\Database\Factories\InternshipFactory> */
|
|
use HasFactory;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var list<string>
|
|
*/
|
|
protected $fillable = [
|
|
'user_id',
|
|
'company_id',
|
|
'start',
|
|
'end',
|
|
'year_of_study',
|
|
'semester',
|
|
'position_description',
|
|
'agreement',
|
|
];
|
|
|
|
/**
|
|
* Get the statuses for the internship.
|
|
*/
|
|
public function statuses()
|
|
{
|
|
return $this->hasMany(InternshipStatus::class, 'internship_id');
|
|
}
|
|
}
|