영웅의 집

테이블 (11)

letter (편지)

  • id (Key) — 기본 키 — NOT NULL
  • title (제목)
  • content (내용)
  • is_completed (편지 전달 완료 여부) — boolean
  • user_id (유저 아이디) — 외래 키 → user.id — NOT NULL
  • war_memoir_id (참전회고록 아이디) — 외래 키 → war_memoir.id — NOT NULL

sponsor_status (후원 현황)

  • id (Key) — 기본 키 — NOT NULL
  • is_approved (후원 승인 여부)
  • sponsorship_amount (유저의 후원금액)
  • user_id (유저아이디) — 외래 키 → user.id — NOT NULL
  • sponsorship_board_id (후원 게시판 아이디) — 외래 키 → sponsorship_board.id — NOT NULL

sponsorship_board (후원 게시판)

  • id (Key) — 기본 키 — NOT NULL
  • title (제목)
  • sub_title (간단 내용)
  • content (내용)
  • target_amount (목표 모금 금액)
  • start_date (시작일)
  • end_date (종료일)
  • current_amount (현재 모금 금액)
  • sponsorshop_status (후원 상태) — enum
  • user_id (유저아이디(관리자)) — 외래 키 → user.id — NOT NULL

sponsorship_board_photos (후원 게시판 사진)

  • id (Key) — 기본 키 — NOT NULL
  • Field (사진 경로)
  • sponsorship_board_id (후원 게시판 아이디) — 외래 키 → sponsorship_board.id — NOT NULL

sponsorship_review (후원 후기)

  • id (Key) — 기본 키 — NOT NULL
  • title (제목)
  • content (내용)
  • sponsorship_board_id (후원 게시판 아이디) — 외래 키 → sponsorship_board.id — NOT NULL

sponsorship_review_photos (후원 후기 사진)

  • id (Key) — 기본 키 — NOT NULL
  • file_path (사진 경로)
  • sponsorship_review_id (후원 후기 아이디) — 외래 키 → sponsorship_review.id — NOT NULL

sponsorship_review_reply (후원후기 댓글)

  • id (Key) — 기본 키 — NOT NULL
  • title (제목)
  • content (내용)
  • sponsorship_review_id (후원 후기 아이디) — 외래 키 → sponsorship_review.id — NOT NULL
  • user_id (유저 아이디) — 외래 키 → user.id — NOT NULL

sub_war_memoir (참전회고록 서브테이블)

  • id (Key) — 기본 키 — NOT NULL
  • section_order (섹션 순서)
  • title (소제목)
  • content (내용)
  • war_memori_id (참전회고록 아이디) — 외래 키 → war_memoir.id — NOT NULL

user (유저)

  • id (Key) — 기본 키 — NOT NULL
  • name (이름)
  • address (주소)
  • email (이메일)
  • phone_num (전화번호)
  • role (권한) — enum
  • create_at (생성일)

war_memoir (참전회고록)

  • id (Key) — 기본 키 — NOT NULL
  • title (제목)
  • image (사진 경로)
  • create_at (발간일)

war_memoir_reply (참전회고록 댓글)

  • id (Key) — 기본 키 — NOT NULL
  • title (제목)
  • content (내용)
  • create_at (생성일)
  • war_memoir_id (참전회고록 아이디) — 외래 키 → war_memoir.id — NOT NULL
  • user_id (유저 아이디) — 외래 키 → user.id — NOT NULL