Feature #108
closed
Added by 關山 和丈 9 months ago.
Updated 6 months ago.
Description
① Administratorモデルを削除してPharmacistモデルへ管理権限付与 2hr
✅ Rails - pharmacists テーブル追加(email, password, pharmacy_id, administrator_idなど)
- devise-token-auth対応モデル化
- /api/v1/pharmacists POST/GET等のAPIエンドポイント作成
② 薬剤師アカウントの登録機能を実装 2hr
✅ Next.js - 管理者ログイン後にアクセスできる設定画面にて
- 薬剤師のメール・パスワード・薬局の選択フォーム実装
- Rails API /api/v1/pharmacists にPOST
- 現在のpages.tsxをlayoutへ変更して設定クリック後に修正画面表示
③ 管理者紐付けのある薬剤師ユーザーに店舗選択画面を表示 2hr
✅ Next.js - currentUser.administrator_id の有無で分岐
- 管理者紐付きなら /pharmacy_selector にリダイレクト
- 管理者非紐付きなら /pharmacies/:id/dashboard へ
Files
- Due date changed from 06/13/2025 to 06/09/2025
- Start date changed from 06/13/2025 to 06/09/2025
- Due date changed from 06/09/2025 to 07/12/2025
- Start date changed from 06/09/2025 to 07/12/2025
- Subject changed from pharmacistsテーブルを新設し、全店舗閲覧権限と薬局別権限を明確化 to 管理者権限と店舗薬剤師の閲覧権限を分ける
- Description updated (diff)
- Estimated time changed from 3:00 h to 5:00 h
- Description updated (diff)
- Description updated (diff)
- Description updated (diff)
- Estimated time changed from 5:00 h to 6:00 h
- Description updated (diff)
- Description updated (diff)
- Description updated (diff)
- Description updated (diff)
- Status changed from New to Closed
Also available in: Atom
PDF