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 RewardRedemption extends Model {
|
||||
protected $fillable = ['user_id','reward_id','status','points_spent','note','resolved_at','resolved_by'];
|
||||
protected $casts = ['resolved_at' => 'datetime'];
|
||||
public function user() { return $this->belongsTo(User::class); }
|
||||
public function reward() { return $this->belongsTo(Reward::class); }
|
||||
public function resolver() { return $this->belongsTo(User::class, 'resolved_by'); }
|
||||
}
|
||||
Reference in New Issue
Block a user