f
Tables (6)
Apt (아파트)
- 아이디 (id) — INT — Primary key — NOT NULL
- 이름 (name) — VARCHAR
- 위치 (location) — VARCHAR
Comment (댓글)
- 아이디 (id) — INT — Primary key — NOT NULL
- 내용 (content) — VARCHAR
- Field
- 사용자 아이디 (user_id) — INT — Foreign key → User.아이디 — NOT NULL
- 게시글 아이디 (post_id) — INT — Foreign key → Post.아이디 — NOT NULL
- 생성일 (createdAt) — DATE
- 수정일 (updated_at) — DATE
Like (좋아요)
- 사용자 아이디 (user_id) — INT — Foreign key → User.아이디 — NOT NULL
- 게시글 아이디 (post_id) — INT — Foreign key → Post.아이디 — NOT NULL
- 생성일 (created_at) — DATE
- 수정일 (updated_at) — DATE
Notice (공지)
- 아이디 (id) — INT — Primary key — NOT NULL
- 제목 (title) — VARCHAR
- 내용 (content) — VARCHAR
- 생성일 (created_at) — DATE
- 수정일 (updated_at) — DATE
- 아파트 아이디 (apt_id) — INT — Foreign key → Apt.아이디 — NOT NULL
Post (게시글)
- 아이디 (id) — INT — Primary key — NOT NULL
- 제목 (title) — VARCHAR
- 내용 (content) — VARCHAR
- 생성일 (created_at) — DATE
- 수정일 (updated_at) — DATE
- 작성자 아이디 (user_id) — INT — Foreign key → User.아이디 — NOT NULL
- 아파트 아이디 (apt_id) — INT — Foreign key → Apt.아이디 — NOT NULL
User (사용자)
- 아이디 (id) — INT — Primary key — NOT NULL
- 닉네임 (nickname) — VARCHAR
- 이메일 (Field) — VARCHAR
- 비밀번호 (password) — VARCHAR
- 상세주소 (detail_address) — VARCHAR
- 생성일 (created_at) — DATE
- 수정일 (updated_at) — DATE
- 아파트 아이디 (apt_id) — INT — Foreign key → Apt.아이디 — NOT NULL