test
테이블 (13)
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
- 생성일자 (created_at) — datetime — NOT NULL
- 수정일자 (updated_at) — datetime — NOT NULL
confirmedEstimate (확정된 견적서)
- 확정견적id (id) — string — 기본 키 — NOT NULL
- 견적id (id2) — string — 외래 키 → estimate.견적id — NOT NULL
- 확정시간 (createdAt) — datetime — NOT NULL
customer (고객)
- 고객id (id) — string — 기본 키 — NOT NULL
- 유저 ID (id3) — string — 외래 키 → User.유저 ID — NOT NULL
- 프로필사진 (img) — string — NOT NULL
- 이용서비스 (serviceType) — string[] — NOT NULL
- 거주 지역 (livingArea) — string — NOT NULL
estimate (견적)
- 견적id (id) — string — 기본 키 — NOT NULL
- 매칭id (id2) — string — 외래 키 → 지정 견적 요청.지정견적id — NOT NULL
- 견적가 (price) — int — NOT NULL
- 코멘트 (comment) — string — NOT NULL
estimateRequest (견적요청)
- 요청ID (id) — string — 기본 키 — NOT NULL
- 고객id (id2) — string — 외래 키 → customer.고객id — NOT NULL
- 이사 종류 (type) — string — NOT NULL
- 이사날짜 (date) — string — NOT NULL
- 요청 날짜 (createdAt) — datetime — NOT NULL
- 요청 타입 (requestType) — string — NOT NULL
like (찜하기)
- 찜하기Id (id) — string — 기본 키 — NOT NULL
- 기사id (id2) — string — 외래 키 → mover.기사id — NOT NULL
- 고객id (id3) — string — 외래 키 → customer.고객id — NOT NULL
- 찜한 날짜 (createdAt) — datetime — NOT NULL
mover (기사)
- 기사id (id) — string — 기본 키 — NOT NULL
- 유저 ID (id2) — string — 외래 키 → User.유저 ID — NOT NULL
- 프로필사진 (img) — string — NOT NULL
- 경력 (career) — string — NOT NULL
- 한 줄 소개 (one-liner) — string — NOT NULL
- 상세 설명 (introduction) — string — NOT NULL
- 제공 서비스 (serviceType) — string[] — NOT NULL
- 서비스 지역 (serviceArea) — string[] — NOT NULL
notification (알림)
- 알림ID (id) — string — 기본 키 — NOT NULL
- 유저 ID (id2) — string — 외래 키 → User.유저 ID — NOT NULL
- 읽기 여부 (isRead) — boolean — NOT NULL
- 알림 타입 (type) — newEstimate, request, confirmed — NOT NULL
- 내용 (content) — string — NOT NULL
review (리뷰)
- 리뷰id (id) — stirng — 기본 키 — NOT NULL
- 확정견적id (id4) — string — 외래 키 → confirmedEstimate.확정견적id — NOT NULL
- 별점 (score) — int — NOT NULL
- 리뷰 (review) — string — NOT NULL
- 작성시간 (createdAt) — datetime — NOT NULL
socialLogin (소셜로그인)
- 소셜id (id) — string — 기본 키 — NOT NULL
- 유저 ID (id2) — string — 외래 키 → User.유저 ID — NOT NULL
- 플랫폼 (pratform) — enum
- 플랫폼id (pratformId) — string
- 생성시간 (createdAt) — datetime — NOT NULL
요청 반려 (Untitled3)
- 요청반려id (id) — 기본 키 — NOT NULL
- 매칭id (id2) — string — 외래 키 → 지정 견적 요청.지정견적id — NOT NULL
- 반려사유 (Field) — string — NOT NULL
- 생성시간 (createdAt) — datetime — NOT NULL
주소 (Untitled2)
- 주소id (Key) — 기본 키 — NOT NULL
- 요청ID (id) — string — 외래 키 → estimateRequest.요청ID — NOT NULL
- 주소 타입 (type) — string — NOT NULL
지정 견적 요청 (Untitled)
- 지정견적id (id) — string — 기본 키 — NOT NULL
- 요청ID (id2) — string — 외래 키 → estimateRequest.요청ID — NOT NULL
- 고객id (id22) — string — 외래 키 → estimateRequest.고객id — NOT NULL
- 기사id (id3) — string — 외래 키 → mover.기사id — NOT NULL
- 기사 상태 (status) — string — NOT NULL
- 매칭 시간 (createdAt) — datetime — NOT NULL