migration

This commit is contained in:
2026-01-07 22:18:43 +00:00
parent 8d681da7a1
commit 66cddf3fb2
29 changed files with 2250 additions and 638 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class RoomAvailability extends Model
{
use HasFactory;
protected $fillable = [
'room_type_id',
'date',
'is_available',
'price_override',
];
protected $casts = [
'date' => 'date',
'is_available' => 'boolean',
'price_override' => 'decimal:2',
];
public function roomType()
{
return $this->belongsTo(RoomType::class);
}
}