61 lines
2 KiB
PHP
61 lines
2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class InsuranceCertificate
|
|
*
|
|
* @property int $id
|
|
* @property int $booking_id
|
|
* @property int $internal_id
|
|
* @property string $filename
|
|
* @property boolean $binary_data
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
* @property string $request_data
|
|
* @property Booking $booking
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InsuranceCertificate newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InsuranceCertificate newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InsuranceCertificate query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InsuranceCertificate whereBinaryData($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InsuranceCertificate whereBookingId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InsuranceCertificate whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InsuranceCertificate whereFilename($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InsuranceCertificate whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InsuranceCertificate whereInternalId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InsuranceCertificate whereRequestData($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InsuranceCertificate whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class InsuranceCertificate extends Model
|
|
{
|
|
protected $connection = 'mysql';
|
|
|
|
protected $table = 'insurance_certificate';
|
|
|
|
protected $casts = [
|
|
'booking_id' => 'int',
|
|
'internal_id' => 'int',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'booking_id',
|
|
'internal_id',
|
|
'filename',
|
|
'binary_data',
|
|
'request_data'
|
|
];
|
|
|
|
public function booking()
|
|
{
|
|
return $this->belongsTo(Booking::class);
|
|
}
|
|
}
|