Skip to content

db(flyway): V1.0.2 — マルチテナント+補助6テーブル追加 (N2) #84

Description

@win2cot

背景

設計書 v1.3 が要求する6テーブル(tenants / user_tenants / task_stakeholders / audit_logs / user_notification_settings / shedlock)が未実装。

やること

src/main/resources/db/migration/V1.0.2__add_multitenancy_and_supporting_tables.sql を追加。
DDL の参照元は db/migrations/V1__create_initial_schema.sql(設計検討時の試作版、本Issueで正式版に移動)。

受け入れ条件

  • 6テーブル全て作成
  • tenant_id を含む複合インデックス設定
  • FK の ON DELETE 明示

参照

docs/reviews/2026-05-10-scaffold-vs-design-gap-analysis.md § G-3

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/dbFlyway マイグレーション / スキーマ / DDL 変更priority/p0Critical / Blocker。本番影響あり、または他作業がブロックされる

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions