newfeed
테이블 (8)
RefreshToken (refresh_token)
- refresh_token — text — 기본 키 — NOT NULL
- user_id (사용자 id) — int — NOT NULL
post_tag
- Key — int — 기본 키 — NOT NULL
- hashtag_id (해시태그) — int — 외래 키 → 해시태그.id — NOT NULL
- post_id (게시글) — int — 외래 키 → 게시글.id — NOT NULL
게시글 (post)
- id — int — 기본 키 — NOT NULL
- title (제목) — text — NOT NULL
- content (내용) — text — NOT NULL
- created_at (작성일) — timestamp — NOT NULL
- updated_at (수정일) — timestamp
- user_id (작성자) — int — 외래 키 → 사용자.id — NOT NULL
게시글 좋아요 (post_like)
- id — int — 기본 키 — NOT NULL
- post_id (게시글) — int — 외래 키 → 게시글.id — NOT NULL
- user_id (작성자) — int — 외래 키 → 사용자.id — NOT NULL
댓글 (comment)
- id — int — 기본 키 — NOT NULL
- content (내용) — text — NOT NULL
- created_at (작성일) — timestamp — NOT NULL
- updated_at (수정일) — timestamp
- user_id (작성자) — int — 외래 키 → 사용자.id — NOT NULL
- post_id (게시글) — int — 외래 키 → 게시글.id — NOT NULL
댓글 좋아요 (comment_like)
- id — int — 기본 키 — NOT NULL
- comment_id (댓글) — int — 외래 키 → 사용자.id — NOT NULL
- user_id (작성자) — int — 외래 키 → 댓글.id — NOT NULL
사용자 (users)
- id — int — 기본 키 — NOT NULL
- email (이메일) — text — NOT NULL
- password (비밀번호) — text — NOT NULL
- nickname (닉네임) — text — NOT NULL
- description (한줄소개) — text
- created_at (작성일) — timestamp — NOT NULL
- updated_at (수정일) — timestamp
해시태그 (hashtag)
- id — int — 기본 키 — NOT NULL
- name (태그명) — text — NOT NULL