mein-sterntours/app/Models/BookingApplication.php
2020-04-15 12:11:42 +02:00

53 lines
1.6 KiB
PHP

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class BookingApplication
*
* @property int $id
* @property int $booking_id
* @property float $total
* @property boolean $binary_data
* @property Carbon $created_at
* @property Carbon $updated_at
* @property Booking $booking
* @package App\Models
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingApplication newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingApplication newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingApplication query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingApplication whereBinaryData($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingApplication whereBookingId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingApplication whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingApplication whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingApplication whereTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingApplication whereUpdatedAt($value)
* @mixin \Eloquent
*/
class BookingApplication extends Model
{
protected $table = 'booking_application';
protected $casts = [
'booking_id' => 'int',
'total' => 'float',
];
protected $fillable = [
'booking_id',
'total',
'binary_data'
];
public function booking()
{
return $this->belongsTo(Booking::class);
}
}