42Stat

Tables (18)

achievement (Achievement)

  • PK (id) — integer — Primary key — NOT NULL
  • 업적명 (name) — varchar
  • 설명 (description) — varchar
  • 등급 (tier) — varchar
  • 종류 (kind) — varchar
  • 이미지 (image) — varchar

achievement_user (Achievement User)

  • 인트라 ID (intra_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 업적 ID (achievement_id) — integer — Foreign key → achievement.PK — NOT NULL

coalition (Coalition)

  • 코알리숑 아이디 (id) — integer — Primary key — NOT NULL
  • 코알리숑 이름 (name) — varchar
  • 이미지 URL (iamge_url) — varchar
  • 색상 (color) — varchar
  • 액티브 유저 수 (active_user_count) — integer
  • 과제 통과 수 (subject_passed_count) — integer
  • 평가 횟수 (evaluation_count) — integer
  • 블랙홀 유저 수 (blakcholed_user_count) — integer

coalition_score (Coalition Score)

  • PK (id) — integer — Primary key — NOT NULL
  • 인트라 ID (intra_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 점수 (score) — integer — NOT NULL
  • 스코어 종류 (score_type) — varchar
  • 발생 이유 (reason) — varchar
  • 발생일 (created_at) — date

coalition_score_monthly (Monthly Score)

  • PK (id) — integer — Primary key — NOT NULL
  • 인트라 ID (intra_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 년 (year) — integer
  • 월 (month) — integer
  • 점수 (score) — integer

corrected_stat (User Corrected Stat)

  • id — varchar — Primary key — NOT NULL
  • user_id (intra_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 평균 받은 점수 (average_mark) — real — NOT NULL
  • 총 평가 횟수 (total_evaluation_count) — integer — NOT NULL
  • 평균 평가 횟수(월) (average_evaluation_count) — real — NOT NULL
  • 아웃스탠딩 받은 횟수 (outstanding_count) — integer — NOT NULL
  • 평균 평가 시작 시간 (average_begin_time) — integer — NOT NULL
  • 평균 평가 소요 시간 (average_duration) — integer — NOT NULL
  • 평균 피드백 길이 (average_feedback_length) — real — NOT NULL

corrector_stat (User Corrector Stat)

  • PK (id) — integer — Primary key — NOT NULL
  • 인트라 ID (intra_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 평균 부여 점수 (average_mark) — real — NOT NULL
  • 총 평가 횟수 (total_evaluation_count) — integer — NOT NULL
  • 평균 평가 횟수(월) (average_evaluation_count) — real — NOT NULL
  • 아웃스탠딩 부여 횟수 (outstanding_count) — integer — NOT NULL
  • 평균 평가 시작 시간 (average_begin_time) — integer — NOT NULL
  • 평균 평가 소요 시간 (average_duration) — integer — NOT NULL
  • 평균 코멘트 길이 (average_comment_length) — real — NOT NULL

evaluation (Evaluation)

  • 평가 ID (id) — integer — Primary key — NOT NULL
  • 평가자 ID (corrector_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 코멘트 (comment) — varchar
  • 피드백 (feedback) — varchar
  • 점수 (final_mark) — integer
  • 플래그 종류 (positive) — boolean
  • 플래그 (flag) — integer
  • 시작 시간 (begin_at) — date — NOT NULL
  • 종료 시간 (end_at) — date
  • 평가자 점수 (rating) — integer
  • 팀 ID (team_id) — integer — Foreign key → team.팀 ID — NOT NULL

evaluation_count_monthly (Monthly Eval Count)

  • PK (id) — integer — Primary key — NOT NULL
  • 인트라 ID (intra_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 년 (year) — integer
  • 월 (month) — integer
  • 평가 횟수 (count) — integer

intra_user (Intra user data)

  • 인트라 아이디 (id) — integer — Primary key — NOT NULL
  • 이메일 (email) — varchar — NOT NULL
  • 인트라 닉네임 (login) — varchar — NOT NULL
  • 실명 (display_name) — varchar — NOT NULL
  • 평가 포인트 (correction_point) — integer — NOT NULL
  • 월렛 (wallet) — integer — NOT NULL
  • 활동 여부 (active) — boolean — NOT NULL
  • 등급 (grade) — varchar — NOT NULL
  • 레벨 (level) — real — NOT NULL
  • 기수 (generation) — integer — NOT NULL
  • 본과정 시작 시점 (begin_at) — date — NOT NULL
  • 업데이트 시점 (updated_at) — date — NOT NULL
  • 블랙홀 시점 (blackholed_at) — date
  • 코알리숑 ID (coalition_id) — integer — Foreign key → coalition.코알리숑 아이디 — NOT NULL
  • 코알리숑 유저 ID (coalition_user_id) — integer — NOT NULL — ?
  • 전체 코알리숑 점수 (total_coalition_score) — integer — NOT NULL
  • 통과한 과제 수 (passed_subject_count) — integer — NOT NULL
  • 이미지 URL (image_url) — varchar

project (Project(프로젝트 목록))

  • PK (id) — integer — Primary key — NOT NULL
  • 인트라 ID (intra_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 과제 ID (subject_id) — integer — Foreign key → subject.과제 ID — NOT NULL
  • 재시도 횟수 (occurrence) — integer — NOT NULL
  • 최종 점수 (final_mark) — integer
  • 상태 (status) — integer — NOT NULL
  • 통과 여부 (validated) — boolean
  • 채점 여부 (marked) — boolean — NOT NULL
  • 생성 시간 (created_at) — date — NOT NULL
  • 점수 부여 시간 (marked_at) — date
  • 통과 기간 (clear_time) — number

subject (Subject(과제 목록))

  • 과제 ID (id) — integer — Primary key — NOT NULL
  • 과제명 (name) — varchar — NOT NULL
  • 과제별칭 (slug) — varchar — NOT NULL
  • 평균 최종 점수 (average_final_mark) — real
  • 평균 재시도 횟수 (average_retry_count) — real
  • 평균 통과 기간 (average_clear_time) — integer
  • 시험 여부 (is_exam) — boolean
  • 통과한 학생 수 (total_clear_count) — integer

subject_stat (User Subject Stat)

  • id — integer — Primary key — NOT NULL
  • user_id (intra_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 평균 최종 점수 (average_final_mark) — real — NOT NULL
  • 평균 통과 기간 (average_clear_time) — integer — NOT NULL
  • 통과한 과제 수 (passed_count) — integer — NOT NULL
  • 총 재시도 횟수 (total_retry_count) — integer — NOT NULL
  • 최근 프로젝트 ID (last_project_id) — integer — Foreign key → project.PK

team (Team)

  • 팀 ID (id) — integer — Primary key — NOT NULL
  • 프로젝트 ID (project_id) — integer — Foreign key → project.PK — NOT NULL
  • 팀명 (name) — varchar — NOT NULL
  • 상태 (status) — integer — NOT NULL
  • 생성 시간 (created_at) — date — NOT NULL
  • 최종 점수 (final_mark) — number
  • 제출 여부 (locked) — boolean
  • 마감 여부 (closed) — boolean
  • 과제 제출 시간 (locked_at) — date
  • 과제 마감 시간 (closed_at) — date — NOT NULL

team_user (Team user)

  • PK (id) — integer — Primary key — NOT NULL
  • 인트라 ID (intra_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 팀 ID (team_id) — integer — Foreign key → team.팀 ID — NOT NULL

title (Untitled)

  • PK (id) — integer — Primary key — NOT NULL
  • 칭호명 (name) — varchar

title_user (Title User)

  • 칭호 ID (title_id) — integer — Foreign key → title.PK — NOT NULL
  • 인트라 ID (intra_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 장착 여부 (selected) — boolean

user (유저 정보)

  • 구글 ID (id) — string — Primary key — NOT NULL
  • 인트라 ID (intra_id) — integer — Foreign key → intra_user.인트라 아이디 — NOT NULL
  • 리프레시 토큰 (refresh_token) — varchar