mini
테이블 (4)
게시글 (Post)
- id (Key) — Long — 기본 키 — NOT NULL
- userId (Key2) — Long — 외래 키 → 유저.id — NOT NULL
- title (Field) — String
- category (Field2) — String
- contents (Field3) — String
- imgUrls (Field4) — List<String>
- createdAt (Field5) — LocalDateTime
- updatedAt (Field6) — LocalDateTime
댓글 (Comment)
- id (Key) — Long — 기본 키 — NOT NULL
- userId (Key2) — Long — 외래 키 → 유저.id — NOT NULL
- postId (Key3) — Long — 외래 키 → 게시글.id — NOT NULL
- contents (Field) — String
- createdAt (Field2) — LocalDateTime
- updatedAt (Field3) — LocalDateTime
유저 (User)
- id (Key) — Long — 기본 키 — NOT NULL
- userId (Field) — String
- userPassword (Field2) — String
- userName (Field3) — String
- profileURL (Field4) — String
이미지 (Image)
- id (Key) — Long — 기본 키 — NOT NULL
- imgFileName (Field) — String
- imgUrl (Field2) — String