36 lines
747 B
PHP
36 lines
747 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class InternshipJournalEntry extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'career_application_id',
|
|
'day_number',
|
|
'date',
|
|
'content',
|
|
'is_retroactive',
|
|
'supervisor_approved',
|
|
'unit_approved',
|
|
];
|
|
|
|
protected $casts = [
|
|
'is_retroactive' => 'boolean',
|
|
'supervisor_approved' => 'boolean',
|
|
'unit_approved' => 'boolean',
|
|
];
|
|
|
|
/**
|
|
* Get the career application that owns this journal entry.
|
|
*/
|
|
public function careerApplication()
|
|
{
|
|
return $this->belongsTo(CareerApplication::class);
|
|
}
|
|
}
|