From 1b75b27188318640d5dfae8116d856a926afef63 Mon Sep 17 00:00:00 2001 From: gahusb Date: Thu, 2 Jul 2026 14:27:50 +0900 Subject: [PATCH] =?UTF-8?q?chore(phase0):=20DB=20=EB=A7=88=EC=9D=B4?= =?UTF-8?q?=EA=B7=B8=EB=A0=88=EC=9D=B4=EC=85=98(DROP=203=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94+packages=20=ED=96=89)=20+=20CLAUDE.md=20=EC=A0=95?= =?UTF-8?q?=ED=95=A9=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- CLAUDE.md | 3 --- supabase/migrations/2026-07-02-phase0-cleanup.sql | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 supabase/migrations/2026-07-02-phase0-cleanup.sql diff --git a/CLAUDE.md b/CLAUDE.md index 4e0b286..5ecf2b7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -33,7 +33,6 @@ admin/services 패널에서 ON/OFF 전환 가능. | `/work/saju*` | 사주 분석 | | `/music/*` | 음악 팩 (단, `/music/packs`는 `/products`로 308 리다이렉트) | | `/gyeol` | CONTOUR PMF 설문 | -| `/packages` | 레거시 패키지 | ## 기술 스택 - **Framework**: Next.js 16 (App Router, TypeScript) @@ -88,7 +87,6 @@ app/ quote/[token]/route.ts — GET/POST: 견적 조회·수락/거절 admin/quotes/[id]/send/route.ts — 견적 발송 (메일 + 'quoted' 상태 동기화) saju/analyze/route.ts — 사주 AI 분석 (Gemini) - payment/ — PortOne 연동 (보존 전용, 미활성) work/saju/ — 숨김: 사주 서비스 music/ — 숨김: 음악 팩 (packs는 /products로 308) gyeol/ — 숨김: CONTOUR PMF 설문 @@ -149,7 +147,6 @@ lib/ → POST /api/packs/sign-link → DSM 서명 링크 (4시간 TTL) ``` -- PG(PortOne) 코드는 `products.pay_method` 플래그 기반으로 보존만, 현재 미활성 - `lib/product-access.ts`: orders 기반 접근 + music tier 하위 호환 --- diff --git a/supabase/migrations/2026-07-02-phase0-cleanup.sql b/supabase/migrations/2026-07-02-phase0-cleanup.sql new file mode 100644 index 0000000..5068ab2 --- /dev/null +++ b/supabase/migrations/2026-07-02-phase0-cleanup.sql @@ -0,0 +1,9 @@ +-- Phase 0 정리 (2026-07-02): 비전 제외 기능의 테이블·설정 제거 +-- 적용 대상: 클라우드 Supabase + NAS self-host 양쪽 (운영 규칙) +-- survey_responses(gyeol)는 의도적 보존 — 건드리지 않음 + +DROP TABLE IF EXISTS questionnaire_responses; +DROP TABLE IF EXISTS ebay_search_history; +DROP TABLE IF EXISTS subscriptions; + +DELETE FROM service_settings WHERE id = 'packages';