]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Tournament.php
aos seed generation
[alttp.git] / app / Models / Tournament.php
index a38e9bde591a546975a402e361c4f420fa63be17..eea88096bdfc71da9a39115c2ed997a98a0afdb2 100644 (file)
@@ -61,6 +61,10 @@ class Tournament extends Model
        }
 
 
+       public function applications() {
+               return $this->hasMany(Application::class);
+       }
+
        public function participants() {
                return $this->hasMany(Participant::class);
        }
@@ -73,4 +77,11 @@ class Tournament extends Model
                return $this->hasMany(Round::class)->orderBy('number', 'DESC');
        }
 
+
+       protected $casts = [
+               'accept_applications' => 'boolean',
+               'locked' => 'boolean',
+               'no_record' => 'boolean',
+       ];
+
 }