carrot
테이블 (4)
게시글 (Post)
- 식별자 (post_id) — Long — 기본 키 — NOT NULL — Auto increment
- 글 제목 (post_title) — Striing — NOT NULL
- 글 내용 (String) — String — NOT NULL
- 지역 (writer_region) — String — NOT NULL
- 가격 (price) — int — NOT NULL
- 조회수 (visits) — int — NOT NULL
- 관심 수 (interests) — int — NOT NULL
- 채팅 수 (chats) — int — NOT NULL
- 이미지 (images) — List<Image> — NOT NULL
- 판매 상태 (sell_status) — Enum — NOT NULL
- 식별자 (user_id) — Long — 외래 키 → 유저.식별자 — NOT NULL — Auto increment
- 작성 날짜 (write_time) — LocalDateTime
- 수정 날짜 (update_time) — LocalDateTime
관심 (Interest)
- 식별자 (interest_id) — Long — 기본 키 — NOT NULL — Auto increment
- Field
- 식별자 (user_id) — Long — 외래 키 → 유저.식별자 — NOT NULL — Auto increment
- 식별자 (post_id) — Long — 외래 키 → 게시글.식별자 — NOT NULL — Auto increment
유저 (User)
- 식별자 (user_id) — Long — 기본 키 — NOT NULL — Auto increment
- 유저 이메일 (user_email) — String — NOT NULL
- 유저 비밀번호 (user_pwd) — String — NOT NULL
이미지 (Image)
- 식별자 (image_id) — Long — 기본 키 — NOT NULL — Auto increment
- 원본 이름 (origin_name) — String — NOT NULL
- 저장된 이름 (stored_image_path) — String — NOT NULL
- 식별자 (post_id) — Long — 외래 키 → 게시글.식별자 — NOT NULL — Auto increment