codefoilo
테이블 (10)
글 (post)
- - (id) — uuid — 기본 키 — NOT NULL
- uid (user_id) — uuid — 외래 키 → 유저 계정.- — NOT NULL
- 생성날짜 (created_at) — timestampz
- 제목 (title) — varchar
- 글의 종류 (subtitle) — varchar
- 내용 (content) — text
- 프로젝트 기간 (progress_date) — varchar[]
- 스택 (skills) — varchar[]
- 깃허브 주소 (github_url) — text
- 배포 주소 (deployed_url) — text
- 키워드 태그 (tag) — varchar[]
- 함께한 사람들 (members) — json[]
- 댓글 수 (comment_count) — numeric
- 좋아요 수 (like_count) — numeric
- 북마크 수 (bookmark_count) — numeric
- 배경 사진 (title_background_image) — text
- 썸네일 여부 (thumbnail_check) — bool
- - (large_category) — varchar
- 카테고리 (sub_category) — varchar
글 칭찬배지 (post_badge)
- - (id) — uuid — 기본 키 — NOT NULL
- post id (post_id) — uuid — 외래 키 → 글.- — NOT NULL
- uid (user_id) — uuid — 외래 키 → 유저 계정.- — NOT NULL
- 타입 (type) — varchar
댓글 (comment)
- - (id) — uuid — 기본 키 — NOT NULL
- uid (user_id) — uuid — 외래 키 → 유저 계정.- — NOT NULL
- post id (post_id) — uuid — 외래 키 → 글.- — NOT NULL
- 댓글 내용 (content) — text
- 생성일자 (created_at) — timestamptz
북마크 (bookmark)
- - (id) — uuid — 기본 키 — NOT NULL
- uid (user_id) — uuid — 외래 키 → 유저 계정.- — NOT NULL
- post id (post_id) — uuid — 외래 키 → 글.- — NOT NULL
알림 (notification)
- - (id) — uuid — 기본 키 — NOT NULL
- uid (target_id) — uuid — 외래 키 → 유저 계정.- — NOT NULL
- post id (post_id) — uuid — 외래 키 → 글.- — NOT NULL
- uid (user_id) — uuid — 외래 키 → 글.uid — NOT NULL
- 내용 (content) — text
- 읽음여부 (is_read) — bool
- 타입 (type) — varchar
- 생성일자 (created_at) — timestamptz
유저 계정 (user)
- - (id) — uuid — 기본 키 — NOT NULL
유저 프로필 (user_profile)
- - (id) — uuid — 기본 키 — NOT NULL
- uid (user_id) — uuid — 외래 키 → 유저 계정.- — NOT NULL
- 이름 (user_name) — text
- 이메일 (contact_email) — text
- 성별 (gender) — text
- 북마크 폴더 (bookmark_folders) — text[]
- 전화번호 (photo) — text
- 개발스택 (skills) — text[]
- 경력 (career) — text
- 공개여부 (is_public) — bool
- 출생년도 (birth_year) — numeric
- 프로필사진 (profile_image) — text
- 자기소개 (self_profile) — text
- 배경사진 (background_image) — text
- 포지션 (field) — text[]
- 깃허브주소 (github) — text
좋아요 (like)
- - (id) — uuid — 기본 키 — NOT NULL
- uid (user_id) — uuid — 외래 키 → 유저 계정.- — NOT NULL
- post id (post_id) — uuid — 외래 키 → 글.- — NOT NULL
프로필 댓글 (profile_comment)
- - (id) — uuid — 기본 키 — NOT NULL
- uid (user_id) — uuid — 외래 키 → 유저 계정.- — NOT NULL
- profile id (profile_id) — uuid — 외래 키 → 유저 프로필.- — NOT NULL
- 내용 (content) — text
- 생성일자 (created_at) — timestamptz
프로필 배지 (profile_badge)
- - (id) — uuid — 기본 키 — NOT NULL
- profile id (profile_id) — uuid — 외래 키 → 유저 프로필.- — NOT NULL
- uid (user_id) — uuid — 외래 키 → 유저 계정.- — NOT NULL
- 타입 (type) — varchar