Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
gtfs-routing/src/main/resources/schema.cypher
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8 lines (7 sloc)
553 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create constraint cons_agency_id if not exists on (a:Agency) assert a.id is unique; | |
create constraint cons_route_id if not exists on (r:Route) assert r.id is unique; | |
create constraint cons_trip_id if not exists on (t:Trip) assert t.id is unique; | |
create constraint cons_stop_id if not exists on (s:Stop) assert s.id is unique; | |
create index idx_trip_service if not exists for (t:Trip) on (t.serviceId); | |
create index idx_stoptime_seq if not exists for (st:StopTime) on (st.stopSequence); | |
create index idx_stop_name if not exists for (s:Stop) on (s.name); | |