1,010 B
1,010 B
Task: Review System (Dedicated Model)
Objective
Implement a dedicated Review system, distinct from Comments. Reviews allow users to share their opinion with a rating, a "one-liner" blurb, and full text.
Steps
- Backend:
- Create
Reviewmodel inmodels.py:blurb: str (The one-liner/pullquote).content: str (Full review text).score: int (1-10 rating).- Foreign keys to User, Show, Venue, Song.
- Create
Reviewschemas inschemas.py. - Create
routers/reviews.pyfor CRUD operations. - Generate and apply migrations.
- Create
- Frontend:
- Create
ReviewCardcomponent (displaying Blurb prominently). - Create
ReviewFormcomponent (inputs for Blurb, Content, Rating). - Integrate into Show Detail page (separate tab or section from Comments).
- Create
Acceptance Criteria
- User can submit a Review with a blurb.
- Reviews are displayed with the blurb highlighted.
- Comments remain separate for discussion.