This commit is contained in:
Saufi
2026-06-03 08:51:22 +08:00
commit a14d43fe34
347 changed files with 38197 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class WheelchairTransaction extends Model
{
protected $guarded = [];
protected function casts(): array
{
return [
'taken_at' => 'datetime',
'returned_at' => 'datetime',
];
}
public function allocation(): BelongsTo
{
return $this->belongsTo(WheelchairAllocation::class, 'wheelchair_allocation_id');
}
public function recordedBy(): BelongsTo
{
return $this->belongsTo(User::class, 'recorded_by_user_id');
}
}