prography-11th-backend

테이블 (9)

QR (qr_code)

  • QR코드ID (qrCodeId) — Long — 기본 키 — NOT NULL
  • 세션ID (sessionId) — Long — 외래 키 → 일정.세션ID — NOT NULL
  • QR해시값 (hashValue) — String — NOT NULL
  • 생성일시 (createdAt) — Instant — NOT NULL
  • 만료일시 (expiresAt) — Instant — NOT NULL

기수 (cohort)

  • 기수ID (cohortId) — Long — 기본 키 — NOT NULL
  • 기수번호 (generation) — Integer — NOT NULL
  • 기수명 (cohortName) — String — NOT NULL

기수_회원 (cohort_member)

  • 기수_회원ID (cohortMemberId) — Long — 기본 키 — NOT NULL
  • 회원ID (memberId) — Long — 외래 키 → 회원.회원ID — NOT NULL
  • 기수ID (cohortId) — Long — 외래 키 → 기수.기수ID — NOT NULL
  • 파트ID (partId) — Long — 외래 키 → 파트.파트ID
  • 팀ID (teamId) — Long — 외래 키 → 팀.팀ID
  • 보증금 잔액 (deposit) — Integer — NOT NULL

보증금기록 (deposit_history)

  • 보증금기록ID (DepositHistoryId) — Long — 기본 키 — NOT NULL
  • 기수_회원ID (cohortMemberId) — Long — 외래 키 → 기수_회원.기수_회원ID — NOT NULL
  • 출결ID (attendanceId) — Long — 외래 키 → 출결.출결ID — NOT NULL
  • 이력 유형 (depositType) — Enum — NOT NULL
  • 금액 (amount) — Integer — NOT NULL
  • 변경 후 잔액 (balanceAfter) — Integer — NOT NULL
  • 설명 (description) — String — NOT NULL
  • 생성일시 (createdAt) — Instant — NOT NULL

일정 (session)

  • 세션ID (sessionId) — Long — 기본 키 — NOT NULL
  • 기수ID (cohortId) — Long — 외래 키 → 기수.기수ID — NOT NULL
  • 제목 (title) — String — NOT NULL
  • 날짜 (date) — LocalDate — NOT NULL
  • 시간 (time) — LocalTime — NOT NULL
  • 장소 (location) — String — NOT NULL
  • 상태 (status) — Enum — NOT NULL
  • 생성일시 (createdAt) — Instant — NOT NULL
  • 수정일시 (updatedAt) — Instant — NOT NULL

출결 (attendance)

  • 출결ID (attendanceId) — Long — 기본 키 — NOT NULL
  • 세션ID (sessionId) — Long — 외래 키 → 일정.세션ID — NOT NULL
  • QR코드ID (qrCodeId) — Long — 외래 키 → QR.QR코드ID — NOT NULL
  • 회원ID (memberId) — Long — 외래 키 → 회원.회원ID — NOT NULL
  • 출결상태 (attendanceStatus) — Enum — NOT NULL
  • 지각시간 (lateMinutes) — Integer
  • 패널티금액 (penalityAmount) — Integer
  • 사유 (reason) — String
  • 체크인 시각 (checkedInAt) — Instant — NOT NULL
  • 생성일시 (createdAt) — Instant — NOT NULL
  • 수정일시 (updatedAt) — Instant — NOT NULL

팀 (team)

  • 팀ID (teamId) — Long — 기본 키 — NOT NULL
  • 기수ID (cohortId) — Long — 외래 키 → 기수.기수ID — NOT NULL
  • 팀명 (teamName) — String

파트 (part)

  • 파트ID (partId) — Long — 기본 키 — NOT NULL
  • 기수ID (cohortId) — Long — 외래 키 → 기수.기수ID — NOT NULL
  • 파트명 (partName) — String — NOT NULL

회원 (member)

  • 회원ID (memberId) — Long — 기본 키 — NOT NULL
  • 아이디 (loginId) — String — NOT NULL
  • 비밀번호 (password) — String — NOT NULL
  • 이름 (name) — String — NOT NULL
  • 전화번호 (phone) — String — NOT NULL
  • 회원상태 (status) — Enum — NOT NULL
  • 역할 (role) — Enum — NOT NULL
  • 생성일시 (createdAt) — Instant — NOT NULL
  • 수정일시 (updatedAt) — instant — NOT NULL