D-DAY

테이블 (5)

Qr정보, 출석 체크 (attendance)

  • student_id (Key) — string — 외래 키 → 사용자 정보.student_id — NOT NULL
  • schedule_named (일정 이름2) — string — 외래 키 → 일정관리.schedule_named — NOT NULL
  • check (출석상태) — bool — Time 바코드 인식 시 자동 동기화
  • check_in_time (출석 시각) — timestamp
  • qr_code (출석QR) — string

사용자 정보 (user)

  • student_id (Key) — string — 기본 키 — NOT NULL
  • name (이름) — int — 없어도 됌 is null
  • role (학부생/관리자) — string — Var char
  • department (학과) — STRING — Var char
  • is_approved (승인 여부(관리자)) — bool — Var char

상품 추첨 관리 (lottery)

  • student_id (Key) — string — 외래 키 → 사용자 정보.student_id — NOT NULL
  • attendance_count (출석횟수) — Date time 로그인 몇분 지나면 자동 로그아웃 등등의 기능
  • department (학과) — string
  • lottery_date (당첨 시간정보) — timestamp
  • name (이름) — string

일정관리 (schedules)

  • schedule_named (일정 이름) — string — 기본 키 — NOT NULL
  • qr_code (출석QR) — int
  • schedule_count (일정 갯수) — number — TIME
  • start_time (시작 시간) — timestamp — TIME
  • location (장소) — string — VAR CHAR
  • instructor_name (강사 이름) — string
  • end_time (종료 시간) — timestamp

출석횟수 관리 (attendance_summary)

  • student_id (Key) — string — 외래 키 → 사용자 정보.student_id — NOT NULL
  • total_attendance (출석 횟수) — number