62 lines
1.8 KiB
PHP
62 lines
1.8 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class IQTravelItemPlace
|
|
*
|
|
* @property int $id
|
|
* @property int $i_q_travel_item_id
|
|
* @property int $travel_place_id
|
|
* @property int $pos
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
* @property IQTravelItem $i_q_travel_item
|
|
* @property TravelPlace $travel_place
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|IQTravelItemPlace newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|IQTravelItemPlace newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|IQTravelItemPlace query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|IQTravelItemPlace whereCreatedAt($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|IQTravelItemPlace whereIQTravelItemId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|IQTravelItemPlace whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|IQTravelItemPlace wherePos($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|IQTravelItemPlace whereTravelPlaceId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|IQTravelItemPlace whereUpdatedAt($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class IQTravelItemPlace extends Model
|
|
{
|
|
protected $connection = 'mysql_stern';
|
|
|
|
protected $table = 'i_q_travel_item_places';
|
|
|
|
protected $casts = [
|
|
'i_q_travel_item_id' => 'int',
|
|
'travel_place_id' => 'int',
|
|
'pos' => 'int',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'i_q_travel_item_id',
|
|
'travel_place_id',
|
|
'pos',
|
|
];
|
|
|
|
public function i_q_travel_item()
|
|
{
|
|
return $this->belongsTo(IQTravelItem::class);
|
|
}
|
|
|
|
public function travel_place()
|
|
{
|
|
return $this->belongsTo(TravelPlace::class);
|
|
}
|
|
}
|