]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Result.php
fix big key size
[alttp.git] / app / Models / Result.php
index e693fc7de5d510783d7a0ea24ecfa4d326ce9bc9..3ced393cc64b1d13ebe3d2970e399e48550a9c13 100644 (file)
@@ -17,4 +17,19 @@ class Result extends Model
                return $this->belongsTo(Participant::class);
        }
 
+       public function getHasFinishedAttribute() {
+               return $this->time > 0 || $this->forfeit;
+       }
+
+       protected $appends = [
+               'has_finished',
+       ];
+
+       protected $fillable = [
+               'forfeit',
+               'round_id',
+               'time',
+               'user_id',
+       ];
+
 }