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