feat: membersテーブルにstatus列とaffiliation列を追加(Expand)#93
Closed
KinjiKawaguchi wants to merge 4 commits intoworktree-member-aggregate-remodelfrom
Closed
feat: membersテーブルにstatus列とaffiliation列を追加(Expand)#93KinjiKawaguchi wants to merge 4 commits intoworktree-member-aggregate-remodelfrom
KinjiKawaguchi wants to merge 4 commits intoworktree-member-aggregate-remodelfrom
Conversation
36b32bb to
43e0c38
Compare
Member集約リモデリングのExpand-Contract移行のPhase 1。 既存のdepartment列は維持したまま、新列を非破壊的に追加する。 - status: member_status enum(active/unconfirmed/former)、デフォルト'active' - affiliation: 所属情報(JSONB、SerializedAffiliation型で型安全に保存) - DrizzleMemberRepositoryを新Member型(ActiveMember/UnconfirmedMember/FormerMember)に対応 - SerializedAffiliation型をKarteリポジトリと同じパターンで定義 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
62bf9d0 to
cc5ea6c
Compare
CS/BI/IA → 情報学部の各学科affiliationに自動マッピング。 ALUMNI → status='former'に変更。 GRADUATE/OTHERSは手動対応としてスキップ。 yearはメールアドレスの入学年から自動計算。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
cc5ea6c to
997542e
Compare
Expand-Contract移行のPhase 3: - department列を削除(Affiliationに置き換え済み) - student_idをvarchar(8) nullableに変更(未確認/元室員は持たない) - timestamp precisionを削除(ミリ秒精度は不要) - リポジトリのTODOコメントを解消 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Recorded型をshared kernelに追加 - DrizzleMemberRepositoryのpersonalEmailをRecorded<Email>でマッピング - membersスキーマ: department列削除、student_id varchar(8) nullable化、timestamp precision削除 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Mar 22, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Member集約リモデリング(#90)のExpand-Contract移行Phase 1。
新しいドメインモデル(ActiveMember/UnconfirmedMember/FormerMember)に必要な列を、既存スキーマを壊さずに追加する。
What
membersテーブルに2列を非破壊的に追加:statustext NOT NULL DEFAULT 'active'affiliationjsonb既存の
department列は維持。後続のContract PRで削除する。移行全体像
Test plan
drizzle-kit generateでマイグレーションSQL生成を確認🤖 Generated with Claude Code