This commit is contained in:
2026-08-15 12:35:30 +03:30
commit 60936f504d
77 changed files with 14152 additions and 0 deletions
+88
View File
@@ -0,0 +1,88 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class User
*
* @property int $id
* @property string $first_name
* @property string $last_name
* @property int $file_id
* @property string $national_code
* @property int $gender
* @property int $marital_status
* @property string|null $spouse_name
* @property string $mobile
* @property string $email
* @property string $username
* @property string $password
* @property string|null $user_province
* @property int|null $user_city
* @property Carbon $created_at
* @property Carbon $updated_at
* @property string|null $deleted_at
*
* @property File $file
* @property Collection|Booking[] $bookings
* @property Collection|Passenger[] $passengers
*
* @package App\Models
*/
class User extends Model
{
use SoftDeletes;
protected $table = 'users';
public static $snakeAttributes = false;
protected $casts = [
'file_id' => 'int',
'gender' => 'int',
'marital_status' => 'int',
'user_city' => 'int'
];
protected $hidden = [
'password'
];
protected $fillable = [
'first_name',
'last_name',
'file_id',
'national_code',
'gender',
'marital_status',
'spouse_name',
'mobile',
'email',
'username',
'password',
'user_province',
'user_city'
];
public function file()
{
return $this->belongsTo(File::class);
}
public function bookings()
{
return $this->hasMany(Booking::class);
}
public function passengers()
{
return $this->hasMany(Passenger::class);
}
}