PROMPTPLACE
Tables (25)
Announcement (공지)
- 아이디 (announcement_id) — NOT NULL — Primary key — NOT NULL
- 작성자 아이디 (writer_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 제목 (title) — NOT NULL
- 상세 내용 (content) — NOT NULL
- 공지 노출 여부 (is_visible) — NOT NULL
- 생성 날짜 (create_at) — NOT NULL
- 수정 날짜 (updated_at) — NOT NULL
- 첨부파일 경로 (file_url) — NULL
Following (팔로잉)
- 아이디 (follow_id) — NOT NULL — Primary key — NOT NULL
- 팔로워 (follower_id) — NOT NULL — Primary key — NOT NULL
- 팔로잉 (following_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 팔로잉 날짜 (created_at) — NOT NULL
- Field (updated_at) — NOT NULL
Inquiry (문의)
- 아이디 (inquiry_id) — NOT NULL — Primary key — NOT NULL
- 작성자 (sender_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 대상자 (receiver_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 문의 타입 (type) — NOT NULL
- 문의 상태 (status) — NOT NULL
- 제목 (title) — NOT NULL
- 내용 (content) — NOT NULL
- 생성 날짜 (created_at) — NOT NULL
- 수정 날짜 (updated_at) — NOT NULL
InquiryReply (문의 답변)
- 아이디 (reply_id) — NOT NULL — Primary key — NOT NULL
- 문의 아이디 (inquiry_id) — NOT NULL — Foreign key → Inquiry.아이디 — NOT NULL
- 대상자 (receiver_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 답변 (content) — NOT NULL
- 생성 날짜 (created_at) — NOT NULL
- 수정 날짜 (updated_at) — NOT NULL
Message (메시지)
- 아이디 (message_id) — NOT NULL — Primary key — NOT NULL
- 발신자 (sender_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 수신자 (receiver_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 제목 (title) — NOT NULL
- 내용 (body) — NOT NULL
- 읽음 여부 (is_read) — NOT NULL
- 읽은 시간 (read_at) — NOT NULL
- 삭제 여부 (is_deleted) — NOT NULL
- 전송 날짜 (created_at) — NOT NULL
- 수정 날짜 (updated_at) — NOT NULL
Model (모델)
- 아이디 (model_id) — NOT NULL — Primary key — NOT NULL
- 모델 이름 (name) — NOT NULL
Payment (결제 정보)
- 아이디 (payment_id) — NOT NULL — Primary key — NOT NULL
- 아이디 (purchase_id) — NOT NULL — Foreign key → Purchase.아이디 — NOT NULL
- 결제 상태 (status) — NOT NULL
- 결제 수단 (provider) — NOT NULL
- 아임포트 고유 결제 UID (iamport_uid) — NOT NULL
- 가맹점 고유 결제 UID (merchant_uid) — NOT NULL
- 결제 요청 시각 (created_at) — NOT NULL
- 결제 처리 시각 (updated_at) — NOT NULL
Prompt (프롬프트)
- 아이디 (prompt_id) — NOT NULL — Primary key — NOT NULL
- 아이디 (user_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 제목 (title) — NOT NULL
- 프롬프트 (prompt) — NOT NULL
- 프롬프트 결과 미리보기 (prompt_result) — NOT NULL
- 프롬프트 이미지 여부 (has_image) — NOT NULL
- 프롬프트 설명 (description) — NOT NULL
- 프롬프트 활용법 (usage_guide)
- 가격 (price) — NOT NULL
- 무료 여부 (is_free) — NOT NULL
- 다운로드 수 (downloads) — NOT NULL
- 방문자 수 (views) — NOT NULL
- 좋아요 수 (likes) — NOT NULL
- 리뷰수 (review_counts) — NOT NULL
- 평균 별점 (rating_avg) — NOT NULL
- 작성 시각 (created_at) — NOT NULL
- 수정 시각 (updated_at) — NOT NULL
- 비활성 날짜 (inactive_date) — NOT NULL
PromptImage (프롬프트 이미지)
- 아이디 (image_id) — NOT NULL — Primary key — NOT NULL
- 아이디 (prompt_id) — NOT NULL — Foreign key → Prompt.아이디 — NOT NULL
- 이미지 URL (imgae_url) — NOT NULL
- 사진 순서 (order_index) — NOT NULL
- 추가 시각 (created_at) — NOT NULL
- 수정 시각 (updated_at) — NOT NULL
PromptLike (프롬프트 찜)
- 아이디 (like_id) — NOT NULL — Primary key — NOT NULL
- 찜한 날짜 (created_at) — NOT NULL
- 수정 날짜 (updated_at) — NOT NULL
- 아이디 (user_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 아이디 (prompt_id) — NOT NULL — Foreign key → Prompt.아이디 — NOT NULL
PromptModel (프롬프트-모델 매핑)
- 아이디 (promptmodel_id) — NOT NULL — Primary key — NOT NULL
- 아이디 (prompt_id) — NOT NULL — Foreign key → Prompt.아이디 — NOT NULL
- 아이디 (model_id) — NOT NULL — Foreign key → Model.아이디 — NOT NULL
PromptTag (프롬프트-태그 매핑)
- 아이디 (prompttag_id) — NOT NULL — Primary key — NOT NULL
- 아이디 (prompt_id) — NOT NULL — Foreign key → Prompt.아이디 — NOT NULL
- 아이디 (tag_id) — NOT NULL — Foreign key → Tag.아이디 — NOT NULL
Purchase (구매 이력)
- 아이디 (purchase_id) — NOT NULL — Primary key — NOT NULL
- 아이디 (user_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 아이디 (prompt_id) — NOT NULL — Foreign key → Prompt.아이디 — NOT NULL
- 결제 금액 (amount) — NOT NULL
- 무료 여부 (is_free) — NOT NULL
- 구매 시각 (created_at) — NOT NULL
- 수정 시각 (updated_at) — NOT NULL
Review (리뷰)
- 아이디 (review_id) — NOT NULL — Primary key — NOT NULL
- 별점 (rating) — NOT NULL
- 내용 (content) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
- 작성자 아이디 (user_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 프롬프트 아이디 (prompt_id) — NOT NULL — Foreign key → Prompt.아이디 — NOT NULL
Settlement (정산 내역)
- 아이디 (settlement_id) — NOT NULL — Primary key — NOT NULL
- 아이디 (payment_id) — NOT NULL — Foreign key → Payment.아이디 — NOT NULL
- 정산 금액 (amount) — NOT NULL
- 수수료 (fee) — NOT NULL
- 정산 상태 (status) — NOT NULL
- 정산 요청 시각 (created_at) — NOT NULL
- 정산 처리 시각 (updated_at) — NOT NULL
Tag (태그)
- 아이디 (tag_id) — NOT NULL — Primary key — NOT NULL
- 태그 이름 (name) — NOT NULL
Tip (팁)
- 아이디 (tip_id) — NOT NULL — Primary key — NOT NULL
- 작성자 아이디 (writer_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 제목 (title) — NOT NULL
- 상세 내용 (content) — NOT NULL
- Tip 노출 여부 (is_visible) — NOT NULL
- 생성 날짜 (create_at) — NOT NULL
- 수정 날짜 (updated_at) — NOT NULL
- 첨부파일 경로 (file_url) — NULL
User (회원)
- 아이디 (user_id) — NOT NULL — Primary key — NOT NULL
- 이름 (name) — NOT NULL
- 닉네임 (nickname) — NOT NULL
- 이메일 (email) — NOT NULL
- 가입 경로 (social_type) — NOT NULL — KAKAO, GOOGLE, NAVER
- 계정 상태 (status) — NOT NULL
- 비활성 날짜 (inactive_date) — NULL
- 생성 날짜 (create_at) — NOT NULL
- 수정 날짜 (updated_at) — NOT NULL
- 권한 구분 (role) — ENUM('USER', 'ADMIN')
UserProfile (유저 프로필)
- 아이디 (profile_id) — NOT NULL — Primary key — NOT NULL
- 아이디 (user_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 한줄소개 (description) — NULL
- 이력 (history) — NULL — NOT NULL
- 생성 날짜 (created_at) — NOT NULL
- 수정 날짜 (updated_at) — NOT NULL
UserSNS (유저 SNS)
- 아이디 (sns_id) — NOT NULL — Primary key — NOT NULL
- 아이디 (user_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- SNS URL (url) — NOT NULL
- 설명 (description) — NOT NULL
- 생성 날짜 (created_at) — NOT NULL
- 수정 날짜 (updated_at) — NOT NULL
WithdrawRequest (출금 요청)
- 아이디 (withdraw_request_id) — NOT NULL — Primary key — NOT NULL
- 아이디 (user_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 출금 요청 금액 (amount) — NOT NULL
- 출금 상태 (status) — NOT NULL
- 풀금 요청 시각 (created_at) — NOT NULL
- 출금 처리 시각 (updated_at) — NOT NULL
notification (알림)
- 아이디 (notification_id) — NOT NULL — Primary key — NOT NULL
- 내용 (content) — NOT NULL
- 생성일 (created_at) — NOT NULL
- 사용자 아이디 (user_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
promptReport (프롬프트 신고)
- 아이디 (report_id) — NOT NULL — Primary key — NOT NULL
- 신고내용 (content) — NOT NULL
- 상태 (status) — DEFAULT('received')
- 신고자 아이디 (reporter_id) — NOT NULL — Foreign key → User.아이디 — NOT NULL
- 프롬프트 아이디 (prompt_id) — NOT NULL — Foreign key → Prompt.아이디 — NOT NULL
- 카테고리 아이디 (category_id) — NOT NULL — Foreign key → reportCategory.아이디 — NOT NULL
- 생성일 (created_at) — NOT NULL
reportCategory (신고 카테고리)
- 아이디 (category_id) — NOT NULL — Primary key — NOT NULL
- 카테고리 이름 (name) — NOT NULL
reportCategoryDetail (신고 카테고리 상세)
- 아이디 (detail_id) — NOT NULL — Primary key — NOT NULL
- 내용 (content) — NOT NULL
- 아이디 (category_id) — NOT NULL — Foreign key → reportCategory.아이디 — NOT NULL