hanghae99 hw2
Tables (3)
Like (좋아요)
- Key (userId) — INT — Foreign key → User.Key — NOT NULL
- Key (postId) — INT — Foreign key → Post.Key — NOT NULL
Post (게시글)
- Key (id) — Primary key — NOT NULL
- 제목 (title) — VARCHAR
- 내용 (content) — VARCHAR
- 생성일 (createdAt) — Date
- 수정일 (updatedAt) — Date
- 삭제일 (deletedAt) — Date
- 유저아이디 (userId) — INT
- 이미지경로 (imageUrl) — VARCHAR
User (회원)
- Key (id) — Primary key — NOT NULL
- 닉네임 (nickname) — VARCHAR
- 이메일 (email) — VARCHAR
- 패스워드 (password) — VARCHAR
- 권한 (role) — BOOLEAN