New_Micro_Learning/backend/app/Modules/Learner/Domain/BlockProgress.php

21 خطوط
605 B
PHP

<?php
namespace App\Modules\Learner\Domain;
use Illuminate\Database\Eloquent\Concerns\HasUlids;
use Illuminate\Database\Eloquent\Model;
class BlockProgress extends Model
{
use HasUlids;
protected $table = 'block_progress';
protected $fillable = ['organization_id', 'assignment_id', 'learner_id', 'lesson_id', 'block_id', 'status', 'score', 'response', 'first_viewed_at', 'completed_at'];
protected function casts(): array
{
return ['score' => 'decimal:4', 'response' => 'array', 'first_viewed_at' => 'immutable_datetime', 'completed_at' => 'immutable_datetime'];
}
}