심리상담_NEW

테이블 (18)

CareChat (케어채팅)

  • careChatId (Key) — 기본 키 — NOT NULL
  • userId (Key3) — 외래 키 → User.userId — NOT NULL
  • exportId (Key4) — 외래 키 → Expert.expertId — NOT NULL
  • careId (Key2) — 외래 키 → CareRoom.careRoomId — NOT NULL
  • type (Key5) — 외래 키 → CareChatTypeEnum.type — NOT NULL
  • author (Field2)
  • contents (Field3)

CareChatTypeEnum (채팅 타입)

  • type (Key) — 기본 키 — NOT NULL
  • MESSAGE (Field)
  • RESERVATION_TIME (Field2)
  • PHOTO (Field3)
  • VIDEO (Field4)

CareRoom (헬스케어)

  • careRoomId (Key) — 기본 키 — NOT NULL
  • exportId (Key2) — 외래 키 → Expert.expertId — NOT NULL
  • userId (Key3) — 외래 키 → User.userId — NOT NULL
  • reservedAt (Field)
  • userExpertVoucherItemId (Key4) — 외래 키 → UserExpertVoucher.userExpertVoucherItemId — NOT NULL

Coupon (쿠폰)

  • Key — 기본 키 — NOT NULL

Expert (전문가)

  • expertId (Key) — 기본 키 — NOT NULL
  • username (Field)
  • password (Field2)
  • name (Field3)
  • phone (Field4)
  • comment (Field5)

ExpertCalculation (전문가 정산)

  • expertCalculationId (Key2) — 기본 키 — NOT NULL
  • exportId (Key) — 외래 키 → Expert.expertId — NOT NULL
  • status (Field)
  • price (Field2)
  • userExpertVoucherId (Key3) — 외래 키 → UserExpertVoucher.userExpertVoucherId — NOT NULL

ExpertCareer (경력/학력)

  • expertCareerId (Key) — 기본 키 — NOT NULL
  • exportId (Key2) — 외래 키 → Expert.expertId — NOT NULL
  • name (Field2)
  • type (Field)

ExpertExpertise (전문가 전문영역)

  • expertExpertiseId (Key) — 기본 키 — NOT NULL
  • exportId (Key2) — 외래 키 → Expert.expertId — NOT NULL
  • expertiseId (Key3) — 외래 키 → Expertise.expertiseId — NOT NULL

ExpertReview (전문가 리뷰)

  • expertReviewId (Key) — 기본 키 — NOT NULL
  • exportId (Key2) — 외래 키 → Expert.expertId — NOT NULL
  • careRoomId (Key3) — 외래 키 → CareRoom.careRoomId — NOT NULL
  • contents (Field)
  • ratings (Field2)

ExpertVoucher (전문가 구매권)

  • expertVoucherId (Key) — 기본 키 — NOT NULL
  • exportId (Key2) — 외래 키 → Expert.expertId — NOT NULL
  • type (Key3) — 외래 키 → ExpertVoucherTypeEnum.type — NOT NULL
  • count (Field2)
  • minutes (Field3)
  • deletedAt (Field4)

ExpertVoucherTypeEnum (전문가 구매권 타입)

  • type (Key) — 기본 키 — NOT NULL
  • TEXT (텍스트 상담)
  • TELEPHONE (전화상담)
  • FACE_TO_FACE (대면 상담)
  • CAREER (커리어 상담)
  • .... (Field)

Expertise (전문영역)

  • expertiseId (Key) — 기본 키 — NOT NULL
  • name (Field)
  • publishedAt (Field2)

User (사용자)

  • userId (Key) — 기본 키 — NOT NULL
  • name (Field)

UserCoupon (사용자 쿠폰)

  • Key — 기본 키 — NOT NULL
  • couponId (Key2) — 외래 키 → Coupon.Key — NOT NULL

UserExpertVoucher (사용자 보유 구매권)

  • userExpertVoucherId (Key) — 기본 키 — NOT NULL
  • expertVoucherId (Key2) — 외래 키 → ExpertVoucher.expertVoucherId — NOT NULL
  • userId (Key3) — 외래 키 → User.userId — NOT NULL
  • name (Field)
  • 전체 회차 수 (Field2)
  • 남은 회차 수 (Field3)
  • 유효 기간 (Field4)

UserExpertVoucher (사용자 보유 구매권 회차)

  • userExpertVoucherItemId (Key) — 기본 키 — NOT NULL
  • userExpertVoucherId (Key2) — 외래 키 → UserExpertVoucher.userExpertVoucherId — NOT NULL
  • 사용 여부 (Field)
  • 회차 (Field2)

UserPaymentHistory (결제내역)

  • userPaymentHistory (Key) — 기본 키 — NOT NULL
  • userId (Key2) — 외래 키 → User.userId — NOT NULL
  • status (Field)
  • targetId (Field2)
  • service (Field3)

전문가 케어 카테고리 Enum (Untitled)