File: /var/www/matriculas_api_dev/app/Models/EnrollmentPeriodConfig.php
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class EnrollmentPeriodConfig extends Model
{
protected $table = 'enrollment_period_configs';
protected $fillable = [
'period_id',
'enrollment_type',
'is_active',
'start_date',
'end_date',
'target_year',
'notes',
];
protected $casts = [
'is_active' => 'boolean',
'start_date' => 'date',
'end_date' => 'date',
];
public function period()
{
return $this->belongsTo(Period::class, 'period_id');
}
}