herethon

Tables (7)

Direction (Untitled5)

  • direction_id (Key) — Primary key — NOT NULL
  • user_id (사용자 아이디2) — NOT NULL — Foreign key → User.id — NOT NULL
  • hospital_id (병원 아이디)
  • origin_lat (출발 위도)
  • origin_lng (출발 경도)
  • hos_lat (병원 위도)
  • hos_lng (병원 경도)
  • estimated_time (소요 시간)
  • estimated_cost (예상 요금)
  • distance (거리)
  • requested_at (요청 시간)

Hospital (병원)

  • hospital_id (병원 아이디) — NOT NULL — Primary key — NOT NULL
  • name (병원 이름)
  • address (주소)
  • hos_lat (위도)
  • hos_lng (경도)
  • phone (전화번호)
  • is_emergency (응급실여부)
  • business_hour (야간진료여부) — NOT NULL
  • image (병원 이미지)
  • specialties (Field) — NOT NULL

HospitalStatus (병원 현상황)

  • status_id (상황 아이디) — NOT NULL — Primary key — NOT NULL
  • hospital_id (병원 아이디2) — NOT NULL — Foreign key → Hospital.hospital_id — NOT NULL
  • hospital_id (병원 아이디) — NOT NULL
  • congestion (병원 혼잡도)
  • available_beds (병상 정보)
  • waiting_count (Field)

Specialty (Untitled7)

  • specialty_id (진료과 아이디) — NOT NULL — Primary key — NOT NULL
  • hospital_id (병원 아이디) — NOT NULL — Foreign key → Hospital.hospital_id — NOT NULL
  • specialty_name (진료과명) — NOT NULL

Symptom (증상)

  • symtom_id (증상 아이디) — NOT NULL — Primary key — NOT NULL
  • user_id (사용자 아이디) — NOT NULL — Foreign key → User.id — NOT NULL
  • description (증상명) — NOT NULL
  • created_at (생성일)

User (Untitled)

  • id (사용자 아이디) — NOT NULL — Primary key — NOT NULL
  • username (사용자 이름)
  • location_lat (위도)
  • location_lng (경도)
  • Field4 (위치 정보 동의)
  • phone (전화번호) — NOT NULL

VisitHistory (Untitled3)

  • user_id (사용자 아이디) — NOT NULL — Foreign key → User.id — NOT NULL
  • hospital_id (병원 아이디)
  • via_emergency (응급실 여부)
  • visited_at (방문 일시)