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

テーブル設計をテキストで記述 #1

Merged
merged 2 commits into from Dec 5, 2021
Merged

テーブル設計をテキストで記述 #1

merged 2 commits into from Dec 5, 2021

Conversation

keit1722
Copy link
Owner

@keit1722 keit1722 commented Dec 3, 2021

以下のように設計しました。

  • 質問に関する情報はarticlesテーブル
  • 質問に対する解答はresponsesテーブル
  • ユーザーに関する情報はusersテーブル

ご確認お願いいたします。

table_design.md Outdated
Comment on lines 1 to 10
- articles
- title:string
- content:text
- user_id:integer
- solved:boolean

- responses
- content:text
- article_id:integer
- user_id:integer

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「質問」, 「回答」なので素直にquestionsとanswersでいいと思うんですが、あえてarticlesとresponsesにした理由ってありますか?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

以下のように考えてしまったのですが、素直にquestionsとanswersで良いと思いますので訂正します。

  • articlesは、出題文の書き方の例にarticlesとあったので安易に真似ていました。
  • responsesは、モックアップに書いてあった「エラーログを貼ってください」という文章を見たときに、「解答」というよりは質問に対する「返信」に見えてしまったのでresponsesにしました。

Copy link

@DaichiSaito DaichiSaito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

download

@keit1722 keit1722 merged commit e0eeaa0 into main Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants