daangn-market
Tables (6)
Category (category)
- category_id (카테고리 아이디) — NOT NULL — Primary key — NOT NULL
- name (이름) — NOT NULL
Comment (comment)
- user_id (유저 아이디) — NOT NULL — Foreign key → User.user_id — NOT NULL
- product_id (제품 아이디) — NOT NULL — Foreign key → Product.product_id — NOT NULL
- content (댓글 내용)
- created (게시 시간) — NOT NULL
- updated (수정 시간) — NOT NULL
Like (like)
- user_id (유저 아이디2) — NOT NULL — Foreign key → User.user_id — NOT NULL
- product_id (제품 아이디) — NOT NULL — Foreign key → Product.product_id — NOT NULL
- created (게시 시간) — NOT NULL
- updated (수정 시간) — NOT NULL
Location (location)
- location_id (위치 아이디) — NOT NULL — Primary key — NOT NULL
- name (이름) — NOT NULL
Product (product)
- product_id (제품 아이디) — NOT NULL — Primary key — NOT NULL
- category_id (카테고리 아이디) — NOT NULL
- title (제목) — NOT NULL
- price (가격) — NOT NULL
- status (거래 상태) — NOT NULL
- product_img (제품 이미지)
- contents (내용)
- location_id (위치 아이디) — NOT NULL
- created (게시 시간) — NOT NULL
- updated (수정 시간) — NOT NULL
- category_id (카테고리 아이디2) — NOT NULL — Foreign key → Category.category_id — NOT NULL
- location_id (위치 아이디2) — NOT NULL — Foreign key → Location.location_id — NOT NULL
User (user)
- user_id (유저 아이디) — NOT NULL — Primary key — NOT NULL
- email (이메일) — NOT NULL
- password (비밀번호) — NOT NULL
- name (이름) — NOT NULL
- phone_number (전화번호) — NOT NULL
- nickname (닉네임) — NOT NULL
- user_img (유저 이미지)
- location_id (위치 아이디) — NOT NULL
- location_id (위치 아이디2) — NOT NULL — Foreign key → Location.location_id — NOT NULL