This commit is contained in:
2026-08-15 13:29:00 -07:00
parent 649feeba63
commit 793dc85e44
70 changed files with 12639 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* Class Airline
*
* @property int $id
* @property string $name
* @property string $code
* @property int $file_id
* @property int $status
* @property Carbon $created_at
*
* @property Collection|Flight[] $flights
*
* @package App\Models
*/
class Airline extends Model
{
protected $table = 'airlines';
public $timestamps = false;
protected $casts = [
'file_id' => 'int',
'status' => 'int'
];
protected $fillable = [
'name',
'code',
'file_id',
'status'
];
public function flights()
{
return $this->hasMany(Flight::class);
}
}