attendance

Tables (5)

AttendanceCode (출석 코드)

  • code_id (출석 코드 아이디) — Primary key — NOT NULL
  • code (출석 코드)
  • created_by (생성자)
  • created_at (생성 시각)
  • expires_at (코드 만료 시간)
  • lecture_id (강의 아이디) — Foreign key → Lecture.lecture_id — NOT NULL

AttendanceRecord (출석 기록)

  • record_id (출석 기록 아이디) — Primary key — NOT NULL
  • attended_at (출석 시각)
  • code_id (출석 코드 아이디) — Foreign key → AttendanceCode.code_id — NOT NULL
  • user_id (유저 아이디) — Foreign key → User.user_id — NOT NULL

Course (과목)

  • course_id (과목 아이디) — Primary key — NOT NULL
  • name (과목명)
  • created_at (등록 시각)
  • user_id (유저 아이디) — Foreign key → User.user_id — NOT NULL

Lecture (강의)

  • lecture_id (강의 아이디) — Primary key — NOT NULL
  • name (강의명)
  • date (강의 날짜)
  • started_at (강의 시작 시각)
  • ended_at (강의 종료 시각)
  • course_id (과목 아이디) — Foreign key → Course.course_id — NOT NULL

User (유저)

  • user_id (유저 아이디) — Primary key — NOT NULL
  • username (로그인 아이디)
  • password (비밀번호)
  • name (이름)
  • role (역할) — ENUM('TEACHER', 'STUDENT')