Skip to content

Conversation

@rak3rman
Copy link
Member

No description provided.

@rak3rman rak3rman self-assigned this Oct 22, 2025
Copilot AI review requested due to automatic review settings October 22, 2025 22:20
@github-actions
Copy link

Pull Request Smart Comments
Assignee(s): Mark tasks as they are completed. Code Reviewer(s): Ensure all tasks are complete and follow best standards before approving.

  • Assigned at least one (1+) experienced code reviewer and notified them requesting a review
  • Assigned all contributors as assignees
  • Assigned relevant labels that are a subset or related to the parent issue's labels
  • Checked that PR description contains a quick summary of work accomplished and uses issue closing words
  • Checked that completed tasks in related issue(s) are marked accordingly
  • Checked that PR title is descriptive and follows commit message semantics

Copy link
Contributor

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 renames database tables from plural to singular form, aligning with common database naming conventions. The changes include renaming items to item, outfits to outfit, tags to tag, and junction tables from items_to_outfits, tags_to_outfits, tags_to_items to outfit_item, outfit_tag, and item_tag respectively.

Key changes:

  • Database schema tables renamed to singular form
  • Relation properties updated to reflect new naming (e.g., itemsToOutfitsoutfitItems)
  • Database migration files added to execute the table renaming
  • Frontend components updated to use new property names

Reviewed Changes

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

Show a summary per file
File Description
next/src/components/OutfitSuggestions.tsx Updated references from tagsToOutfits to outfitTags and itemsToOutfits to outfitItems
next/src/components/OutfitList.tsx Updated references from tagsToOutfits to outfitTags and itemsToOutfits to outfitItems
next/src/components/ItemList.tsx Updated prop name from itemsToOutfits to outfitItems and related references
hono/test/utils/factory/*.ts Updated factory test utilities to use singular table names
hono/test/utils/clean-db.sql Updated SQL DELETE statements to reference singular table names
hono/src/services/tags.ts Updated all references from tags table to tag table
hono/src/services/outfits.ts Updated all table references and relation properties to singular forms
hono/src/services/items.ts Updated all references from items table to item table and relation properties
hono/src/schema.ts Renamed all table definitions and relations to singular form, updated primary key column order
hono/src/drizzle/meta/_journal.json Added migration entry for table renaming
hono/src/drizzle/meta/0008_snapshot.json Complete database schema snapshot with renamed tables
hono/src/drizzle/0008_fresh_lightspeed.sql Migration SQL script to rename tables, constraints, and add comments

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

@rak3rman rak3rman enabled auto-merge (squash) October 22, 2025 22:22
@rak3rman rak3rman merged commit 161a1ef into main Oct 22, 2025
6 checks passed
@rak3rman rak3rman deleted the radison/rename-db-tables branch October 22, 2025 22:23
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