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

Commentの新規作成(Create)機能のテスト作成 #22

Open
naitoyuma7110 opened this issue Apr 30, 2023 · 0 comments
Open

Commentの新規作成(Create)機能のテスト作成 #22

naitoyuma7110 opened this issue Apr 30, 2023 · 0 comments

Comments

@naitoyuma7110
Copy link
Owner

naitoyuma7110 commented Apr 30, 2023

概要

チャンネルに紐づくコメントを投稿する機能のテストを作成。
紐づくチャンネルのidをURLパラムで渡す。
チャンネル内容はリクエストのディで渡す。

Issue

詳細

URL:"/channels/{id}/messages"
DB:channelと多対1のリレーション

erDiagram
  channels ||--o{ comments : "1つのチャンネルは0以上のコメントを持つ"

  channels {
    bigint id PK
    string name "チャンネル名"
  }

  comments {
    bigint id PK
    bigint channel_id FK
    text content "投稿内容"
    timestamp created_at
  }

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant