fix : 테넌트 관리자 사용자 API 추가

- 사용자 목록
- 사용자 생성
- 사용자 단건 조회
- 사용자 수정
- 사용자 삭제(소프트 삭제)
- 활성/비활성 전환
- 삭제 복구
- 비밀번호 초기화

- 수정필요 : 역할부여, 역할 해재
This commit is contained in:
2025-08-15 16:32:11 +09:00
parent 9935bba84e
commit 06197a1366
7 changed files with 644 additions and 145 deletions

View File

@@ -17,34 +17,21 @@ class User extends Authenticatable
use HasApiTokens, Notifiable, SoftDeletes, ModelTrait;
protected $fillable = [
'user_id',
'name',
'phone',
'email',
'phone',
'password',
'options',
'profile_photo_path',
];
protected $guarded = [
'id',
'user_id',
'password',
'remember_token',
'two_factor_secret',
'two_factor_recovery_codes',
'two_factor_confirmed_at',
'email_verified_at',
'last_login_at',
'current_team_id',
'deleted_at',
'created_at',
'updated_at',
];
protected $casts = [
'email_verified_at' => 'datetime',
'last_login_at' => 'datetime',
'options' => 'array',
'deleted_at' => 'datetime',
'password' => 'hashed', // ← 이걸 쓰면 자동 해싱
];
protected $hidden = [