alyes-tmp

테이블 (8)

메인 셔틀 정보 (MemberBus)

  • pk (id) — Integer — 기본 키 — NOT NULL
  • walk_in — Boolean — NOT NULL — 도보 여부(true일 경우, 나머지 모두 NULL)
  • pick_up_place_name — String
  • pick_up_address
  • pick_up_time — LocalTime
  • drop_place_name — String
  • drop_address
  • drop_time — LocalTime
  • pick_up_notes — String — 승차 비고
  • drop_notes — String — 하차 비고
  • created_at — LocalDateTime
  • updated_at — LocalDateTime
  • deleted_at — LocalDateTime — soft delete 위한 삭제 시간 필드
  • is_deleted — Boolean — soft delete 위한 삭제 여부 필드
  • member_id — Integer — 외래 키 → 회원(학생).pk — NOT NULL
  • team_id — Integer — 외래 키 → 회원(학생).team_id — NOT NULL

일별 출결 + 셔틀 정보 (MemberAttendance)

  • pk (id) — Integer — 기본 키 — NOT NULL
  • member_id — Integer — 외래 키 → 회원(학생).pk — NOT NULL
  • team_id — Integer — 외래 키 → 회원(학생).team_id — NOT NULL — 학생 팀 정보
  • attendance_category — Enum — 출석 카테고리 (출석, 결석, 보강, 이월)
  • attendance_date — LocalDate — 보강, 도보, 자차의 경우 날짜를 비워둔 채 날짜별 셔틀 정보 생성
  • is_paid — Boolean — NOT NULL — 미납부 -> 회색 점선 표시
  • walk_in — Boolean — NOT NULL — 도보 여부(true일 경우, 나머지 모두 NULL)
  • sort_order — Integer — NOT NULL — 셔틀버스에서 드래그 시 순서 변경. input 입력 시 셔틀 정보 변경
  • pick_up_place_name — String — 간편등록 필수 정보(도보 예외 처리 필요)
  • pick_up_address
  • pick_up_time — LocalTime
  • drop_place_name — String — 간편등록 필수 정보(도보 예외 처리 필요)
  • drop_address
  • drop_time — LocalTime
  • deleted_at — LocalDateTime — soft delete 위한 삭제 시간 필드
  • is_deleted — Boolean — soft delete 위한 삭제 여부 필드
  • created_at — LocalDateTime
  • updated_at — LocalDateTime
  • move_supplementary_class_id — Integer — 외래 키 → 일별 출결 + 셔틀 정보.pk — 보강 시도일 id (보강 수업일 취소 시, 보강 시도일의 카테고리도 변경 필요하므로 1:1 매핑)
  • member_id (member_id2) — Integer — 외래 키 → 일별 출결 + 셔틀 정보.member_id — 보강 시도일 학생 정보
  • supplementary_team_id — Integer — 외래 키 → 일별 출결 + 셔틀 정보.team_id — 보강 시도일 팀 정보

일정 (Schedule)

  • pk (id) — Integer — 기본 키 — NOT NULL
  • date — LocalDateTime — NOT NULL
  • title — String — NOT NULL
  • body — String
  • schedule_category — Enum — NOT NULL
  • deleted_at — LocalDateTime — soft delete 위한 삭제 시간 필드
  • is_deleted — Boolean — NOT NULL — soft delete 위한 삭제 여부 필드
  • created_at — LocalDateTime
  • updated_at — LocalDateTime
  • sports_club_id — Integer — 외래 키 → 학원.pk — NOT NULL

팀(클래스) (Team)

  • pk (id) — Integer — 기본 키 — NOT NULL
  • name — String — NOT NULL
  • sport_category — Enum — NOT NULL
  • days — List<DayOfWeek> — NOT NULL — 수업요일. 매주 반복
  • start_time — LocalTime — NOT NULL
  • end_time — LocalTime — NOT NULL
  • age — Enum — NOT NULL — 대상 연령층
  • image — String
  • created_at — LocalDateTime
  • updated_at — LocalDateTime
  • deleted_at — LocalDateTime — soft delete 위한 삭제 시간 필드
  • is_deleted — Boolean — soft delete 위한 삭제 여부 필드
  • sports_club_id — Integer — 외래 키 → 학원.pk — NOT NULL

학원 (SportsClub)

  • pk (id) — Integer — 기본 키 — NOT NULL
  • name — String — NOT NULL
  • ceo — String — NOT NULL
  • sport_category — Enum — NOT NULL
  • target_group — Enum — NOT NULL
  • address — String — NOT NULL
  • contact — String — NOT NULL
  • username — String — NOT NULL — 원장 계정 아이디
  • password — String — NOT NULL — 원장 계정 비밀번호
  • created_at — LocalDateTime
  • updated_at — LocalDateTime
  • deleted_at — LocalDateTime — soft delete 위한 삭제 시간 필드
  • is_deleted — Boolean — soft delete 위한 삭제 여부 필드

회원 회비 납부 (MemberPaid)

  • pk (id) — Integer — 기본 키 — NOT NULL
  • paid_date — LocalDate — NOT NULL — 회비 납부일
  • is_paid — Boolean — NOT NULL — 매번 is_paid=true 될 때마다, is_paid=false인 row를 추가
  • current_register_count — Integer — 회차 납입 시 현재 회차 수 (회원 프로필에 표시)
  • created_at — LocalDateTime
  • updated_at — LocalDateTime
  • deleted_at — LocalDateTime — soft delete 위한 삭제 시간 필드
  • is_deleted — Boolean — soft delete 위한 삭제 여부 필드
  • member_id — Integer — 외래 키 → 회원(학생).pk — NOT NULL
  • team_id — Integer — 외래 키 → 회원(학생).team_id — NOT NULL

회원 회비 정보 (MemberPayment)

  • pk (id) — Integer — 기본 키 — NOT NULL
  • register_date — LocalDate — NOT NULL — 등록일
  • register_type — Enum — NOT NULL — 등록 타입
  • payment_method — Enum — NOT NULL — 결제 방식
  • total_register_count — Integer — 회차 납입 시 총 회차 수
  • cash_receipt_info — String
  • due — Integer — NOT NULL — 회비(금액)
  • created_at — LocalDateTime
  • updated_at — LocalDateTime
  • deleted_at — LocalDateTime — soft delete 위한 삭제 시간 필드
  • is_deleted — Boolean — soft delete 위한 삭제 여부 필드
  • member_id — Integer — 외래 키 → 회원(학생).pk — NOT NULL
  • team_id — Integer — 외래 키 → 회원(학생).team_id — NOT NULL

회원(학생) (Member)

  • pk (id) — Integer — 기본 키 — NOT NULL
  • team_id — Integer — 외래 키 → 팀(클래스).pk — NOT NULL — Academy가 아닌, Team 단위로 회원 등록
  • image — String
  • name — String — NOT NULL — 간편등록 필수 정보
  • school — String — NOT NULL — 간편등록 필수 정보
  • grade — Enum
  • birth_date — LocalDate
  • gender — Enum
  • guardian — Enum
  • emergency_contact — String — NOT NULL — 간편등록 필수 정보
  • marketing_opt_in — Boolean
  • created_at — LocalDateTime
  • updated_at — LocalDateTime
  • deleted_at — LocalDateTime — soft delete 위한 삭제 시간 필드
  • is_deleted — Boolean — soft delete 위한 삭제 여부 필드