Skip to content

Latest commit

 

History

History
93 lines (83 loc) · 1.92 KB

firestoreFields.md

File metadata and controls

93 lines (83 loc) · 1.92 KB

firestore fields description

tagData: collection

  • There may be different tagData collection with different postfix. This is because we want to store the data in different time period for class service learning.
erDiagram
    tagData ||--|{ status : subcollection
    tagData ||--|| StreetViewInfo : Map
    tagData ||--|| Category : Map

    tagData {
        String locationName
        Category category
        Integer floor
        GeoPoint coordinates
        String geohash
        Timestamp createTime
        Timestamp lastUpdateTIme
        String createUserId
        Boolean archived
        StreetViewInfo streetViewInfo
        Integer viewCount
    }

    StreetViewInfo {
        Float cameraLatitude
        Float cameraLongitude
        String panoID
        Float povHeading
        Float povPitch
    }

    Category {
        String missionName
        String subTypeName
        String targetName
    }

    status {
        Timestamp createTime
        String createUserId
        String description
        Integer numberOfUpVote
        String statusName
    }

fixedTag: collection

erDiagram
    fixedTag ||--|{ status : subcollection
    fixedTag {
        String locationName
        GeoPoint coordinates
        Integer viewCount
    }

    fixedTagSubLocation {
        String type
        String fixedTagId
        String name
        String floor
    }

    status {
        Timestamp createTime
        String createUserId
        String description
        Null numberOfUpVote
        String statusName
    }

userActivity: collection

erDiagram
    userActivity {
        String action
        Timestamp createTime
        String tagId
        String userId
    }

userStatus: collection

erDiagram
    userStatus {
        Boolean hasReadGuide
    }