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