]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Participant.php
add model dummies
[alttp.git] / app / Models / Participant.php
diff --git a/app/Models/Participant.php b/app/Models/Participant.php
new file mode 100644 (file)
index 0000000..36ab3cf
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+namespace App\Models;
+
+use Illuminate\Database\Eloquent\Factories\HasFactory;
+use Illuminate\Database\Eloquent\Model;
+
+class Participant extends Model
+{
+       use HasFactory;
+
+       public function tournament() {
+               return $this->belongsTo(Tournament::class);
+       }
+
+       public function user() {
+               return $this->belongsTo(User::class);
+       }
+
+}