# MSGSS 프로젝트 정보

## DB 접속 정보
- Host: officialsite.kr
- Port: 23306
- User: admin
- Password: dlgks~123
- Database: msgss

## DB 조회 방법 (Python)
DB 데이터 확인이 필요할 때 아래 스크립트 사용:

```python
import pymysql

conn = pymysql.connect(
    host='officialsite.kr',
    port=23306,
    user='admin',
    password='dlgks~123',
    database='msgss',
    charset='utf8mb4'
)

cursor = conn.cursor(pymysql.cursors.DictCursor)

# 예시: 최근 shops 조회
cursor.execute('SELECT * FROM shops ORDER BY id DESC LIMIT 5')
print(cursor.fetchall())

# 예시: shop_images 조회
cursor.execute('SELECT * FROM shop_images ORDER BY id DESC LIMIT 10')
print(cursor.fetchall())

conn.close()
```

## 주요 테이블
- `shops` - 업체 정보 (shop_name, address, phone, main_image, is_active 등)
- `shop_images` - 업체 이미지 (shop_id, image_url, is_main, display_order)
- `price_lists` - 가격표/서비스 (shop_id, service_name, price, duration)
- `users` - 사용자 계정
- `reviews` - 리뷰

## 프로젝트 구조
- 프론트엔드: `msgss-platform/` (Nuxt 3)
- 서버 API: `msgss-platform/server/api/`
- 프로덕션 경로: `/var/www/front/msgss/msgss-platform/`

## 프로덕션 서버
- URL: https://xn--hz2b29j7ogx9bb7g.kr
- PM2로 관리됨
- 빌드 후 배포 필요 (`npm run build`)

## 주의사항
- 로컬에서 업로드한 파일은 프로덕션 서버에 없음
- 프로덕션은 빌드된 `.output/` 폴더 사용
- 소스 수정 후 프로덕션 반영하려면 빌드 & 배포 필요
