feat: Implement Dynamics CRUD

This commit is contained in:
Daan Meijer
2026-06-15 00:30:57 +02:00
commit 647a708160
346 changed files with 34146 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Mutation extends Model
{
/** @use HasFactory<\Database\Factories\MutationFactory> */
use HasFactory;
protected $fillable = [
'ledger_id',
'user_id',
'type',
'amount',
'description',
'status',
];
public function ledger(): BelongsTo
{
return $this->belongsTo(Ledger::class);
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}