Admin Web Contest
Tables (7)
Comment (댓글)
- comment_id (댓글 아이디) — Integer — Primary key — NOT NULL
- product_id (상품 아이디) — Integer — Foreign key → Product.product_id — NOT NULL
- user_id (유저 아이디) — Integer — Foreign key → User.user_id — NOT NULL
- user_id (유저 아이디2) — Integer — Foreign key → Product.user_id — NOT NULL
- content (댓글 내용) — String
- created_at (생성 일자) — Date
Deal (구매/판매 내역)
- deal_id (구매/판매 내역 아이디) — Integer — Primary key — NOT NULL
- buyer_id (구매자 유저 아이디) — Integer — Foreign key → User.user_id — NOT NULL
- product_id (상품 아이디) — Integer — Foreign key → Product.product_id — NOT NULL
- created_at (생성일자) — Date
Keyword (관심 키워드)
- keyword_id (키워드 아이디) — Integer — Primary key — NOT NULL
- user_id (유저 아이디) — Integer — Foreign key → User.user_id — NOT NULL
- content (키워드 내용) — String
Like (관심 내역)
- like_id (관심 아이디) — Integer — Primary key — NOT NULL
- user_id (유저 아이디) — Integer — Foreign key → User.user_id — NOT NULL
- product_id (상품 아이디) — Integer — Foreign key → Product.product_id — NOT NULL
Notice (알림)
- notice_id (알림 아이디) — Integer — Primary key — NOT NULL
- user_id (유저 아이디) — Integer — Foreign key → User.user_id — NOT NULL
- keyword_id (키워드 아이디) — Integer — Foreign key → Keyword.keyword_id — NOT NULL
- created_at (생성 시간) — Date
Product (상품(게시글))
- product_id (상품 아이디) — Integer — Primary key — NOT NULL
- user_id (유저 아이디) — Integer — Foreign key → User.user_id — NOT NULL
- title (상품 제목) — String
- price (가격) — Integer
- description (설명) — String
- Image (이미지) — String
- is_sold (판매여부) — Boolean
User (유저)
- user_id (유저 아이디) — Integer — Primary key — NOT NULL
- username (아이디) — String
- password (패스워드) — String
- nickname (닉네임) — String
- activity_area (활동지역) — String
- profile (프로필 사진) — String
- is_admin (관리자인지 아닌지 확인) — Boolean
- is_blocked (밴 여부) — Boolean