-
Notifications
You must be signed in to change notification settings - Fork 0
chore: 지역·인기매장·매장찜·픽업슬롯 기능 릴리즈 #148
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
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
753a833
feat(region): Region 마스터 모델·마이그레이션 추가 (1·2차 계층 + Store.region_id)
chanwoo7 da15f1c
feat(region): 수도권 지역 시드(생성기·JSON·seed) + 시드 매장 region 연결
chanwoo7 735e155
feat(region): 지역 조회/검색 GraphQL API + 테스트
chanwoo7 dbf2f4a
Merge pull request #144 from CaQuick/feat/region-master
chanwoo7 0f33849
feat(store): 인기 매장 리스트 API (popularStores·실시간 랭킹 집계) + 테스트
chanwoo7 4ea7aeb
fix(store): 랭킹 집계 soft-delete 주문 제외 + 케이크 이미지 take 제한 (Codex P2 반영)
chanwoo7 b7993e9
Merge pull request #145 from CaQuick/feat/popular-stores
chanwoo7 5434436
feat(store): 매장 찜 토글(멱등) + 인기 매장 isWishlisted (옵셔널 JWT 가드)
chanwoo7 f80aaa5
fix(auth): OptionalJwtAuthGuard를 AuthGlobalModule provider/export에 등록…
chanwoo7 fd387f6
fix(store): 매장 찜을 USER 계정으로 제한 (Codex P2 - 랭킹 무결성 보호)
chanwoo7 52e1d5a
Merge pull request #146 from CaQuick/feat/store-wishlist
chanwoo7 ff3b8ff
feat(pickup): 홈 전역 픽업 날짜/시간 슬롯 (pickupCalendar/pickupTimeSlots) + KST 유틸
chanwoo7 7d896ef
Merge pull request #147 from CaQuick/feat/pickup-slots
chanwoo7 334e8e6
fix: 릴리즈 리뷰 반영 (pickup 당일 마감 CLOSED, region 시드 upsert 정규화, keyword 경계…
chanwoo7 f1128cc
Merge pull request #149 from CaQuick/fix/release-review-followups
chanwoo7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
prisma/migrations/20260617194530_add_region_and_store_region/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| -- AlterTable | ||
| ALTER TABLE `store` ADD COLUMN `region_id` BIGINT UNSIGNED NULL; | ||
|
|
||
| -- CreateTable | ||
| CREATE TABLE `region` ( | ||
| `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, | ||
| `parent_id` BIGINT UNSIGNED NULL, | ||
| `level` TINYINT UNSIGNED NOT NULL, | ||
| `name` VARCHAR(80) NOT NULL, | ||
| `slug` VARCHAR(120) NOT NULL, | ||
| `sort_order` INTEGER NOT NULL DEFAULT 0, | ||
| `is_active` BOOLEAN NOT NULL DEFAULT true, | ||
| `center_lat` DECIMAL(10, 7) NULL, | ||
| `center_lng` DECIMAL(10, 7) NULL, | ||
| `created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), | ||
| `updated_at` DATETIME(3) NOT NULL, | ||
| `deleted_at` DATETIME(3) NULL, | ||
|
|
||
| UNIQUE INDEX `region_slug_key`(`slug`), | ||
| INDEX `idx_region_parent_sort`(`parent_id`, `sort_order`), | ||
| INDEX `idx_region_level_active`(`level`, `is_active`), | ||
| INDEX `idx_region_deleted_at`(`deleted_at`), | ||
| PRIMARY KEY (`id`) | ||
| ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX `idx_store_region_id` ON `store`(`region_id`); | ||
|
|
||
| -- AddForeignKey | ||
| ALTER TABLE `region` ADD CONSTRAINT `region_parent_id_fkey` FOREIGN KEY (`parent_id`) REFERENCES `region`(`id`) ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
|
||
| -- AddForeignKey | ||
| ALTER TABLE `store` ADD CONSTRAINT `store_region_id_fkey` FOREIGN KEY (`region_id`) REFERENCES `region`(`id`) ON DELETE SET NULL ON UPDATE CASCADE; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
운영 반영 시
storeFK 추가 구간의 잠금 리스크를 분리 배포로 완화해 주세요.store에 컬럼 추가(Line 2) 후 인덱스(Line 27)와 FK(Line 33)를 같은 변경 세트로 적용하면, 실제 운영 데이터량에서 메타데이터 락/검증 스캔으로 쓰기 지연이 발생할 수 있습니다.region_id컬럼·인덱스 선배포 → 데이터 검증 → 저부하 시간 FK 적용의 단계적 적용 계획이 필요합니다.As per coding guidelines,
prisma/**: "파괴적 변경이나 운영 반영 시 위험한 변경은 명확히 지적하세요."🤖 Prompt for AI Agents
Source: Coding guidelines