Kpass
Tables (10)
Base Entity (기본 엔티티)
- 생성시기 (created_at) — not null
- 삭제시기 (deleted_at) — null
agree (약관동의)
- 약관id (id) — not null — Primary key — NOT NULL
- 제목 (title) — not null
- 내용 (body) — not null
- 필수여부 (optional) — notnull
bills (고지서)
- 고지서아이디 (id) — not null — Primary key — NOT NULL
- 유저아이디 (member_id) — not null — Foreign key → users.유저아이디 — NOT NULL
- 고지일자 (period_month) — not null
- 고지서종류 (category) — not null
- 납부금액 (total_amount) — not null
- 납부여부 (status) — not null
- 고지서이미지 (bill_image_url) — null
bookmark (유저_팁)
- 유저팁아이디 (id) — not null — Primary key — NOT NULL
- 유저아이디 (member_id) — not null — Foreign key → users.유저아이디 — NOT NULL
- 꿀팁아이디 (tip_id) — not null — Foreign key → tips.꿀팁아이디 — NOT NULL
challenges (챌린지)
- 챌린지아이디 (id) — not null — Primary key — NOT NULL
- 챌린지제목 (title) — not null
- 챌린지설명 (description) — null
- 유형 (type) — not null
- 보상포인트 (reward_points) — not null
- 인증이미지 (image_url) — not null
point_history (포인트내역)
- Key — Primary key — NOT NULL
- 유저아이디 (id) — not null — Foreign key → users.유저아이디 — NOT NULL
- 포인트 양 (amount) — not null
- 적립/사용사유 (reason) — not null
tips (꿀팁)
- 꿀팁아이디 (id) — not null — Primary key — NOT NULL
- 꿀팁제목 (title) — not null
- 꿀팁내용 (content) — not null
users (유저)
- 유저아이디 (id) — not null — Primary key — NOT NULL
- 닉네임 (nickname) — not null
- 이메일 (email) — not null
- 프로필사진 (profile_image_url) — null
- 포인트 (point) — null
users-agree (유저-약관)
- 사용자약관ID (id) — not null — Primary key — NOT NULL
- 약관id (term_id) — not null — Foreign key → agree.약관id — NOT NULL
- 유저아이디 (member_id) — not null — Foreign key → users.유저아이디 — NOT NULL
users_challenges (유저_챌린지)
- 유저챌린지아이디 (id) — not null — Primary key — NOT NULL
- 유저아이디 (member_id) — not null — Foreign key → users.유저아이디 — NOT NULL
- 챌린지아이디 (challenge_id) — not null — Foreign key → challenges.챌린지아이디 — NOT NULL
- 진행상태 (status) — not null
- 인증샷이미지 (proof_image_url)