kiosk
Tables (5)
admin (관리자)
- 관리자구분id (id) — AUTO — Primary key — NOT NULL
- 매장id (store_id) — NOT NULL
- PIN번호 (password) — NOT NULL
- 관리자이름 (name) — NOT NULL
- 역할 (role) — NOT NULL
- 생성날짜 (created_at) — NULL
menu (매뉴)
- 매뉴id (menu_id) — AUTO — Primary key — NOT NULL
- 매뉴이름 (name) — NOT NULL
- 가격 (price_per100g) — NOT NULL
- 재고 (stock) — NOT NULL
- 유통기한 (expiration_date) — NULL
- 매장id (store_id) — NOT NULL
preferences (환경설정)
- 매장id (store_id) — NOT NULL — Primary key
- 매장마감시간과 차이 (closing_time_discount_setting) — NULL
- 유통기한과 차이 (expiry_discount_setting) — NULL
- 남은재고 (stock_discount_setting) — NULL
- 할인률 (stock_discount_rate) — NULL
purchase (구매)
- 구매id (purchase_id) — AUTO — Primary key — NOT NULL
- 포트원 구매uid (imp_uid) — NOT NULL
- 주문고유번호 (merchant_uid) — NOT NULL
- 매장id (store_id) — NOT NULL
- 구매 날짜 (date) — NULL
- 가격 (totalAmount) — NULL
- 구매방법 (paymentMethod) — NOT NULL
purchaseItem (구매 상품 상세 내역)
- 상품id (item_id) — AUTO — Primary key — NOT NULL
- 구매id (purchase_id) — NOT NULL — Foreign key → purchase.구매id — NOT NULL
- 매뉴id (menu_id) — NOT NULL — Foreign key → menu.매뉴id — NOT NULL
- 매뉴이름 (name) — NOT NULL
- 매장id (store_id) — NOT NULL
- 무게 (weight) — NOT NULL
- 이 메뉴 항목의 총 가격 (subtotal) — NOT NULL