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
+38
View File
@@ -0,0 +1,38 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Room extends Model
{
use HasUuids;
protected $fillable = [
'title',
'current_round',
'deck_config',
'revealed_at',
'state_version',
];
protected function casts() :array
{
return [
'current_round' => 'integer',
'state_version' => 'integer',
'revealed_at' => 'immutable_datetime',
'deck_config' => 'array',
];
}
public function players(): HasMany
{
return $this->hasMany(Player::class);
}
}