jik
Tables (12)
attendance (출석)
- PK (id) — Primary key — NOT NULL
- 모임 회차별 id (club_session_id) — Foreign key → club_session.PK — NOT NULL
- 출석한 유저 id (user_id) — Foreign key → user.PK — NOT NULL
- 출석 상태 (status) — O,X
- 생성일 (created_at)
- 수정일 (updated_at)
club (모임 메타데이터)
- PK (id) — Primary key — NOT NULL
- 호스트 id (user_id) — Foreign key → user.PK — NOT NULL
- 모임 이름 (name)
- 모임 운영 상태 (status)
- 모임 총 횟수 (total_sessions)
- 모집 마감일 (recruitment_deadline)
- 모임 메인 배너 이미지 (main_banner_image_url)
- 호스트 소개 사진 (host_image_url)
- 호스트 소개 상세 (host_description)
- 가격 (price) — // TODO 가격 정책 고정되면 재검토
- 생성일 (created_at)
- 수정일 (updated_at)
club_curriculum (모임 커리큘럼 소개)
- PK (id) — Primary key — NOT NULL
- 모임 id (club_id) — Foreign key → club.PK — NOT NULL
- 회차 (session) — 몇회차 커리큘럼인지 소개
- 프로그램 소개 사진 (image_url) — 그런데 이 테이블이 정말 필요할지 검토 필요
- 프로그램 소개 설명 (content) — 마크다운, html 작성 가능하게 한다면
- 생성일 (created_at) — 메타데이터 테이블에 해당 정보 다 넣으면 되는거 아닌지
- 수정일 (updated_at)
club_session (모임 회차별 데이터)
- PK (id) — Primary key — NOT NULL
- 모임 id (club_id) — Foreign key → club.PK — NOT NULL
- 회차 (session)
- 과제 공지 (homework_notice)
- 과제 마감 시간 (homework_deadline)
- 모임 시간 (start_date)
- 모임 장소 (location) — 정확한 주소를 string으로 호스트가 입력
- 생성일 (created_at)
- 수정일 (updated_at)
- 회차별 가격 (price) — // TODO 가격 정책 고정되면 재검토
comment (과제 결과 피드 댓글)
- PK (id) — Primary key — NOT NULL
- 피드 id (homework_feed_id) — Foreign key → homework_feed.PK — NOT NULL
- 댓글 작성자 (user_id) — Foreign key → user.PK — NOT NULL
- 댓글 내용 (content)
- 댓글 상태 (status) — NORMAL, DELETED
- 생성일 (created_at)
- 수정일 (updated_at)
company (회사 정보)
- PK (id) — Primary key — NOT NULL
- 회사 이름 (name) — enum 관리?
- 이메일 도메인 (email_domain)
- 생성일 (created_at)
- 수정일 (updated_at)
email_verification (이메일 인증 관리)
- PK (id) — Primary key — NOT NULL
- 이메일 (email)
- 인증 토큰 (token)
- 인증 타입 (type)
- 인증 상태 (status)
- 생성일 (created_at)
- 수정일 (updated_at)
home_banner (홈배너)
- PK (id) — Primary key — NOT NULL
- 배너 사진 url (image_url)
- 배너 이름 (name)
- 게시 시작일 (start_date)
- 게시 종료일 (end_date)
- 게시 상태 (status)
- 생성일 (created_at)
- 수정일 (updated_at)
homework_feed (과제 결과 피드)
- PK (id) — Primary key — NOT NULL
- 모임 회차별 id (club_session_id) — Foreign key → club_session.PK — NOT NULL
- 피드 작성자 (user_id) — Foreign key → user.PK — NOT NULL
- 글 내용 (content)
- 글 상태 (status) — NORMAL, DELETED
- 생성일 (created_at)
- 수정일 (updated_at)
restricted_keyword (금칙어)
- PK (id) — Primary key — NOT NULL
- 금칙어 (keyword) — DB로 관리할지, enum으로 관리할지?
user (유저)
- PK (id) — Primary key — NOT NULL
- 이메일 (email) — 회사 이메일
- 비밀번호 (password)
- 유저 상태 (status) — NORMAL, DELETED,
- 닉네임 (nickname) — 중복 안됨
- 폰번호 (phone_number)
- 생성일 (created_at)
- 수정일 (updated_at)
user_joined_club (참여중인 모임)
- PK (id) — Primary key — NOT NULL
- 모임 id (club_id) — Foreign key → club.PK — NOT NULL
- 유저 id (user_id) — Foreign key → user.PK — NOT NULL
- 생성일 (created_at)
- 수정일 (updated_at)