37 lines
697 B
PHP
37 lines
697 B
PHP
<?php
|
|
|
|
namespace Modules\Booking\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class RoomPrice extends Model
|
|
{
|
|
protected $fillable = [
|
|
'restaurant_id',
|
|
'room_id',
|
|
'start_date',
|
|
'end_date',
|
|
'day_type',
|
|
'price',
|
|
'priority',
|
|
'is_active',
|
|
];
|
|
|
|
/**
|
|
* Casts
|
|
*/
|
|
protected $casts = [
|
|
'restaurant_id' => 'integer',
|
|
'room_id' => 'integer',
|
|
'start_date' => 'date',
|
|
'end_date' => 'date',
|
|
'price' => 'decimal:2',
|
|
'priority' => 'integer',
|
|
'is_active' => 'boolean',
|
|
];
|
|
|
|
public const TABLE_NAME = 'room_prices';
|
|
|
|
protected $table = self::TABLE_NAME;
|
|
}
|