BULLETIN BOARD
Tables (4)
Like (좋아요)
- id (아이디) — int — Primary key — NOT NULL
- postId (게시글 아이디) — int — Foreign key → Post.id — NOT NULL
- userId (사용자 아이디) — int — Foreign key → User.id — NOT NULL
- createdAt (생성된 날짜) — datetime
- updatedAt (수정된 날짜) — datetime
Post (게시글)
- id (아이디) — int — Primary key — NOT NULL
- content (내용) — longtext
- createdAt (생성된 날짜) — datetime
- updatedAt (수정된 날짜) — datetime
User (사용자)
- id (아이디) — int — Primary key — NOT NULL
- email (이메일) — varchar(100)
- password (비밀번호) — varchar(100)
- name (이름) — varchar(100)
- createdAt (생성된 날짜) — datetime
- updatedAt (수정된 날짜) — datetime
UserPost (사용자-게시글)
- id (아이디) — int — Primary key — NOT NULL
- userId (사용자 아이디) — int — Foreign key → User.id — NOT NULL
- postId (게시글 아이디) — int — Foreign key → Post.id — NOT NULL