untitled

테이블 (20)

게시판 (Boards)

  • 게시판_아이디 (board_id) — int — 기본 키 — NOT NULL
  • 유저_아이디 (user_id) — int — 외래 키 → 유저.유저_아이디 — NOT NULL
  • 타입 (pet_type) — enum
  • 품종 (breed) — string
  • 성별 (gender) — enum
  • 생년월일 (date_of_birth) — string
  • 몸무게 (weight) — float
  • 병원이름 (hospital_name) — string
  • 수의사이름 (doctor_name) — string
  • 내용 (content) — text
  • 이미지 (image) — string

결제 (Payments)

  • 결제_아이디 (payment_id) — int — 기본 키 — NOT NULL
  • 주문정보_아이디 (order_id) — int — 외래 키 → 주문정보.주문정보_아이디 — NOT NULL
  • 결제수단 (payment_method) — enum
  • 결제금액 (amount) — decimal
  • 결제상태 (payment_status) — enum
  • 결제일 (payment_date) — datetime
  • 생성일 (created_at) — datetime
  • 변경일 (updated_at) — datetime
  • 결제고유번호 (payment_unique_id) — int

관리자 (Admins)

  • 관리자_아이디 (admin_id) — int — 기본 키 — NOT NULL
  • 관리자_이름 (admin_username) — string
  • 비밀번호 (password) — string

동물 (Pets)

  • 동물_아이디 (pet_id) — int — 기본 키 — NOT NULL
  • 유저_아이디 (user_id) — int — 외래 키 → 유저.유저_아이디 — NOT NULL
  • 동물_이름 (pet_name) — string
  • 동물_타입 (pet_type) — enum
  • 품종 (breed) — string
  • 성별 (gender) — enum
  • 생년월일 (date_of_birth) — string
  • 몸무게 (weight) — float
  • 고유번호 (unique_number) — string
  • 동물_이미지 (pet_image) — string
  • 동물_등록증_이미지 (id_card_image) — string
  • 생성일 (created_at) — datetime
  • 변경일 (updated_at) — datetime

배송 (Delivery)

  • 배송_아이디 (delivery_id) — int — 기본 키 — NOT NULL
  • 주문정보_아이디 (order_id) — int — 외래 키 → 주문정보.주문정보_아이디 — NOT NULL
  • 주소_아이디 (address_id) — int — 외래 키 → 주소.주소_아이디 — NOT NULL
  • 운송장번호 (tracking_number) — string
  • 운송사 (courier_company) — string
  • 배송상태 (delivery_status) — enum
  • 배송예정일 (expected_delivery_date) — datetime
  • 배송일 (delivery_date) — datetime
  • 생성일 (created_at) — datetime
  • 변경일 (updated_at) — datetime

병원정보 (Hospital_info)

  • 병원정보_아이디 (hospital_info_id) — int — 기본 키 — NOT NULL
  • 동물_아이디 (pet_id) — int — 외래 키 → 동물.동물_아이디 — NOT NULL
  • 병원_이름 (hospital_name) — string
  • 주치의 (doctor_name) — string
  • 주치의_직책 (doctor_position) — enum
  • 생성일 (created_at) — datetime
  • 변경일 (updated_at) — datetime

사용자약관 (Untitled2)

  • 유저_아이디 (user_id) — int — 외래 키 → 유저.유저_아이디 — NOT NULL
  • 약관_아이디 (term_id) — int — 외래 키 → 약관.약관_아이디 — NOT NULL
  • 동의여부 (is_agreed)
  • 동의일시 (agreed_at)

상품 (Products)

  • 상품_아이디 (product_id) — int — 기본 키 — NOT NULL
  • 동물_아이디 (pet_id) — int — 외래 키 → 동물.동물_아이디 — NOT NULL
  • 상품명 (product_name) — string
  • 상품가격 (unit_price) — decimal
  • 상품재고 (product_quantity) — int
  • 유통기한 (expiration_date) — string
  • 상품타입 (product_type) — enum
  • 상품_이미지 (product_image) — string
  • 생성일 (created_at) — datetime
  • 변경일 (updated_at) — datetime

