Crayon

Tables (7)

Account (선생님 계정)

  • 선생님 계정 id (account_id) — NOTNULL — Primary key — NOT NULL
  • email (account_email) — NOTNULL
  • display_name (account_name) — NUTNULL
  • 지역 (account_locale) — NOTNULL
  • 프로필 사진 (account_picture_url) — NULLABLE
  • OAuth2 제공 (account_provider) — NOTNULL
  • OAuth2 제공자 ID (account_provider_id) — NOTNULL
  • 관리자 여부 (account_role) — NOTNULL

Attendance (출결)

  • 출결 id (attendence_id) — NOTNULL — Primary key — NOT NULL
  • 세션 id (session_id) — NOT NULL — Foreign key → Session.세션 id — NOT NULL
  • 학생 id (student_id) — NOT NULL — Foreign key → Student.학생 id — NOT NULL
  • 과목 id (subject_id2) — NOT NULL — Foreign key → Session.과목 id — NOT NULL
  • 출결 상태 (attendence_status) — NOTNULL

Class (학생 반)

  • 반 id (class_id) — NOT NULL — Primary key — NOT NULL
  • 선생님 계정 id (account_id) — NOTNULL — Foreign key → Account.선생님 계정 id — NOT NULL
  • 반 이름 (class_name) — NOT NULL

ClassSubject (반 과목)

  • 반 과목 id (class_subject_id) — NOT NULL — Primary key — NOT NULL
  • 반 id (class_id) — NOT NULL — Foreign key → Class.반 id — NOT NULL
  • 선생님 계정 id (account_id) — NOTNULL — Foreign key → Account.선생님 계정 id — NOT NULL
  • 과목 id (subject_id) — NOT NULL — Foreign key → Subject.과목 id — NOT NULL

Session (회차)

  • 세션 id (session_id) — NOT NULL — Primary key — NOT NULL
  • 반 과목 id (class_subject_id) — NOT NULL — Foreign key → ClassSubject.반 과목 id — NOT NULL
  • 과목 id (subject_id) — NOT NULL — Foreign key → ClassSubject.과목 id — NOT NULL
  • 시작 시간 (session_start_date_time) — NOTNULL
  • 종료 시간 (session_end_date_time) — NOTNULL

Student (학생)

  • 학생 id (student_id) — NOT NULL — Primary key — NOT NULL
  • 반 id (class_id2) — NOT NULL — Foreign key → Class.반 id — NOT NULL
  • 학생 이름 (student_name) — NOT NULL
  • 학생 전화번호 (student_phoneNumber) — NOT NULL

Subject (과목)

  • 과목 id (subject_id) — NOT NULL — Primary key — NOT NULL
  • 과목 이름 (subject_name) — NOT NULL