Skip to content

Conversation

newt239
Copy link
Member

@newt239 newt239 commented Sep 4, 2025

close #213

変更内容

  • イベント予約ユーザーレスポンスにcreatedAtフィールドを追加し、登録日時順でソートするよう改修
  • データベースクエリを更新し、レスポンス構造体に登録日時を含むよう拡張
    • OpenAPIを更新
  • 開発用シードデータを追加してローカル開発環境を改善
    • make insert_testでシードデータを投入可能
  • CLAUDE.mdを追加

@newt239 newt239 self-assigned this Sep 4, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements fixed member ordering for event participants by adding a createdAt field to event reservation users response and sorting by registration datetime. It also improves local development with seed data insertion.

  • Added createdAt field to event reservation user response structure for consistent member ordering
  • Updated database query to include registration timestamp and sort by created_at ASC
  • Added comprehensive seed data for local development environment
  • Added Makefile improvements and CLAUDE.md documentation

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
schema/test/insert_test.sql Comprehensive seed data for all tables including users, events, reservations, works, groups, and budgets
pkg/event/get_event_event_id_reservation_id.go Added CreatedAt field to eventReservationObjectUser struct
pkg/db/sql/event/select_event_reservation_user_from_event_id_reservation_id.sql Updated query to include created_at field and ORDER BY created_at ASC
pkg/api/spec.gen.go Generated API specification update with new field
pkg/api/models.gen.go Generated model with CreatedAt time.Time field
document/schemas/res_get_event_event_id_reservation_id.user.yml Added createdAt field definition to OpenAPI schema
document/bundle.gen.yml Generated bundle with createdAt field
document/bundle-develop.gen.yml Generated develop bundle with createdAt field
Makefile Fixed pipe syntax for insert_test command and added UTF-8 charset
CLAUDE.md Comprehensive documentation for Claude Code usage in Japanese

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Name string `db:"username"`
UserIcon string `db:"icon_url"`
UserId string `db:"user_id"`
UserName string `db:"username"`
Copy link
Contributor

Choose a reason for hiding this comment

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

db:"username" と紐付くプロパティが NameUserName の2つになっている点が気になります

Copy link
Member Author

Choose a reason for hiding this comment

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

ありがとうございます!修正しました!

Copy link
Contributor

@saka-naname saka-naname left a comment

Choose a reason for hiding this comment

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

LGTMeow

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.

イベントの予約を申し込み順で表示する

2 participants