tutordiff-project
Tables (13)
date_notice (과외 일지)
- ID (date_notice_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 일정 ID (schedule_id) — BIGINT — Foreign key → scedule.ID — NOT NULL
- 공지 ID (notice_id) — BIGINT — Foreign key → notice.ID — NOT NULL
- 과외 ID (tutoring_id) — BIGINT — Foreign key → tutoring.ID — NOT NULL
- 일지 학습 목표 (date_notice_title) — VARCHAR — NOT NULL
- 일정 시작 시간 (start_time) — VARCHAR — NOT NULL
- 일정 종료 시간 (end_time) — VARCHAR — NOT NULL
- 공지 상태 (notice_status) — ENUM — NOT NULL — NOTICE / NONE
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL
homework (과제)
- ID (homework_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 일지 ID (date_notice_id) — BIGINT — Foreign key → date_notice.ID — NOT NULL
- 과제 내용 (homework_body) — VARCHAR — NOT NULL
- 과제 이행 상태 (homework_status) — ENUM — NOT NULL — PROGRESS / FINISH
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL
message (메세지)
- ID (message_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 메세지 룸 ID (message_room_id) — BIGINT — Foreign key → message_room.ID — NOT NULL — IDENTITY
- 보낸 프로필 ID (sender_profile_id) — BIGINT — Foreign key → profile.ID — NOT NULL — IDENTITY
- 받는 프로필 ID (receiver_profile_id) — BIGINT — Foreign key → profile.ID — NOT NULL — IDENTITY
- 보낸 프로필 이름 (sender_name) — VARCHAR — NOT NULL
- 받는 프로필 이름 (receiver_name) — VARCHAR — NOT NULL
- 메세지 내용 (message_content) — VARCHAR — NOT NULL
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL
message_room (메세지 룸)
- ID (message_room_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 튜터 프로필 ID (tutor_profile_id) — BIGINT — Foreign key → profile.ID — NOT NULL — IDENTITY
- 튜티 프로필 ID (tutee_profile_id) — BIGINT — Foreign key → profile.ID — NOT NULL — IDENTITY
- 메세지 상태(읽음, 안읽음) (message_status) — ENUM — NOT NULL — CHECK / UNCHECK
- 과외 ID (tutoring_id) — BIGINT
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL
notice (공지)
- ID (notice_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 공지 내용 (notice_body) — LONGBLOB — NOT NULL
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL
profile (프로필)
- ID (profile_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 회원 ID (user_id) — BIGINT — Foreign key → users.ID — NOT NULL — IDENTITY
- 프로필 이미지 ID (profile_image_id) — BIGINT — Foreign key → profile_image.ID — NOT NULL — IDENTITY
- 이름 (name) — VARCHAR — NOT NULL
- 별점 (rate) — INT
- 한줄 소개 (bio) — VARCHAR — NOT NULL
- 원하는 날짜 (want_date) — LONGBLOB — NOT NULL
- 수업료(튜티 - 예산) (pay) — LONGBLOB — NOT NULL
- 수업 방법 (way) — LONGBLOB — NOT NULL
- 프로필 상태 (profile_status) — ENUM — NOT NULL — TUTEE / TUTOR/INACTIVE
- 공고 상태 (wanted_status) — ENUM — NOT NULL — NONE / REQUEST / BASIC
- 성별 (gender) — VARCHAR — NOT NULL
- 학교 (school) — VARCHAR — NOT NULL
- 성격 (character) — LONGBLOB — NOT NULL
- 시범과외 여부 (pre_tutoring) — LONGBLOB — NOT NULL
- 차별성 (difference) — LONGBLOB
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL
profile_image (프로필 이미지)
- ID (profile_image_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 파일 이름 (file_name) — VARCHAR — NOT NULL
- 이미지 URL (url) — VARCHAR — NOT NULL
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL
review (후기)
- ID (review_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 튜터 프로필 ID (tutor_profile_id) — BIGINT — Foreign key → profile.ID — NOT NULL — IDENTITY
- 튜티 프로필 ID (tutee_profile_id) — BIGINT — Foreign key → profile.ID — NOT NULL — IDENTITY
- 전문성 (professional) — INT — NOT NULL
- 준비성 (rediness) — INT — NOT NULL
- 설명력 (explanation) — INT — NOT NULL
- 시간 준수 (punctuality) — INT — NOT NULL
- 후기 내용 (review_body) — LONGBLOB
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL
scedule (일정)
- ID (schedule_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 일정 내용 (schedule_body) — LONGBLOB — NOT NULL
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL
subject (과목)
- ID (subject_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 과목 명 (subject_title) — VARCHAR — NOT NULL
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL
subject_profile (과목,프로필 조인테이블)
- ID (subject_profile_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 프로필 ID (profile_id) — BIGINT — Foreign key → profile.ID — NOT NULL — IDENTITY
- 과목 ID (subject_id) — BIGINT — Foreign key → subject.ID — NOT NULL — IDENTITY
- 과목별 내용 (content) — LONGBLOB
tutoring (과외)
- ID (tutoring_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 튜터 프로필 ID (tutor_profile_id) — BIGINT — Foreign key → profile.ID — NOT NULL — IDENTITY
- 튜티 프로필 ID (tutee_profile_id) — BIGINT — Foreign key → profile.ID — NOT NULL — IDENTITY
- 후기 ID (review_id) — BIGINT — Foreign key → review.ID — NOT NULL
- 과외 제목 (tutoring_title) — VARCHAR — NOT NULL
- 최근 공지 ID (latest_notice_id) — BIGINT
- 최근 공지 내용 (latest_notice_body) — LONGBLOB
- 과외 상태 (tutoring_status) — ENUM — NOT NULL — TUTEE_WAITING / TUTOR_WAITING / PROGRESS / UNCHECK / WAIT_FINISH/FINISH
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL
users (유저)
- ID (user_id) — BIGINT — Primary key — NOT NULL — IDENTITY
- 이메일 (email) — VARCHAR — NOT NULL
- 닉네임 (nickname) — VARCHAR — NOT NULL
- 비밀번호 (password) — VARCHAR — NOT NULL
- 2차 비밀번호 (second_password) — VARCHAR — NOT NULL
- 휴대폰 번호 (phone_number) — VARCHAR — NOT NULL
- 로그인 타입 (login_type) — ENUM — NOT NULL — BASIC / SOCIAL
- 회원 상태 (user_status) — ENUM — NOT NULL — NONE / TUTOR / TUTEE/INACTIVE
- 최초 생성 시간 (create_at) — TIMESTAMP — NOT NULL
- 최종 수정 시간 (update_at) — TIMESTAMP — NOT NULL