migrate to gtea from bistbucket
This commit is contained in:
36
public/restaurant/Modules/Booking/app/Models/RoomPrice.php
Normal file
36
public/restaurant/Modules/Booking/app/Models/RoomPrice.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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;
|
||||
}
|
||||
Reference in New Issue
Block a user