Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

アプリ連携設定のDBスキーマ変更 #276

Open
KorRyu3 opened this issue Sep 25, 2024 · 0 comments · May be fixed by #281
Open

アプリ連携設定のDBスキーマ変更 #276

KorRyu3 opened this issue Sep 25, 2024 · 0 comments · May be fixed by #281

Comments

@KorRyu3
Copy link
Contributor

KorRyu3 commented Sep 25, 2024

TODO

概要

all-in-relation を消して、slack_settingsdiscord_settingsに状態を持たせるようにする

理由

all-in-relation は不要で、1アプリ設定に1テーブル とシンプルなテーブル設計になる

やること

  • slack_member_idslack_settingsに移動
    • slackのmember_idは各ワークスペースごとに異なるため、supabaseのuser_idと一対多で保存する
  • discord_member_iddiscord_settingsに移動

現状

  • all-in-relation
  • discord_settings
  • slack_settings

理想

  • discord_settings
    • ➕ member_id
    • discord_settings : users = 1 : 1
  • slack_settings
    • ➕ member_id
    • ➕ team_name
    • slack_settings : users = n : 1
@R1013-T R1013-T changed the title [API/WEB] アプリ連携周りのDBへの保存情報を変更する DBスキーマ変更(アプリ連携設定) Sep 25, 2024
@R1013-T R1013-T changed the title DBスキーマ変更(アプリ連携設定) アプリ連携設定のDBスキーマ変更 Sep 25, 2024
@R1013-T R1013-T linked a pull request Sep 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants