feat: 도매상 API 통합 및 스키마 업데이트
- wholesale 패키지 연동 (SooinSession, GeoYoungSession) - Flask Blueprint 분리 (sooin_api.py, geoyoung_api.py) - order_context 스키마 확장 (wholesaler_id, internal_code 등) - 수인약품 개별 취소 기능 (cancel_item, restore_item) - 문서 추가: WHOLESALE_API_INTEGRATION.md - 테스트 스크립트들
This commit is contained in:
13
backend/check_order_db.py
Normal file
13
backend/check_order_db.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import sqlite3
|
||||
|
||||
conn = sqlite3.connect('db/orders.db')
|
||||
|
||||
# 테이블 목록
|
||||
tables = conn.execute("SELECT name FROM sqlite_master WHERE type='table'").fetchall()
|
||||
print('=== orders.db 테이블 ===')
|
||||
for t in tables:
|
||||
count = conn.execute(f'SELECT COUNT(*) FROM {t[0]}').fetchone()[0]
|
||||
print(f' {t[0]}: {count}개 레코드')
|
||||
|
||||
conn.close()
|
||||
Reference in New Issue
Block a user