git commit "feat: create database tables and relationships"
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class TourFlight
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $tour_id
|
||||
* @property int $flight_id
|
||||
* @property Carbon|null $created_at
|
||||
*
|
||||
* @package App\Models
|
||||
*/
|
||||
class TourFlight extends Model
|
||||
{
|
||||
protected $table = 'tour_flights';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'tour_id' => 'int',
|
||||
'flight_id' => 'int'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'tour_id',
|
||||
'flight_id'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user