jphacks / ng_2407

MIT License
2 stars 0 forks source link

[feat][backend]投票で改札内/改札外/ないの投票のデータを追加する #9

Closed nunupy345345 closed 7 hours ago

nunupy345345 commented 10 hours ago

lines/{lineId} {
    lineId: string,    // 自動生成されるドキュメントID
    name: string       // 路線名
}

stations/{stationId} {
    stationId: string,  // 自動生成されるドキュメントID
    name: string        // 駅名
}

stationLines/{stationLineId} {
        stationLineId : string
    stationRef: DocumentReference,  // stations への参照
    lineRef: DocumentReference,     // lines への参照
    number : int, // numberを入れる
}

facilities/{facilityId} {
    facilityId: string,     // 自動生成されるドキュメントID
    name: string,           // 施設名
    state: int,  // 改札内かどうか,あるかないか
    stationRef: DocumentReference  // stations コレクションへの参照
    vote_inside_gate : int; // Todo :add
    vote_outside_gate : int, // Todo :add
    vote_no : int, // Todo : add

}