Skip to content

DB 모델링

ije90s edited this page Aug 8, 2022 · 2 revisions

attendances(출석체크)

histories document의 데이터를 이용하여 출석일을 누적한다.

영어명 한글명 데이터 타입 비고
_id 일렬번호 object PK
user_id 아이디 string  
attendance_date 출석일 date  

accounts(계정정보)

사이트에 필요한 계정 정보를 담는다.

영어명 한글명 데이터 타입 비고
_id 일렬번호 object PK
user_id 아이디 string UNIQUE
name 이름 string
image_url 프로필 이미지 string
github_address 깃허브 주소 string
attendances 출석 누적수 int
pulls 풀퀘 누적수 int
commits 커밋 누적수 int
comments 댓글 누적수 int
createdAt 생성일 date
updatedAt 수정일 date

histories(계정 활동 내역 히스토리)

깃API를 이용하여 계정 활동 내역을 누적한다.

영어명 한글명 데이터 타입 비고
_id 일렬번호 object PK
user_id 아이디 string 인덱스
kind 호출 종류 string 커밋(commits), pulls(풀퀘), comments(댓글) , pull_comments(풀퀘 댓글) 인덱스
last_page 페이지번호 int 마지막 페이지 번호(다음 호출할 때 필요) 인덱스
action_date 생성일 date 인덱스
content 내용 string 커밋번호(sha), number(풀퀘번호), 댓글(내용), 인덱스
createdAt 생성일 date
updatedAt 수정일 date

💎 Project

📝 Record

Clone this wiki locally