feat: complete users in admin panel

This commit is contained in:
2026-08-19 15:41:54 -07:00
parent 2f563f7e4d
commit 5d9fca2753
+4 -19
View File
@@ -29,16 +29,13 @@ use Illuminate\Foundation\Auth\User as Authenticated;
* @property int|null $file_id * @property int|null $file_id
* @property string $username * @property string $username
* @property string $password * @property string $password
* @property int $province_id * @property string $province
* @property int $city_id * @property string $city
* @property int $status * @property int $status
* @property Carbon $created_at * @property Carbon $created_at
* @property Carbon $updated_at * @property Carbon $updated_at
* @property Carbon $deleted * @property Carbon $deleted
*
* @property File|null $file * @property File|null $file
* @property Province $province
* @property City $city
* @property Collection|Booking[] $bookings * @property Collection|Booking[] $bookings
* @property Collection|Comment[] $comments * @property Collection|Comment[] $comments
* *
@@ -53,8 +50,6 @@ class User extends Authenticated
'gender' => UserGenderStatus::class, 'gender' => UserGenderStatus::class,
'marital_status' => UserMaritalStatus::class, 'marital_status' => UserMaritalStatus::class,
'file_id' => 'int', 'file_id' => 'int',
'province_id' => 'int',
'city_id' => 'int',
'status' => UserStatus::class, 'status' => UserStatus::class,
'deleted' => 'datetime' 'deleted' => 'datetime'
]; ];
@@ -75,8 +70,8 @@ class User extends Authenticated
'file_id', 'file_id',
'username', 'username',
'password', 'password',
'province_id', 'province',
'city_id', 'city',
'status', 'status',
'deleted' 'deleted'
]; ];
@@ -86,16 +81,6 @@ class User extends Authenticated
return $this->belongsTo(File::class); return $this->belongsTo(File::class);
} }
public function province()
{
return $this->belongsTo(Province::class);
}
public function city()
{
return $this->belongsTo(City::class);
}
public function bookings() public function bookings()
{ {
return $this->hasMany(Booking::class); return $this->hasMany(Booking::class);