wemap
테이블 (10)
게시글 (posts)
- 게시글 번호 (post_idx) — bigserial — 기본 키 — NOT NULL
- 회원 번호 (member_idx) — bigserial — 외래 키 → 회원.회원 번호 — NOT NULL
- 제목 (title) — varchar(100) — NOT NULL
- 내용 (content) — text — NOT NULL
- 조회수 (view_count) — integer — NOT NULL
- 추천수 (up_count) — integer — NOT NULL
- 상태 (status) — varchar(7) — NOT NULL
- 생성일 (created_date) — timestamp without time zone — NOT NULL
- 수정일 (modified_date) — timestamp without time zone — NOT NULL
게시글 즐겨찾기 (posts_favorites)
- 게시글 즐겨찾기 번호 (post_favorite_idx) — bigserial — 기본 키 — NOT NULL
- 회원 번호 (member_idx) — bigserial — 외래 키 → 회원.회원 번호 — NOT NULL
- 게시글 번호 (post_idx) — bigserial — 외래 키 → 게시글.게시글 번호 — NOT NULL
- 생성일 (created_date) — timestamp without time zone — NOT NULL
- 수정일 (modified_date) — timestamp without time zone — NOT NULL
게시글 추천 (posts_up)
- 게시글 추천 번호 (post_up_idx) — bigserial — 기본 키 — NOT NULL
- 게시글 번호 (post_idx) — bigserial — 외래 키 → 게시글.게시글 번호 — NOT NULL
- 회원 번호 (member_idx) — bigserial — 외래 키 → 회원.회원 번호 — NOT NULL
- 생성일 (created_date) — timestamp without time zone — NOT NULL
- 수정일 (modified_date) — timestamp without time zone — NOT NULL
게시글 파일 (posts_files)
- 게시글 파일 번호 (post_file_idx) — bigserial — 기본 키 — NOT NULL
- 게시글 번호 (post_idx) — bigserial — 외래 키 → 게시글.게시글 번호 — NOT NULL
- 파일 번호 (file_idx) — bigserial — 외래 키 → 파일.파일 번호 — NOT NULL
- 생성일 (created_date) — timestamp without time zone — NOT NULL
- 수정일 (modified_date) — timestamp without time zone — NOT NULL
댓글 (replies)
- 댓글 번호 (reply_idx) — bigserial — 기본 키 — NOT NULL
- 게시글 번호 (post_idx) — bigserial — 외래 키 → 게시글.게시글 번호 — NOT NULL
- 회원 번호 (member_idx) — bigserial — 외래 키 → 회원.회원 번호 — NOT NULL
- 내용 (content) — text — NOT NULL
- 추천수 (up_count) — integer — NOT NULL
- 상태 (status) — varchar(7) — NOT NULL
- 부모 댓글 IDX (parent_reply_idx) — bigint
- 생성일 (created_date) — timestamp without time zone — NOT NULL
- 수정일 (modified_date) — timestamp without time zone — NOT NULL
댓글 추천 (reply_up)
- 댓글 추천 번호 (reply_up_id) — bigserial — 기본 키 — NOT NULL
- 댓글 번호 (reply_idx) — bigserial — 외래 키 → 댓글.댓글 번호 — NOT NULL
- 회원 번호 (member_idx) — bigserial — 외래 키 → 회원.회원 번호 — NOT NULL
- 생성일 (created_date) — timestamp without time zone — NOT NULL
- 수정일 (modified_date) — timestamp without time zone — NOT NULL
파일 (files)
- 파일 번호 (file_idx) — bigserial — 기본 키 — NOT NULL
- 파일명 (name) — varchar(255) — NOT NULL
- 파일 경로 (url) — varchar(255) — NOT NULL
- 파일 타입 (type) — varchar(10) — NOT NULL
- 생성일 (created_date) — timestamp without time zone — NOT NULL
- 수정일 (modified_date) — timestamp without time zone — NOT NULL
팔로우 (follows)
- 팔로우 번호 (follow_idx) — bigserial — 기본 키 — NOT NULL
- from 회원 번호 (from_member_idx) — bigserial — 외래 키 → 회원.회원 번호 — NOT NULL
- to 회원 번호 (to_member_idx) — bigserial — 외래 키 → 회원.회원 번호 — NOT NULL
- 생성일 (created_date) — timestamp without time zone — NOT NULL
- 수정일 (modified_date) — timestamp without time zone — NOT NULL
회원 (members)
- 회원 번호 (member_idx) — bigserial — 기본 키 — NOT NULL
- 아이디 (id) — varchar(20) — NOT NULL
- 비밀번호 (password) — varchar(20) — NOT NULL
- 이름 (name) — varchar(10) — NOT NULL
- 나이 (age) — integer — NOT NULL
- 휴대폰 번호 (phone) — varchar((11) — NOT NULL
- 이메일 (email) — varchar(50) — NOT NULL
- 권한 (role) — varchar(10) — NOT NULL
- 상태 (status) — varchar(18) — NOT NULL
- 로그인 실패 횟수 (login_fail_count) — integer — NOT NULL
- 생성일 (created_date) — timestamp without time zone — NOT NULL
- 수정일 (modified_date) — timestamp without time zone — NOT NULL