initial Setup and data structure

This commit is contained in:
2026-08-14 20:35:14 +02:00
commit 6152a0a122
306 changed files with 36151 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Vote extends Model
{
protected $fillable = [
'round',
'value',
];
protected function casts(): array
{
return [
'round' => 'integer',
];
}
public function room(): BelongsTo {
return $this->belongsTo(Room::class);
}
public function player(): BelongsTo {
return $this->belongsTo(Player::class);
}
}