shopping_mall
Tables (7)
Board (게시판)
- id (게시판 식별자) — PK — Primary key — NOT NULL
- userId (사용자 식별자) — user — Foreign key → User.id — NOT NULL
- type (유형) — string
- content (내용) — string
- createDate (생성 시간) — timestamp
- updateDate (업데이트 시간) — timestamp
ChatMessage (채팅메세지)
- chat_type (메세지 타입) — MessageType
- chat_content (채팅 내용) — string
- sender (발신자) — string
- userId (사용자 식별 번호) — user — Foreign key → User.id — NOT NULL
Order (주문)
- id (주문 식별자) — PK — Primary key — NOT NULL
- status (주문 상태) — string
- userId (사용자 식별자) — user — Foreign key → User.id — NOT NULL
- productId (상품 식별자) — product — Foreign key → Product.id — NOT NULL
- createDate (생성 시간) — timestamp
- updateDate (업데이트 시간) — timestamp
Product (상품)
- id (상품 식별자) — PK — Primary key — NOT NULL
- product_name (상품명) — string
- product_price (상품가격) — Integer
- explantion (상품설명) — string
- image_url (상품 이미지 경로) — string
- product_taste (상품의 향미) — string
- discount (할인율) — Integer
- createDate (생성 시간) — timestamp
- updateDate (업데이트 시간) — timestamp
- category_id (카테고리 식별자2) — category — Foreign key → category.id — NOT NULL
User (회원목록)
- id (식별 번호) — PK — Primary key — NOT NULL
- Email (회원 아이디(이메일)) — string
- username (닉네임) — string
- passwod (비밀번호) — string
- Role (권한) — RoleType
- createDate (생성 시간) — TimeStamp
- updateDate (업데이트 시간) — TimeStamp
- enable (사용 여부) — Integer
basket (장바구니)
- userId (사용자 식별자) — PK — Foreign key → User.id — NOT NULL
- productId (상품 식별자) — product — Foreign key → Product.id — NOT NULL
- product_count (상품 갯수) — Integer
- createDate (생성 시간) — timestamp
- updateDate (업데이트 시간) — timestamp
category (카테고리)
- id (카테고리 식별자) — PK — Primary key — NOT NULL
- id_parent (부모 카테고리 식별자) — Integer
- title (제목) — string
- icon (카테고리 아이콘) — string
- category_explation (카테고리 설명) — string
- createDate (생성 시간) — timestamp
- updateDate (업데이트 시간) — timestamp