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
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Deck extends Model
{
protected $fillable = [
'name',
'cards',
];
protected function casts()
{
return [
'cards' => 'array',
'is_system' => 'boolean'
];
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}