SR DB Interface DB구조 - AndersonChoi/SmartRiderWithLora GitHub Wiki

###SR DB Interface - DB구조

  1. Members Collection
  • id              회원의 id
  • sns             회원의 상태말
  • start_latitude         geofence의 시작점(왼쪽 위 - 위도)
  • start_longitude        geofence의 시작점(왼쪽 위 - 경도)
  • end_latitude         geofence의 끝점(오른쪽 밑 - 위도)
  • end_longitude        geofence의 끝점(오른쪽 밑 - 경도)
  • end_device_id        회원에 엮인 end_device의 id
  • tracking_count        end_device의 tracking을 위한 count
  • tracking_flag         현재 tracking여부
  • token            firebase notification을 위한 token
  1. End_devices Collection
  • end_device_id         end_device에 부여된 id
  • latitude            gps 센서값(위도)
  • longitude           gps 센서값(경도)
  • accelaration          가속도 센서값
  • battery            현재 배터리의 잔여값
  • tracking_count          현재 end_device의 tracking_count
  • time_stamp          timestamp