node_lv5
테이블 (5)
메뉴 (menu)
- 고유식별자 (id) — int — 기본 키 — NOT NULL
- userId — int — 외래 키 → 유저.userId — NOT NULL
- 카테고리고유식별자 (category_id) — int — 외래 키 → 카테고리.고유식별자 — NOT NULL
- 메뉴이름 (name) — string
- 메뉴설명 (description) — text
- 이미지url (image) — string
- 상태 (status) — enum
- 가격 (price) — int
- 주문순서 (order) — int
- 업데이트날짜 (updatedAt) — dateTime
유저 (user)
- userId (id) — int — 기본 키 — NOT NULL
- 닉네임 (nickname) — string
- 비번 (password) — string
- 유저타입 (usertype) — enum
- createdAt — dateTime
- deletedAt — dateTime
주문내역 (orders)
- orderId — int — 기본 키 — NOT NULL
- UserId — int
- MenuId — int
- quantity — int
- status — enum
- totalPrice (total_price) — int
- createdAt — dateTime
- deletedAt — dateTime
주문메뉴연결테이블 (orderMenus)
- 고유식별자 (id) — int — 기본 키 — NOT NULL
- OrderId — int
- MenuId — int
- quantity — int
카테고리 (category)
- 고유식별자 (id) — int — 기본 키 — NOT NULL
- userId — int — 외래 키 → 유저.userId — NOT NULL
- 카테고리종류 (name) — string
- 주문번호 (order) — int
- 업데이트 (updatedAt) — dateTime