메가폴
테이블 (28)
관리자 쪽지 (admin_mail)
- 관리자 쪽지 ID (admin_mail_id) — long — 기본 키 — NOT NULL
- 회원ID (send_member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 발송대상 (reciever_type) — enum — NOT NULL — 개인 회원,토픽 참여자, 전체 회원
- 내용 (admin_mail_content) — string — NOT NULL
- 받은회원ID (receive_member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 토픽ID (topic_id) — long — 외래 키 → 토픽 BaseEntity.토픽ID — NOT NULL
금칙어 (ban_word)
- 금칙어 ID (ban_word_id) — long — 기본 키 — NOT NULL
- 금칙어 (ban_word) — string — NOT NULL
매매 거래 BaseEntity (trade)
- 트레이드ID (trade_id) — long — 기본 키 — NOT NULL
- 회원ID (member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 토픽선택지ID (topic_option_id) — long — 외래 키 → 토픽-선택지 BaseEntity.토픽선택지ID — NOT NULL
- 주문 유형 (trade_type) — enum — NOT NULL — 매수/매도
- 거래 상태 (trade_status) — enum — NOT NULL — 미체결/체결/주문 취소
- 시장가 (price) — integer — NOT NULL
- 주문 수량 (quantity) — integer — NOT NULL
- 주문 금액 (trade_price) — integer — NOT NULL
- 체결 시간 (trade_time) — timestamp — NOT NULL
- 수수료 금액 (fee) — integer — NOT NULL
매매 거래 히스토리 BaseEntity (trade_history)
- 트레이드 히스토리 ID (trade_history_id) — long — 기본 키 — NOT NULL
- 토픽선택지ID (topic_option_id) — long — 외래 키 → 토픽-선택지 BaseEntity.토픽선택지ID — NOT NULL
- 트레이드ID (trade_id) — long — 외래 키 → 매매 거래 BaseEntity.트레이드ID — NOT NULL
- 회원ID (member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 주문 유형 (trade_type) — enum — NOT NULL
- 거래 상태 (trade_status) — enum — NOT NULL
- 시장가 (price) — integer — NOT NULL
- 주문 수량 (quantity) — integer — NOT NULL
- 주문 금액 (tradePrice) — integer — NOT NULL
메인 배너 토픽 (topic_banner)
- 메인 배너 토픽ID (topic_banner_id) — long — 기본 키 — NOT NULL
- 토픽ID (topic_id) — long — 외래 키 → 토픽 BaseEntity.토픽ID — NOT NULL
- 섹션 (banner_section) — string — NOT NULL
- 순번 (banner_sort_order) — int — NOT NULL
상품 주문BaseEntity (promotion_order)
- 상품 주문ID (promotion_order_id) — Long — 기본 키 — NOT NULL
- 상품 ID (promotion_product_id) — Long — 외래 키 → 상품BaseEntity.상품 ID — NOT NULL
- 회원ID (member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 상태 (promotion_order_status) — enum — 발송완료,상품준비중,배송중,배송완료
- 당첨 여부 (lottery_win_status) — enum — 응모 진행중, 당첨, 미당첨
- 송장번호 (invoice_number) — String
상품BaseEntity (promotion_product)
- 상품 ID (promotion_product_id) — Long — 기본 키 — NOT NULL
- 상품 유형 (product_type) — enum — NOT NULL — 즉시구매형,응모형
- 수령방식 (receive_type) — enum — NOT NULL — 기프티콘, 택배
- 기프티콘 코드 (goods_code) — String
- 상품명 (product_name) — String — NOT NULL
- 상품 설명 (product_description) — String — NOT NULL
- 상품썸네일 (product_thumnail) — String — NOT NULL
- 금액 (product_price) — Integer — NOT NULL
- 토픽 참여 일수 (used_participation_days) — Integer — NOT NULL
- 토픽 참여 횟수 (used_participation_count) — Integer — NOT NULL
- 노출여부 (is_visible) — Boolean — NOT NULL
- 응모 진행 여부 (lottery_status) — enum — 응모 진행중, 응모완료
- 응모 마감일시 (lottery_close_time) — LocalDateTime
- 당첨 수량 (lottery_win_quantity) — Integer
제안 토픽 BaseEntity (topic_proposal)
- 제안 토픽ID (topic_proposal_id) — long — 기본 키 — NOT NULL
- 회원ID (member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 토픽 소분류ID (topic_subcategory_id) — long — 외래 키 → 토픽 소분류.토픽 소분류ID — NOT NULL
- 토픽ID (topic_id) — long — 외래 키 → 토픽 BaseEntity.토픽ID — NOT NULL
- 상태 (topic_proposal_status) — enum — NOT NULL — 채택 대기/채택 완료/미채택
- 제안 토픽 제목 (topic_proposal_title) — string — NOT NULL
- 제안 토픽 썸네일 (topic_proposal_image_url) — string — NOT NULL
- 제안 토픽 개요 (topic_proposal_content) — string — NOT NULL
- 제안 토픽 종류 (topic_proposal_category) — string — NOT NULL
제안토픽-선택지 (topic_propose_option)
- 제안토픽선택지ID (topic_propose_option_id) — long — 기본 키 — NOT NULL
- 제안 토픽ID (topic_propose_id) — long — 외래 키 → 제안 토픽 BaseEntity.제안 토픽ID — NOT NULL
- 선택지명 (topic_propose_option_name) — string — NOT NULL
쪽지 (mail)
- 쪽지ID (mail_id) — long — 기본 키 — NOT NULL
- 보낸회원ID (sender_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 받은회원ID (receiver_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 쪽지 내용 (mial_content) — string — NOT NULL
- 읽음 여부 (is_read) — boolean — NOT NULL
- 보관함 여부 (is_keep) — boolean — NOT NULL
- 발신자 여부 (is_sender) — boolean — NOT NULL
찜한토픽BaseEntity (topic_bookmark)
- 찜한토픽ID (topic_bookmark_id) — long — 기본 키 — NOT NULL
- 회원ID (member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 토픽ID (topic_id) — long — 외래 키 → 토픽 BaseEntity.토픽ID — NOT NULL
캐시 주문 BaseEntity (cash_order)
- 캐시 주문ID (cash_order_id) — long — 기본 키 — NOT NULL
- 결제수단 (pay_category) — enum — NOT NULL — 신용/체크카드, 페이코, 카카오페이, 토스페이
- 캐시 충전 상품ID (cash_product_id) — long — 외래 키 → 캐시 충전 상품 BaseEntity.캐시 충전 상품ID — NOT NULL
캐시 충전 상품 BaseEntity (cash_product)
- 캐시 충전 상품ID (cash_product_id) — long — 기본 키 — NOT NULL
- 상품 유형 (cash_product_category) — enum — NOT NULL — 일반, 확률형
- 금액 (cash_product_price) — int — NOT NULL
- 한줄 설명 (cash_product_content) — string
- 노출여부 (is_visible) — boolean — NOT NULL
캐시 충전 상품-지급캐시 BaseEntity (cash_product_amount)
- 캐시 충전 상품-지급캐시ID (cash_product_amount_id) — long — 기본 키 — NOT NULL
- 캐시 충전 상품ID (cash_product_id) — long — 외래 키 → 캐시 충전 상품 BaseEntity.캐시 충전 상품ID — NOT NULL
- 지급캐시 (amount_cash) — int — NOT NULL
- 지급확률 (amount_percent) — double — NOT NULL
캐시 히스토리 BaseEntity (cash_history)
- 캐시 히스토리ID (cash_history_id) — long — 기본 키 — NOT NULL
- 사용/적립 구분 (cash_history_type) — enum — NOT NULL — 적립,사용
- 용도 구분 (cash_history_category) — enum — NOT NULL — 일반 상품 충전, 확률형 상품 충전, 추천 캐시 적립, 환불, 사용,토픽 판매,토픽 구매
- 내용 (cash_history_content) — string — NOT NULL
- 사용/적립 캐시 (cash_amount) — int — NOT NULL
커머스 상품 BaseEntity (commerce_product)
- 커머스 상품 ID (commerce_product_id) — long — 기본 키 — NOT NULL
- 상품 이름 (product_name) — string — NOT NULL
- 상품 가격 (product_price) — int — NOT NULL
- 판매 마감일시 (sell_end_time) — timestamp — NOT NULL
- 보유 수량 (quantity) — int — NOT NULL
토픽 BaseEntity (topic)
- 토픽ID (topic_id) — long — 기본 키 — NOT NULL
- 토픽 소분류ID (topic_subcategory_id) — long — 외래 키 → 토픽 소분류.토픽 소분류ID — NOT NULL
- 제안 맴버ID (proposal_member_id) — long
- 토픽 제목 (topic_title) — string — NOT NULL
- 토픽 썸네일주소 (topic_image_url) — string — NOT NULL
- 토픽 개요 (topic_content) — string — NOT NULL
- 토픽 종류 (topic_category) — enum — NOT NULL — 양자택일형/다중선택형
- 참여시작기간 (topic_start_date) — LocalDate — NOT NULL
- 참여종료기간 (topic_end_date) — LocalDate — NOT NULL
- 상태 (topic_state) — enum — NOT NULL — 오픈 예정/예측 진행중/예측 마감/결과 등록
토픽 대분류 (topic_category)
- 토픽 대분류ID (topic_category_id) — long — 기본 키 — NOT NULL
- 대분류 이름 (topic_category_name) — string — NOT NULL
- 노출 여부 (is_visible) — boolean — NOT NULL
토픽 소분류 (topic_subcategory)
- 토픽 소분류ID (topic_subcategory_id) — long — 기본 키 — NOT NULL
- 토픽 대분류ID (topic_category_id) — long — 외래 키 → 토픽 대분류.토픽 대분류ID — NOT NULL
- 소분류 이름 (topic_subcategory_name) — string — NOT NULL
토픽 의견 BaseEntity (topic_review)
- 토픽 의견ID (topic_review_id) — long — 기본 키 — NOT NULL
- 부모 토픽ID (parent_topic_id) — long — 기본 키 — NOT NULL
- 토픽ID (topic_id) — long — 외래 키 → 토픽 BaseEntity.토픽ID — NOT NULL
- 토픽 의견 (topic_review_content) — string — NOT NULL
토픽 좋아요 (topic_review_like)
- 토픽 좋아요ID (topic_like_id) — long — 기본 키 — NOT NULL
- 토픽 의견ID (topic_review_id) — long — 외래 키 → 토픽 의견 BaseEntity.토픽 의견ID — NOT NULL
- 회원ID (member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
토픽-선택지 BaseEntity (topic_option)
- 토픽선택지ID (topic_option_id) — long — 기본 키 — NOT NULL
- 토픽ID (topic_id) — long — 외래 키 → 토픽 BaseEntity.토픽ID — NOT NULL
- 선택지명 (topic_option_name) — string — NOT NULL
- 초기유동성 (start_liquid) — long — NOT NULL
- 유동성 (flow_liquid) — long — NOT NULL
- 시장가 (market_price) — int — NOT NULL
포지션 BaseEntity (position)
- 포지션ID (position_id) — long — 기본 키 — NOT NULL
- 회원ID (member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 토픽선택지ID (topic_option_id) — long — 외래 키 → 토픽-선택지 BaseEntity.토픽선택지ID — NOT NULL
- 보유 수량 (quantity) — integer — NOT NULL
포지션 히스토리 BaseEntity (position_history)
- 포지션 히스토리 ID (position_history_id) — long — 기본 키 — NOT NULL
- 트레이드ID (trade_id) — long — 외래 키 → 매매 거래 BaseEntity.트레이드ID — NOT NULL
- 포지션ID (position_id) — long — 외래 키 → 포지션 BaseEntity.포지션ID — NOT NULL
- 토픽선택지ID (topic_option_id) — long — 외래 키 → 토픽-선택지 BaseEntity.토픽선택지ID — NOT NULL
- 회원ID (member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 보유 수량 (quantity) — integer — NOT NULL
- 주문 금액 (trade_price) — integer — NOT NULL
- 체결 시간 (trade_time) — timestamp — NOT NULL
- 주문 유형 (trade_type) — enum — NOT NULL
- 거래 상태 (trade_status) — enum — NOT NULL
- 수수료 금액 (fee) — integer — NOT NULL
회원 BaseEntity (member)
- 회원ID (member_id) — long — 기본 키 — NOT NULL
- 이메일 (email) — string — NOT NULL
- 가입수단 (member_type) — enum — NOT NULL — kakao,google,naver,payco
- 닉네임 (nickname) — string — NOT NULL
- 휴대폰번호 (phone_number) — string — NOT NULL
- 배송지 (address) — stirng
- 상세주소 (subaddress) — string
- 상태 (member_status) — enum — NOT NULL — 일반/탈퇴
- 추천코드 (invite_code) — string — NOT NULL
- 프로필사진 (profile_image) — string
회원-ci (member_ci)
- 회원-ciID (member_ci_id) — long — 기본 키 — NOT NULL
- 회원ID (member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- ci — string — NOT NULL
회원-보유 캐시박스 BaseEntity (member_cash_box)
- 회원-보유 캐시박스ID (member_cash_box_id) — long — 기본 키 — NOT NULL
- 회원ID (member_id) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 캐시 충전 상품ID (cash_product_id) — long — 외래 키 → 캐시 충전 상품 BaseEntity.캐시 충전 상품ID — NOT NULL
- 유효기간 (expiration_date) — LocalDateTime — NOT NULL
회원-보유캐시 BaseEntity (member_cash)
- 회원-보유자산ID (member_cash_id) — long — 기본 키 — NOT NULL
- 회원ID (member_id2) — long — 외래 키 → 회원 BaseEntity.회원ID — NOT NULL
- 보유캐시 (cash) — int — NOT NULL
- 캐시내역 (cash_type) — enum — NOT NULL
- 캐시 디스크립션 (cash_description) — varchar — NOT NULL