From wiki.ginstr.com
Jump to: navigation, search
(bus driver)
Line 25: Line 25:
 
== controller ==
 
== controller ==
  
Bus Controller Checks = CR <br>
+
Bus Controller Checks (ticketControllerBusChecks) = CR <br>
Bus Drivers = R <br>
+
Bus Drivers (busDrivers) = R <br>
Buses = R <br>
+
Buses (buses) = R <br>
Bus Stops = R <br>
+
Bus Stops (busStops) = R <br>
Bus Stops Per Route = R <br>
+
Bus Stops Per Route (busStopsPerRoute) = R <br>
MOBICard statuses = R <br>
+
MOBICard statuses (MOBICardStatuses) = R <br>
Operators = R <br>
+
Operators (operators) = R <br>
Passengers = RU <br>
+
Passengers (passengers) = RU <br>
Pax Controller Checks = CRU <br>
+
Pax Controller Checks (ticketControllerPassengerChecks) = CRU <br>
Suspensions = R <br>
+
Suspensions (suspensionTypes) = R <br>
Ticket Controllers = R
+
Ticket Controllers (controllers) = R
  
  
 
== retailer ==
 
== retailer ==
  
Actual Top-Ups = C <br>
+
Actual Top-Ups (topUps) = C <br>
Fare basis = R <br>
+
Fare basis (fareBasis) = R <br>
GSM Networks = R <br>
+
GSM Networks (GSMNetworks) = R <br>
MOBICard statuses = R <br>
+
MOBICard statuses (MOBICardStatuses) = R <br>
Passengers = CRU <br>
+
Passengers (passengers) = CRU <br>
Ticket Retailers = R
+
Ticket Retailers (retailers) = R
  
  

Revision as of 15:00, 15 August 2016


Public Bus Transportation ginstr app

Page describes how to setup initial environment to use "publicBusTransportation" ginstr app.

ROLES

following roles should be created on SSO main account and assigned to subaccounts

bus driver

Bus Drivers (busDrivers) = RU
Bus Drivers Logs (busDriverWorkLogs) = CRU
Buses (buses) = RU
Bus Stops (busStops) = R
Bus Stops Per Route (busStopsPerRoute) = R
MOBICard statuses (MOBICardStatuses) = R
Operators (operators) = R
Passengers (passengers) = R
Routes (routes) = R
Special Incidents Passenger (specialIncidentsPassengers) = C
Trips (trips) = CRU

controller

Bus Controller Checks (ticketControllerBusChecks) = CR
Bus Drivers (busDrivers) = R
Buses (buses) = R
Bus Stops (busStops) = R
Bus Stops Per Route (busStopsPerRoute) = R
MOBICard statuses (MOBICardStatuses) = R
Operators (operators) = R
Passengers (passengers) = RU
Pax Controller Checks (ticketControllerPassengerChecks) = CRU
Suspensions (suspensionTypes) = R
Ticket Controllers (controllers) = R


retailer

Actual Top-Ups (topUps) = C
Fare basis (fareBasis) = R
GSM Networks (GSMNetworks) = R
MOBICard statuses (MOBICardStatuses) = R
Passengers (passengers) = CRU
Ticket Retailers (retailers) = R


MOBI staff

all tables full CRUD


OBLIGATORY ENTRIES IN TABLES

This app should work only on "English" at time of writing this. Since we do not have "localized enums" it's necessary to rely on english "fixed value" data to determine some logical states which are required by BL (Business Logic).

Following tables require following data:

TABLE fareBasis (rows to add)

fareBasis_name fareBasis_comments
Regular any comment

TABLE MOBICardStatuses (rows to add)

MOBICardStatus_name MOBICardStatus_validity
Active true
Inactive false
Suspended false


TABLE busDrivers:
busDriver_ssoUsername - has to contain at least one driver entry which has column filled with email address of subaccount which has assigned role of "driver"

TABLE controllers:
controller_ssoUsername - has to contain at least one driver entry which has column filled with email address of subaccount which has assigned role of "controller"

TABLE retailers:
retailer_ssoUsername - has to contain at least one driver entry which has column filled with email address of subaccount which has assigned role of "retailer"