무빙
테이블 (17)
견적 상태 히스토리 내역 (QuoteStatusHistory)
- 견적 상태 ID (id) — string — 기본 키 — NOT NULL
- 견적 요청 ID (quote_request_id) — string — 외래 키 → 견적 요청.견적 요청 ID — NOT NULL
- 견적 상태 (state) — string — NOT NULL
- 생성한 시간 (created_at) — datetime — NOT NULL
- 수정한 시간 (updated_at) — datetime — NOT NULL
견적 요청 (QuoteRequest)
- 견적 요청 ID (id) — string — 기본 키 — NOT NULL
- 고객 프로필 ID (customer_id) — string — 외래 키 → 고객 프로필.고객 프로필 ID — NOT NULL
- 이사 종류 (move_type) — string — NOT NULL — 1개만 선택
- 출발지 (from_region) — string — NOT NULL
- 도착지 (to_region) — string — NOT NULL
- 이사 예정일과 예정 시간 (move_date) — datetime — NOT NULL
- 견적 상태 (current_status) — string — NOT NULL
- 생성한 시간 (created_at) — datetime — NOT NULL
- 수정한 시간 (updated_at) — datetime — NOT NULL
견적 요청 주소 (QuoteRequestAddress)
- 주소 ID (id) — string — 기본 키 — NOT NULL
- 견적 요청 ID (quote_request_id) — string — 외래 키 → 견적 요청.견적 요청 ID — NOT NULL
- 시/도 (sido) — string — NOT NULL — 서울
- 시/군/구 (sigungu) — string — NOT NULL — 중구
- 상세주소 (street) — string — NOT NULL — 삼일대로 343
- 전체 주소 (full_address) — string — NOT NULL — 서울 중구 삼일대로 343
- 주소지 유형 (address_type) — enum — NOT NULL — 출발 주소지, 도착 주소지
고객 이용 서비스 (CustomerService)
- 고객 이용 서비스 ID (id) — string — 기본 키 — NOT NULL
- 고객 프로필 ID (customer_id) — string — 외래 키 → 고객 프로필.고객 프로필 ID — NOT NULL
- 이용 서비스 (service_type) — string — NOT NULL
- 생성한 시간 (created_at) — datetime — NOT NULL
고객 프로필 (Customer)
- 고객 프로필 ID (id) — string — 기본 키 — NOT NULL
- 유저 ID (user_id) — string — 외래 키 → 유저.유저 ID — NOT NULL
- 프로필 이미지 (profile_image) — string — NOT NULL
- 내가 사는 지역 (location) — string — NOT NULL
- 생성한 시간 (created_at) — datetime — NOT NULL
- 수정한 시간 (updated_at) — datetime — NOT NULL
기사님 서비스 가능 지역 (MoverServiceRegion)
- 기사님 서비스 가능 지역 ID (id) — string — 기본 키 — NOT NULL
- 기사 프로필 ID (mover_profile_id) — string — 외래 키 → 기사님 프로필.기사 프로필 ID — NOT NULL
- 서비스 가능 지역 (region) — string — NOT NULL
기사님 제공 서비스 (Mover Service)
- 기사님 제공 서비스 ID (id) — string — 기본 키 — NOT NULL
- 기사 프로필 ID (mover_profile_id) — string — 외래 키 → 기사님 프로필.기사 프로필 ID — NOT NULL
- 제공 서비스 (service_type) — string — NOT NULL
기사님 프로필 (Mover)
- 기사 프로필 ID (id) — string — 기본 키 — NOT NULL
- 유저 ID (user_id) — string — 외래 키 → 유저.유저 ID — NOT NULL
- 프로필 이미지 (profile_image) — string — NOT NULL
- 경력 (experience) — int — NOT NULL — 숫자만 입력
- 한줄소개 (introduction) — string — NOT NULL — 최소 8자 이상
- 상세 설명 (description) — string — NOT NULL — 최소 10자 이상
- 생성한 시간 (created_at) — datetime — NOT NULL
- 수정한 시간 (updated_at) — datetime — NOT NULL
- 평균 평점 (average_rating) — float — NOT NULL
- 총 리뷰 수 (total_reviews) — int — NOT NULL
- 총 찜 수 (total_favorites) — int — NOT NULL
- 총 확정 건수 (total_confirmed_count) — int — NOT NULL
리뷰 (Review)
- 리뷰 ID (id) — string — 기본 키 — NOT NULL
- 매칭 ID (quote_match_id) — string — 외래 키 → 확정된 견적(=매칭).매칭 ID — NOT NULL
- 평점 (rating) — int — NOT NULL — 1점 단위, 1~5점만 가능
- 후기 (comment) — string — NOT NULL — 최소 10자 이상
- 생성 시간 (created_at) — datetime — NOT NULL
받은 요청에 대한 기사님 견적 (Mover Quote)
- 이사업자 견적 ID (id) — string — 기본 키 — NOT NULL
- 견적 요청 ID (quote_request_id) — string — 외래 키 → 견적 요청.견적 요청 ID — NOT NULL
- 기사 프로필 ID (mover_id) — string — 외래 키 → 기사님 프로필.기사 프로필 ID — NOT NULL
- 지정 견적 요청 ID (targeted_quote_request_id) — string — 외래 키 → 지정 견적 요청.지정 견적 요청 ID — NOT NULL
- 견적가 (price) — int — NOT NULL
- 코멘트 (comment) — string — NOT NULL — 최소 10자
- 생성한 시간 (created_at) — datetime — NOT NULL
- 수정한 시간 (updated_at) — datetime — NOT NULL
소셜 로그인 (SocialLogin)
- 소셜 ID (id) — string — 기본 키
- 유저 ID (user_id) — string — 외래 키 → 유저.유저 ID — NOT NULL
- 소셜로그인 제공자 (provider) — string — NOT NULL
- 소셜 플랫폼의 사용자 ID (provider_id) — string — NOT NULL
- 접근 토큰 (access_token) — string
- 갱신 토큰 (refresh_token) — string
- 생성 시간 (created_at) — datetime — NOT NULL
- 수정 시간 (updated_at) — datetime — NOT NULL
알림 (Notification)
- 알림 id (id) — 기본 키 — NOT NULL
- 유저 ID (user_id) — string — 외래 키 → 유저.유저 ID — NOT NULL
- 내용 (message) — string — NOT NULL
- 읽음 여부 (is_read) — boolean — NOT NULL
- 이동 페이지 (url) — string
- 생성 시간 (created_at) — datetime — NOT NULL
유저 (User)
- 유저 ID (id) — string — 기본 키 — NOT NULL
- 사용자 유형 (user_type) — enum — NOT NULL
- 이메일 (email) — string — NOT NULL — unique
- 이름 (name) — string — NOT NULL
- 전화번호 (phone_number) — string — NOT NULL — unique
- 비밀번호 (password) — string — NOT NULL
- 생성 시간 (created_at) — datetime — NOT NULL
- 수정 시간 (updated_at) — datetime — NOT NULL
지정 견적 요청 (TargetedQuoteRequest)
- 지정 견적 요청 ID (id) — string — 기본 키 — NOT NULL
- 기사 프로필 ID (mover_id) — string — 외래 키 → 기사님 프로필.기사 프로필 ID — NOT NULL
- 견적 요청 ID (quote_request_id) — string — 외래 키 → 견적 요청.견적 요청 ID — NOT NULL
- 생성한 시간 (created_at) — datetime — NOT NULL
지정 견적 요청 반려 (TargetedQuoteRejection)
- 지정 견적 반려 ID (id) — string — 기본 키 — NOT NULL
- 지정 견적 요청 ID (targeted_quote_request_id) — string — 외래 키 → 지정 견적 요청.지정 견적 요청 ID — NOT NULL
- 반려 사유 (rejection_reason) — string — NOT NULL
- 생성한 시간 (created_at) — datetime — NOT NULL
찜 (Customer Favorite)
- 찜 ID (id) — string — 기본 키 — NOT NULL
- 기사 프로필 ID (mover_id) — string — 외래 키 → 기사님 프로필.기사 프로필 ID — NOT NULL
- 고객 프로필 ID (customer_id) — string — 외래 키 → 고객 프로필.고객 프로필 ID — NOT NULL
- 생성 시간 (created_at) — datetime — NOT NULL
- 수정 시간 (updated_at) — datetime — NOT NULL
확정된 견적(=매칭) (QuoteMatch)
- 매칭 ID (id) — string — 기본 키 — NOT NULL
- 견적 ID (mover_quote_id) — string — 외래 키 → 받은 요청에 대한 기사님 견적.이사업자 견적 ID — NOT NULL
- 이사 완료 여부 (is_completed) — boolean — NOT NULL
- 생성한 시간 (created_at) — datetime — NOT NULL
- 수정한 시간 (updated_at) — datetime — NOT NULL