moch_yusuf_hermawan/adaptive-english-lesson-main/app/StdExercise.php
2024-12-31 09:41:52 +07:00

39 lines
655 B
PHP

<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class StdExercise extends Model
{
protected $table = 'm_std_exercises';
public $timestamps = false;
protected $fillable = [
'std_learning_id',
'exercise_id',
'answer',
'is_correct',
'score',
];
protected $dates = [
'ts_entri',
];
public function stdlearning()
{
return $this->belongsTo(StdLearning::class);
}
public function user()
{
return $this->belongsTo(User::class);
}
public function exercise()
{
return $this->belongsTo(Exercise::class);
}
}