mein-sterntours/app/Models/BookingInvoice.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 BookingInvoice
*
* @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\BookingInvoice newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice query()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice whereBinaryData($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice whereBookingId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice whereDeposit($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice whereDepositPaymentDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice whereFinalPayment($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice whereFinalPaymentDate($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice whereTotal($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\BookingInvoice whereUpdatedAt($value)
* @mixin \Eloquent
*/
class BookingInvoice extends Model
{
protected $table = 'booking_invoice';
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);
}
}