신청상품 (Request_products)

  • 신청상품_아이디 (request_product_id) — int — 기본 키 — NOT NULL
  • 동물_아이디 (pet_id) — int — 외래 키 → 동물.동물_아이디 — NOT NULL
  • 승인상태 (request_status) — boolean
  • 신청상품_이미지 (request_product_image) — string
  • 신청_개수 (request_count) — int
  • 생성일 (created_at) — datetime

알림 (Untitled5)

  • 알림_아이디 (notice_id) — int — 기본 키 — NOT NULL
  • 유저_아이디 (user_id) — int — 외래 키 → 유저.유저_아이디 — NOT NULL
  • 내용 (content) — text
  • 생성일 (created_at) — datetime

약관 (Untitled)

  • 약관_아이디 (term_id) — int — 기본 키 — NOT NULL
  • Field3

약관버전 (Untitled4)

  • Key — 기본 키 — NOT NULL
  • 약관_아이디 (term_id) — int — 외래 키 → 약관.약관_아이디 — NOT NULL

유저 (Users)

  • 유저_아이디 (user_id) — int — 기본 키 — NOT NULL
  • 이메일 (email) — string
  • 패스워드 (password) — string
  • 이름 (name) — string
  • 전화번호 (phone) — string
  • 병원이름 (hospital_name) — string
  • 생성일 (created_at) — datetime
  • 변경일 (updated_at) — datetime

일정 (Schedules)

  • 일정_아이디 (schedule_id) — int — 기본 키 — NOT NULL
  • 일정 (datetime) — datetime
  • 장소 (location_id) — string

장바구니 (Carts)

  • 장바구니_아이디 (Key) — int — 기본 키 — NOT NULL
  • 유저_아이디 (user_id) — int — 외래 키 → 유저.유저_아이디 — NOT NULL
  • 제품_아이디 (product_id) — int — 외래 키 → 상품.상품_아이디 — NOT NULL
  • 수량 (quantity) — int
  • 생성일 (created_at) — datetime

주문상품상세 (Order_items)

  • 주문상품상세_아이디 (order_item_id) — int — 기본 키 — NOT NULL
  • 주문정보_아이디 (order_id) — int — 외래 키 → 주문정보.주문정보_아이디 — NOT NULL
  • 상품_아이디 (product_id) — int — 외래 키 → 상품.상품_아이디 — NOT NULL
  • 상품_이름 (product_name) — string
  • 단가 (unit_price) — decimal
  • 수량 (quantity) — int
  • 총가격 (total_price) — decimal
  • 상품상태 (item_status) — enum
  • 생성일 (created_at) — datetime
  • 변경일 (updated_at) — datetime

주문정보 (Orders)

  • 주문정보_아이디 (order_id) — int — 기본 키 — NOT NULL
  • 유저_아이디 (user_id) — int — 외래 키 → 유저.유저_아이디 — NOT NULL
  • 주문번호 (order_number) — string
  • 주문금액 (order_amount) — decimal
  • 배송비 (shipping_fee) — decimal
  • 최종결제금액 (final_amount) — decimal
  • 주문상태 (order_status) — enum
  • 결제상태 (payment_status) — enum
  • 배송요청사항 (delivery_request) — text
  • 주문일 (order_date) — datetime
  • 변경일 (updated_at) — datetime

주소 (Addresses)

  • 주소_아이디 (address_id) — int — 기본 키 — NOT NULL
  • 유저_아이디 (user_id) — int — 외래 키 → 유저.유저_아이디 — NOT NULL
  • 주소 (address) — string
  • 수취인 (recipient_name) — string
  • 수취인_전화번호 (recipient_phone) — string
  • 생성일 (created_at) — datetime
  • 변경일 (updated_at) — datetime

진료예약 (Appointments)

  • 진료예약_아이디 (appointment_id) — int — 기본 키 — NOT NULL
  • 상품_아이디 (product_id) — int — 외래 키 → 상품.상품_아이디 — NOT NULL
  • 동물_아이디 (pet_id) — int — 외래 키 → 상품.동물_아이디 — NOT NULL
  • 처방기간 (prescription_duration) — int
  • 일정 (appointment_datetime) — datetime

회원약관이력 (Untitled3)

  • Key — 기본 키 — NOT NULL
  • 유저_아이디 (user_id) — int — 외래 키 → 사용자약관.유저_아이디 — NOT NULL
  • 약관_아이디 (term_id) — int — 외래 키 → 사용자약관.약관_아이디 — NOT NULL