znitStore
Tables (4)
Products (상품 테이블)
- product_id (아이디) — PK — Primary key — NOT NULL — 회원 고유 ID
- name (상품 명)
- description (상품 설명)
- price (가격)
- thumbnail_url (썸네일 이미지)
- category_id (카테고리 ID) — FK
- is_active (판매 여부)
- created_at (등록일)
- updated_at (수정일) — timestamp
Users (회원 테이블)
- user_id (아이디) — PK — Primary key — NOT NULL — 회원 고유 ID
- email (이메일)
- password_hash (비밀번호 해시값)
- name (이름)
- phone (전화번호)
- created_at (가입일)
order_itmes (주문 항목)
- id (주문 항목 ID) — PK — Primary key — NOT NULL
- order_id (주문 ID) — FK
- Field
orders (주문테이블)
- id (주문 고유 ID) — PK — Primary key — NOT NULL
- user_id (주문자 ID) — FK
- status (enum)
- total_price (총 주문 금액)
- created_at (주문일)
- updated_at (수정일)