WithCampus

테이블 (14)

1:1문의내역 (question)

  • 번호 (num) — not null — 기본 키 — NOT NULL
  • 제목 (title) — not null
  • 본문 (content) — not null
  • 첨부이미지 (img)
  • 이메일 (email) — not null — 외래 키 → 유저.이메일 — NOT NULL

같이 타요(택시) (texi)

  • 번호 (num) — not null — 기본 키 — NOT NULL
  • 출발지 (departure) — not null
  • 동승시간 (pickup_time) — not null
  • 생성시간 (createdAt) — not null
  • 인원수 (max_people) — not null
  • 이메일 (email) — not null — 외래 키 → 유저.이메일 — NOT NULL

공지사항 (announcement)

  • 번호 (num) — not null — 기본 키 — NOT NULL
  • 생성시간 (createdAt) — not null
  • 수정시간 (updateAt)
  • 제목 (title) — not null
  • 내용 (content) — not null

리뷰 (review)

  • 번호 (num) — not null — 기본 키 — NOT NULL
  • 회원ID (author_id) — not null
  • 별점 (star) — not null
  • 이름 (name) — not null
  • 생성시간 (createdAt) — not null
  • 내용 (coment)
  • 이메일 (email) — not null — 외래 키 → 유저.이메일 — NOT NULL

알림 (notifications)

  • 알림ID (id) — not null — 기본 키 — NOT NULL
  • 알림내용 (content) — not null
  • 생성시간 (createdAt) — not null
  • Key — 외래 키 → 유저.이메일 — NOT NULL

유저 (uesr)

  • 이메일 (email) — not null — 기본 키 — NOT NULL
  • 차량번호 (car_number) — 외래 키 → 차량정보.차량번호 — NOT NULL
  • 학번 (user_id) — not null
  • 비밀번호 (password) — not null
  • 닉네임 (name) — not null
  • 성별 (sex) — not null
  • 학교 (school) — not null
  • GPS동의 (agreeGps) — not null
  • 개인정보처리 (agreeInfo) — not null
  • 생성시간 (createdAt) — not null
  • 학생증이미지 (card_url) — not null
  • 프로필 이미지URL (profileUrl)
  • 평점 (review)
  • 알림동의 (pushAlarm)
  • 자주쓰는 주소 (home)

유저신고 (report)

  • 번호 (num) — not null — 기본 키 — NOT NULL
  • 대상자ID (target_id) — not null
  • 제목 (title) — not null
  • 본문 (content) — not null
  • 첨부이미지 (img)
  • 이메일 (email) — not null — 외래 키 → 유저.이메일 — NOT NULL

차량정보 (car_info)

  • 차량번호 (car_number) — not null — 기본 키 — NOT NULL
  • 운전면허URL (car_licenseUrl)
  • 차량앞면URL (car_photoUrl)
  • 제조사 (car_type)

채팅메시지 (chat_message)

  • 채팅메시지ID (chat_id) — not null — 기본 키 — NOT NULL
  • 채팅방ID (room_id) — not null — 외래 키 → 채팅방.채팅방ID — NOT NULL
  • 메시지 (message) — not null
  • 읽기여부 (read_check) — not null
  • 생성시간 (createdAt) — not null
  • 이메일 (email) — not null — 외래 키 → 유저.이메일 — NOT NULL

채팅방 (chat_room)

  • 채팅방ID (room_id) — not null — 기본 키 — NOT NULL
  • 대상유저ID (author_id) — not null
  • 생성시간 (createdAt) — not null
  • 이메일 (email) — not null — 외래 키 → 유저.이메일 — NOT NULL

타세요(자차) (carpool)

  • 번호 (num) — not null — 기본 키 — NOT NULL
  • 이메일 (email) — not null — 외래 키 → 유저.이메일 — NOT NULL
  • 출발지 (departure) — not null
  • 도착지 (destination) — not null
  • 픽업시간 (pickup_time) — not null
  • 요금 (cost)
  • 생성시간 (createdAt) — not null
  • 거리 (distance)
  • 최대인원수 (max_people) — not null
  • 추가사항 (comment)
  • 해시태그 (tag)

탑승자 (join_carpool)

  • 번호 (num) — not null — 기본 키 — NOT NULL
  • 제공자email (email) — not null — 외래 키 → 타세요(자차).번호 — NOT NULL
  • 탑승자ID (accept_email) — not null
  • 성별 (sex) — not null

합승자(택시) (join_texi)

  • 번호 (num) — not null — 기본 키 — NOT NULL
  • 등록자ID (email) — not null — 외래 키 → 같이 타요(택시).번호 — NOT NULL
  • 합승자ID (accept_email) — not null
  • 성별 (sex) — not null

회원가입 대기자 (signup_list)

  • 학번(id) (user_id) — not null — 기본 키 — NOT NULL
  • 학교 (school) — not null
  • 성별 (sex) — not null
  • 학생증이미지 (card_url) — not null