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

72 lines
2.4 KiB
PHP

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class BookingConfirmation
*
* @property int $id
* @property int $booking_id
* @property float $total
* @property float $deposit
* @property float $final_payment
* @property Carbon $deposit_payment_date
* @property Carbon $final_payment_date
* @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\BookingConfirmation newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation whereBinaryData($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation whereBookingId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation whereDeposit($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation whereDepositPaymentDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation whereFinalPayment($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation whereFinalPaymentDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation whereTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingConfirmation whereUpdatedAt($value)
* @mixin \Eloquent
*/
class BookingConfirmation extends Model
{
protected $table = 'booking_confirmation';
protected $casts = [
'booking_id' => 'int',
'total' => 'float',
'deposit' => 'float',
'final_payment' => 'float',
];
protected $dates = [
'deposit_payment_date',
'final_payment_date'
];
protected $fillable = [
'booking_id',
'total',
'deposit',
'final_payment',
'deposit_payment_date',
'final_payment_date',
'binary_data'
];
public function booking()
{
return $this->belongsTo(Booking::class);
}
}