StudyProject

Tables (8)

chat (Untitled4)

  • chat-id (채팅 아이디) — Primary key — NOT NULL
  • sender_id (보낸 사람)
  • receiver_id (받는 사람)
  • study-group-id (스터디 그룹 아이디)
  • message (메세지)
  • chat-type (채팅 타입)
  • created-at (생성일)
  • team_id (팀 아이디) — Foreign key → study_team.team_id — NOT NULL

friend (Untitled3)

  • freind_id_1 (친구 아이디) — Primary key — NOT NULL
  • user1_id (유저1 아이디)
  • user2_id (유저2 아이디)
  • created_at (친구가 된 날짜)
  • user_id (회원 아이디) — Foreign key → user.user_id — NOT NULL

friend request (Untitled7)

  • f_request_id (친구요청 키) — Primary key — NOT NULL
  • sender_id (친구 요청 보낸 사람 아이디)
  • receiver_id (친구 요청을 받은 아이디)
  • status (요청 상태(pending, accepted, rejected))
  • created_at (요청이 생성된 시간)
  • updated_at (상대가 요청을 받은 시간)
  • Field
  • user_id (회원 아이디) — Foreign key → user.user_id — NOT NULL

reservation (Untitled6)

  • Key — Primary key — NOT NULL
  • reservation-id (예약 아이디)
  • user-id (예약자 아이디)
  • study-room-id (스터디룸 아이디)
  • start-time (시작 시간)
  • end-time (끝나는 시간)
  • status (예약 상태)
  • study-room-id (스터디룸 아이디2) — Foreign key → study room.study-room-id — NOT NULL
  • team_id (팀 아이디) — Foreign key → study_team.team_id — NOT NULL

study room (Untitled5)

  • study-room-id (스터디룸 아이디) — Primary key — NOT NULL
  • study-name (스터디 이름) — l
  • location (장소)
  • capacity (수용 가능 인원)
  • status (에약 가능 여부)
  • Field

studyLog (Untitled)

  • log_id (로그 아이디) — Primary key — NOT NULL
  • user_id (유저 아이디)
  • study_date (공부한 날짜)
  • study_time (공부한 시간)
  • study_group_id (스터디 그룹 아이디)
  • user_id (회원 아이디) — Foreign key → user.user_id — NOT NULL
  • team_id (팀 아이디) — Foreign key → study_team.team_id — NOT NULL

study_team (Untitled2)

  • team_id (팀 아이디) — Primary key — NOT NULL
  • team_name (팀 이름)
  • team_leader_id (조장)
  • subject (주제)
  • startdate (시작일)
  • enddate (끝나는 날)
  • created_at (설립일)

user

  • user_id (회원 아이디) — Primary key — NOT NULL
  • password (비밀번호)
  • email (이메일)
  • name (이름)
  • age (나이)
  • team_id (팀 아이디)
  • profileImage (프로필 이미지)
  • team_id (팀 아이디2) — Foreign key → study_team.team_id — NOT NULL
  • chat-id (채팅 아이디) — Foreign key → chat.chat-id — NOT NULL
  • Key — Foreign key → reservation.Key — NOT NULL