fitple
테이블 (3)
게시글 (post)
- 게시글 아이디 (post_id) — int — 기본 키 — NOT NULL
- 제목 (post_title) — text
- 내용 (post_content) — text
- 조회수 (post_view) — int
- 작성일 (post_date) — timestamp
- 분류 (post_category) — enum
- 유저 식별번호 (user_key) — int — 외래 키 → 회원.유저 식별번호 — NOT NULL
게시글 댓글 (comment)
- 댓글 아이디 (comment_id) — int — 기본 키 — NOT NULL
- 내용 (content) — varchar(500)
- 작성자 아이디 (writer_id) — int
- 게시글 아이디 (post_id) — int — 외래 키 → 게시글.게시글 아이디 — NOT NULL
회원 (user)
- 유저 식별번호 (user_key) — int — 기본 키 — NOT NULL
- 유저 아이디 (user_id) — varchar(50)
- 유저 비밀번호 (user_password) — varchar(200)
- 유저 이메일 (user_email) — varchar(100)
- 휴대폰번호 (user_phone) — varchar(11)
- 성별 (user_gender) — enum
- 생일 (user_birth) — timestamp
- 이름 (user_name) — varchar(10)
- 닉네임 (user_nickname) — varchar(10)
- 소개 (user_introduce) — varchar(200)
- 프로필 (user_profile_image) — text
- 가입일 (user_ created_at) — timestamp
- 역할 (user_role) — enum
- 학교 (user_college) — varchar(20)
- 전공 (user_major) — varchar(20)
- 재학상태 (user_enrollment) — enum