Settings, stored in the database

From VIT company
Revision as of 13:22, 10 March 2015 by Sysop@vitcompany.com (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Settings stored in the database

Some application work modes are determined by the settings, which are stored in the database.


Their parameters are recorded in public.const_integer table. Descriptions and possible values are listed below.


Possible events:

  • AUTO_RENEW_REGULAR – parameter, defining the behavior of subscription rate if the vehicle is not at the parking lot while the subscription period is closing:
  • 1 – in this case the vehicle is not at the parking lot and its subscription was not checked to close and the renewal of subscription depends on the vehicle owner’s account balance state (matches to answer “Yes” in the scheme “Rates” tab”, presented in section “Adding, editing and removing rate planes”, “User guide”);
  • 0 – in this case the vehicle is not at the parking lot and its subscription should be closed despite the amount of money and mark as “closed subscription” (corresponds to answer “No” in the scheme “Rates” tab”, presented in section “Adding, editing and removing rate planes”, “User guide”).


  • PARK_BOSS_KIND - parameter, defining the behavior of subscription rate if the vehicle is at the parking lot, its subscription was not checked for closing, but its owner account doesn’t contain enough money to cover new subscription:
  • 0 – in this case subscription parking is closed, instead of it new parking will be opened, rating parking with guest rate (matches to answer “Evil” to question “Master type” in the scheme “Work of subscription rates” presented in “Rates” tab”, section “Adding, editing and removing rate planes”, “User guide”);
  • 1 – in this case subscription parking will be opened despite the lack of money on vehicle owner’s account (matches to answer “Good” to question “Master type” in the scheme “Work of subscription rates” presented in “Rates” tab”, section “Adding, editing and removing rate planes”, “User guide”).


  • PARK_FINISH_TS – parameter, defining the principle of setting subscription parking accounts closed:
  • 1 – conclusion is based on time of closing the parking accounts;
  • 0 – conclusion is based on present time.


  • TP_STEADY_PURGE – parameter, defining the system reaction on removing a rate:
  • 0 – in this case all parking accounts would be closed, instead of them new parking accounts are opened with default rate;
  • 1 – in this case no changes to already existing parking accounts would be made in spite of removing their rate.

Settings, stored in the database Настройки, хранимые в базе данных Ajustes Guardados en la Base de Datos