feat: Lernapp mit Mathe/Deutsch/Englisch, Münzsystem und Belohnungen
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
class QuestionAttempt extends Model {
|
||||
public $timestamps = false;
|
||||
protected $fillable = ['user_id','question_id','is_correct','points_earned'];
|
||||
protected $casts = ['is_correct' => 'boolean', 'created_at' => 'datetime'];
|
||||
public function user() { return $this->belongsTo(User::class); }
|
||||
public function question() { return $this->belongsTo(Question::class); }
|
||||
}
|
||||
Reference in New Issue
Block a user