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

POST /game でジャンルを指定 #730

Merged
merged 19 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
39f466c
:sparkles: CreateGameでジャンルを追加
ikura-hamu Oct 18, 2023
7763b53
:white_check_mark: CreateGameのテスト追加
ikura-hamu Oct 18, 2023
dc86ba2
:sparkles: GetGameGenresWithNamesを実装
ikura-hamu Oct 20, 2023
655a4dd
:white_check_mark: GetGameGenresWithNamesのテスト追加
ikura-hamu Oct 20, 2023
103b263
:sparkles: repositoryでSaveGameGenres実装
ikura-hamu Oct 20, 2023
6b584c1
:white_check_mark: SaveGameGenresのテスト追加
ikura-hamu Oct 20, 2023
37972db
Merge branch 'develop' into fix/post_game
ikura-hamu Dec 24, 2023
a76c7c8
:adhesive_bandage: PostGameでジャンルを渡すように修正
ikura-hamu Dec 24, 2023
cd8672b
Merge branch 'develop' into fix/post_game
ikura-hamu Dec 24, 2023
4120a45
:adhesive_bandage: postGameのレスポンスにジャンルを追加
ikura-hamu Dec 24, 2023
90353fa
:bug: ジャンルが無い時にnilを返すように修正
ikura-hamu Dec 28, 2023
e8434a3
:white_check_mark: PostGameのテストにジャンルとvisibility追加
ikura-hamu Dec 28, 2023
74e4d95
ci
ikura-hamu Dec 29, 2023
5c5549d
:adhesive_bandage: ゲームジャンルとゲームの関係に関するマイグレーション
ikura-hamu Dec 29, 2023
84e3172
:sparkles: RegisterGenresToGameの実装
ikura-hamu Dec 29, 2023
7848940
:adhesive_bandage: serviceでエラーハンドリング追加
ikura-hamu Dec 29, 2023
e72eb4a
:adhesive_bandage: いろいろ細かいの修正
ikura-hamu Jan 10, 2024
2bd8192
:bug: ゲームジャンルが重複したら400を返すように
ikura-hamu Jan 10, 2024
a5205ec
:memo: APIの説明追加
ikura-hamu Jan 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/db_schema/game_genre_relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ CREATE TABLE `game_genre_relations` (
`genre_id` varchar(36) NOT NULL,
`game_id` varchar(36) NOT NULL,
PRIMARY KEY (`genre_id`,`game_id`),
KEY `fk_game_genre_relations_game_table2_v11` (`game_id`),
KEY `fk_game_genre_relations_game_table2_v12` (`game_id`),
CONSTRAINT `fk_game_genre_relations_game_genre_table_v10` FOREIGN KEY (`genre_id`) REFERENCES `game_genres` (`id`),
CONSTRAINT `fk_game_genre_relations_game_genre_table_v11` FOREIGN KEY (`genre_id`) REFERENCES `game_genres` (`id`),
CONSTRAINT `fk_game_genre_relations_game_genre_table_v12` FOREIGN KEY (`genre_id`) REFERENCES `game_genres` (`id`),
CONSTRAINT `fk_game_genre_relations_game_table2_v11` FOREIGN KEY (`game_id`) REFERENCES `games` (`id`),
CONSTRAINT `fk_game_genre_relations_game_table2_v12` FOREIGN KEY (`game_id`) REFERENCES `games` (`id`),
CONSTRAINT `fk_game_genre_relations_game_table2_v5` FOREIGN KEY (`game_id`) REFERENCES `games` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
```
Expand All @@ -35,15 +37,17 @@ CREATE TABLE `game_genre_relations` (
| ---- | ---- | ---------- |
| fk_game_genre_relations_game_genre_table_v10 | FOREIGN KEY | FOREIGN KEY (genre_id) REFERENCES game_genres (id) |
| fk_game_genre_relations_game_genre_table_v11 | FOREIGN KEY | FOREIGN KEY (genre_id) REFERENCES game_genres (id) |
| fk_game_genre_relations_game_genre_table_v12 | FOREIGN KEY | FOREIGN KEY (genre_id) REFERENCES game_genres (id) |
| fk_game_genre_relations_game_table2_v11 | FOREIGN KEY | FOREIGN KEY (game_id) REFERENCES games (id) |
| fk_game_genre_relations_game_table2_v12 | FOREIGN KEY | FOREIGN KEY (game_id) REFERENCES games (id) |
| fk_game_genre_relations_game_table2_v5 | FOREIGN KEY | FOREIGN KEY (game_id) REFERENCES games (id) |
| PRIMARY | PRIMARY KEY | PRIMARY KEY (genre_id, game_id) |

## Indexes

| Name | Definition |
| ---- | ---------- |
| fk_game_genre_relations_game_table2_v11 | KEY fk_game_genre_relations_game_table2_v11 (game_id) USING BTREE |
| fk_game_genre_relations_game_table2_v12 | KEY fk_game_genre_relations_game_table2_v12 (game_id) USING BTREE |
| PRIMARY | PRIMARY KEY (genre_id, game_id) USING BTREE |

## Relations
Expand Down
136 changes: 75 additions & 61 deletions docs/db_schema/game_genre_relations.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 40 additions & 33 deletions docs/db_schema/game_genres.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/db_schema/game_images.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ CREATE TABLE `game_images` (
`image_type_id` tinyint(4) NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`),
KEY `fk_game_images_game_image_type` (`image_type_id`),
KEY `fk_games_game_images` (`game_id`),
KEY `fk_game_images_game_image_type` (`image_type_id`),
CONSTRAINT `fk_game_images_game_image_type` FOREIGN KEY (`image_type_id`) REFERENCES `game_image_types` (`id`),
CONSTRAINT `fk_games_game_images` FOREIGN KEY (`game_id`) REFERENCES `games` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
Expand Down
Loading
Loading