기창캡6erd(공유.ver)

테이블 (11)

chats (채팅 내용)

  • id (Key) — INT — 기본 키 — NOT NULL
  • chatting_room_id (chatting_room_Key) — INT — 외래 키 → chatting_rooms.id — NOT NULL
  • content (내용)
  • time (시간)

chatting_rooms (채팅)

  • id (Key) — INT — 기본 키 — NOT NULL
  • user_id (users_Key) — INT — 외래 키 → users.id — NOT NULL
  • pharmacyid (pharmacy_Key) — INT — 외래 키 → pharmacies.id — NOT NULL
  • is_started (대화시작여부) — NOT NULL

pharmacies (약국)

  • id (Key) — INT — 기본 키 — NOT NULL
  • title (이름)
  • content (설명)
  • location (위치)
  • image (썸네일)
  • serial_id (약국ID) — NOT NULL
  • password (비밀번호) — NOT NULL
  • start_time (운영시작시간)
  • end_time (운영종료시간)

pharmacist_infos (약사)

  • id (Key2) — 기본 키 — NOT NULL
  • pharmacyid (Key) — 외래 키 → pharmacies.id — NOT NULL
  • name (이름)
  • description (설명)
  • age (나이)

pharmacy_chats (약국이 가진 챗들)

  • pharmacy_id (Key) — INT — 외래 키 → pharmacies.id — NOT NULL
  • chat_id (Key2) — INT — 외래 키 → chats.id — NOT NULL

pharmacy_likes (찜한 약국)

  • id (Key2) — INT — 기본 키 — NOT NULL
  • user_id (Key) — INT — 외래 키 → users.id — NOT NULL
  • pharmacy_id (Key3) — INT — 외래 키 → pharmacies.id — NOT NULL

pharmacy_vitamins (약국이 보유한 약품)

  • id (Key2) — 기본 키 — NOT NULL
  • pharmacyid (Key) — INT — 외래 키 → pharmacies.id — NOT NULL
  • vitamin_id (Key3) — INT — 외래 키 → vitamins.id — NOT NULL

user_chats (유저가 가진 챗들)

  • user_id (Key) — INT — 외래 키 → users.id — NOT NULL
  • chat_id (Key2) — INT — 외래 키 → chats.id — NOT NULL

users (유저)

  • id (Key) — INT — 기본 키 — NOT NULL
  • name (이름)
  • nickname (닉네임)
  • location (위치)
  • serial_id (유저ID) — NOT NULL
  • password (비밀번호) — NOT NULL

vitamin_likes (찜한 건강기능식품)

  • id (Key2) — 기본 키 — NOT NULL
  • userid (Key) — 외래 키 → users.id — NOT NULL
  • vitamin_id (Key3) — INT — 외래 키 → vitamins.id — NOT NULL

vitamins (건강기능식품)

  • id (Key) — INT — 기본 키 — NOT NULL
  • name (이름)
  • company (제조사)
  • ingredient (성분)
  • performance (성능)
  • warningnotice (유의사항)
  • takingtimes (복용횟수)