Version: E2.5.3-B05
================================================================================================
This document contains database schema information for the tables defined within the OpenGTS
system.  Optional tables (if any) will be indicated by the term "[optional]" next to the table
name.

Additional information may be obtained by examining the source module for the specified class.

The schema listing below should match the installed configuration, however, there may still be
minor differences depending on the specific version installed, or changes that have been made
to the configuration.  The current schema configuration can be generated from the actual
database configuration by executing the following command:
(executed from within the OpenGTS directory)

   bin/dbAdmin.pl -schema

Or, on Windows:

   bin\dbConfig.bat -schema


================================================================================================
Table: Account [required]
Class: org.opengts.db.tables.Account

This table defines the top level Account specific information.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 accountType            Account Type                   SMALLINT UNSIGNED                    
   3 notifyEmail            Notification EMail Address     VARCHAR(128)                         
   4 allowNotify            Allow Notification             TINYINT                              
   5 speedUnits             Speed Units                    TINYINT UNSIGNED                     
   6 distanceUnits          Distance Units                 TINYINT UNSIGNED                     
   7 volumeUnits            Volume Units                   TINYINT UNSIGNED                     
   8 pressureUnits          Pressure Units                 TINYINT UNSIGNED                     
   9 economyUnits           Economy Units                  TINYINT UNSIGNED                     
  10 temperatureUnits       Temperature Units              TINYINT UNSIGNED                     
  11 latLonFormat           Latitude/Longitude Format      TINYINT UNSIGNED                     
  12 geocoderMode           Geocoder Mode                  TINYINT UNSIGNED                     
  13 privateLabelName       PrivateLabel Name              VARCHAR(32)                          
  14 isBorderCrossing       Is BorderCrossing Enabled      TINYINT                              
  15 retainedEventAge       Retained Event Age (sec)       INT UNSIGNED                         
  16 maximumDevices         Maximum number of devices      INT                                  
  17 totalPingCount         Total 'Ping' Count             SMALLINT UNSIGNED                    
  18 maxPingCount           Maximum 'Ping' Count           SMALLINT UNSIGNED                    
  19 autoAddDevices         AutoAdd Devices                TINYINT                              
  20 dcsPropertiesID        DCS Properties ID              VARCHAR(32)                          
  21 smsEnabled             SMS Enabled                    TINYINT                              
  22 smsProperties          SMS Properties                 VARCHAR(200)                         
  23 emailProperties        EMail Properties               VARCHAR(250)                         
  24 expirationTime         Expiration Time                INT UNSIGNED                         
  25 defaultUser            Default User ID                VARCHAR(32)                          
  26 password               Password                       VARCHAR(32)                          
  27 contactName            Contact Name                   VARCHAR(64) [utf8]                   
  28 contactPhone           Contact Phone                  VARCHAR(32)                          
  29 contactEmail           Contact EMail Address          VARCHAR(128)                 email   
  30 timeZone               Time Zone                      VARCHAR(32)                          
  31 passwdChangeTime       Last Password Change Time      INT UNSIGNED                         
  32 passwdQueryTime        Last Password Query Time       INT UNSIGNED                         
  33 lastLoginTime          Last Login Time                INT UNSIGNED                         
  34 isActive               Is Active                      TINYINT                              
  35 displayName            Display Name                   VARCHAR(40) [utf8]                   
  36 description            Description                    VARCHAR(128) [utf8]                  
  37 notes                  Notes                          TEXT [utf8]                          
  38 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  39 creationTime           Creation Time                  INT UNSIGNED                         
  40 mapLegendDevice        Device Map Legend              TEXT [utf8]                          
  41 mapLegendGroup         DeviceGroup Map Legend         TEXT [utf8]                          
  42 isAccountManager       Is Account Manager             TINYINT                              
  43 managerID              Manager ID                     VARCHAR(32)                  manager 
  44 requestPassCode        Request Passcode               VARCHAR(32)                          
  45 requestIPAddress       Valid Request IP Addresses     VARCHAR(128)                         
  46 dataPushURL            Data Push URL (destination)    VARCHAR(240)                         
  47 lastDataRequestTime    Last Data Request Time         INT UNSIGNED                         
  48 lastDataPushTime       Last Data Push Time (millis)   INT UNSIGNED                         


================================================================================================
Table: AccountString [required]
Class: org.opengts.db.tables.AccountString

This table defines Account specific customized String key/values.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 stringID               String ID                      VARCHAR(32)                  PRIMARY 
   3 singularTitle          Singular Title                 VARCHAR(64)                          
   4 pluralTitle            Plural Title                   VARCHAR(64)                          
   5 description            Description                    VARCHAR(128) [utf8]                  
   6 lastUpdateTime         Last Update Time               INT UNSIGNED                         
   7 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: User [required]
Class: org.opengts.db.tables.User

This table defines Account specific Users.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 userID                 User ID                        VARCHAR(32)                  PRIMARY 
   3 userType               User Type                      SMALLINT UNSIGNED                    
   4 roleID                 User Role                      VARCHAR(32)                  role    
   5 password               Password                       VARCHAR(32)                          
   6 gender                 Gender                         TINYINT UNSIGNED                     
   7 notifyEmail            Notification EMail Address     VARCHAR(128)                         
   8 contactName            Contact Name                   VARCHAR(64) [utf8]                   
   9 contactPhone           Contact Phone                  VARCHAR(32)                          
  10 contactEmail           Contact EMail Address          VARCHAR(64)                  email   
  11 timeZone               Time Zone                      VARCHAR(32)                          
  12 firstLoginPageID       First Login Page ID            VARCHAR(24)                          
  13 preferredDeviceID      Preferred Device ID            VARCHAR(32)                          
  14 maxAccessLevel         Maximum Access Level           SMALLINT UNSIGNED                    
  15 passwdChangeTime       Last Password Change Time      INT UNSIGNED                         
  16 passwdQueryTime        Last Password Query Time       INT UNSIGNED                         
  17 lastLoginTime          Last Login Time                INT UNSIGNED                         
  18 isActive               Is Active                      TINYINT                              
  19 displayName            Display Name                   VARCHAR(40) [utf8]                   
  20 description            Description                    VARCHAR(128) [utf8]                  
  21 notes                  Notes                          TEXT [utf8]                          
  22 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  23 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: UserAcl [required]
Class: org.opengts.db.tables.UserAcl

This table defines User specific Access Control permissions.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 userID                 User ID                        VARCHAR(32)                  PRIMARY 
   3 aclID                  ACL ID                         VARCHAR(64)                  PRIMARY 
   4 accessLevel            Access Level                   SMALLINT UNSIGNED                    
   5 description            Description                    VARCHAR(128) [utf8]                  
   6 lastUpdateTime         Last Update Time               INT UNSIGNED                         
   7 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: GroupList [required]
Class: org.opengts.db.tables.GroupList

This table defines the authorized Groups that can be accessed by a given User.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 userID                 User ID                        VARCHAR(32)                  PRIMARY 
   3 groupID                Device Group ID                VARCHAR(32)                  PRIMARY 
   4 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: Device [required]
Class: org.opengts.db.tables.Device

This table defines Device/Vehicle specific information for an Account. A 'Device' record
typically represents something that is being 'tracked', such as a Vehicle.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 groupID                Group ID                       VARCHAR(32)                          
   4 equipmentType          Equipment Type                 VARCHAR(40)                          
   5 equipmentStatus        Equipment Status               INT                                  
   6 vehicleMake            Vehicle Make                   VARCHAR(40)                          
   7 vehicleModel           Vehicle Model                  VARCHAR(40)                          
   8 vehicleID              VIN                            VARCHAR(24)                          
   9 licensePlate           License Plate                  VARCHAR(24)                          
  10 driverID               Driver ID                      VARCHAR(32)                          
  11 driverStatus           Driver Status                  INT UNSIGNED                         
  12 fuelCapacity           Fuel Capacity                  DOUBLE                               
  13 fuelEconomy            Approx. Fuel Economy           DOUBLE                               
  14 speedLimitKPH          Max Speed km/h                 DOUBLE                               
  15 planDistanceKM         Planned Trip Distance          DOUBLE                               
  16 installTime            Install Time                   INT UNSIGNED                         
  17 resetTime              Reset Time                     INT UNSIGNED                         
  18 expirationTime         Expiration Time                INT UNSIGNED                         
  19 uniqueID               Unique ID                      VARCHAR(40)                  altIndex
  20 deviceCode             Server ID                      VARCHAR(24)                          
  21 deviceType             Device Type                    VARCHAR(24)                          
  22 pushpinID              Pushpin ID                     VARCHAR(32)                          
  23 displayColor           Display Color                  VARCHAR(16)                          
  24 serialNumber           Serial Number                  VARCHAR(24)                          
  25 simPhoneNumber         SIM Phone Number               VARCHAR(24)                          
  26 simID                  SIM ID                         VARCHAR(24)                          
  27 smsEmail               SMS EMail Address              VARCHAR(64)                          
  28 imeiNumber             IMEI Number                    VARCHAR(24)                          
  29 dataKey                Data Key                       TEXT                                 
  30 ignitionIndex          Ignition I/O Index             SMALLINT                             
  31 codeVersion            Code Version                   VARCHAR(32)                          
  32 featureSet             Feature Set                    VARCHAR(64)                          
  33 ipAddressValid         Valid IP Addresses             VARCHAR(128)                         
  34 lastTotalConnectTime   Last Total Connect Time        INT UNSIGNED                         
  35 lastDuplexConnectTime  Last Duplex Connect Time       INT UNSIGNED                         
  36 pendingPingCommand     Pending Ping Command           TEXT                                 
  37 lastPingTime           Last 'Ping' Time               INT UNSIGNED                         
  38 totalPingCount         Total 'Ping' Count             SMALLINT UNSIGNED                    
  39 maxPingCount           Maximum 'Ping' Count           SMALLINT UNSIGNED                    
  40 commandStateMask       Command State Mask             INT UNSIGNED                         
  41 expectAck              Expecting an ACK               TINYINT                              
  42 expectAckCode          Expected ACK Status Code       INT UNSIGNED                         
  43 lastAckCommand         Last Command Expecting ACK     TEXT                                 
  44 lastAckTime            Last Received 'ACK' Time       INT UNSIGNED                         
  45 dcsPropertiesID        DCS Properties ID              VARCHAR(32)                          
  46 dcsConfigMask          DCS Configuration Mask         INT UNSIGNED                         
  47 dcsConfigString        DCS Configuration String       VARCHAR(80)                          
  48 dcsCommandHost         DCS Command Host               VARCHAR(32)                          
  49 supportsDMTP           Supports DMTP                  TINYINT                              
  50 supportedEncodings     Supported Encodings            TINYINT UNSIGNED                     
  51 unitLimitInterval      Accounting Time Interval Min   SMALLINT UNSIGNED                    
  52 maxAllowedEvents       Max Events per Interval        SMALLINT UNSIGNED                    
  53 totalProfileMask       Total Profile Mask             BLOB                                 
  54 totalMaxConn           Max Total Conn per Interval    SMALLINT UNSIGNED                    
  55 totalMaxConnPerMin     Max Total Conn per Minute      SMALLINT UNSIGNED                    
  56 duplexProfileMask      Duplex Profile Mask            BLOB                                 
  57 duplexMaxConn          Max Duplex Conn per Interval   SMALLINT UNSIGNED                    
  58 duplexMaxConnPerMin    Max Duplex Conn per Minute     SMALLINT UNSIGNED                    
  59 lastTcpSessionID       Last TCP Session ID            VARCHAR(32)                          
  60 ipAddressCurrent       Current IP Address             VARCHAR(32)                          
  61 remotePortCurrent      Current Remote Port            SMALLINT UNSIGNED                    
  62 listenPortCurrent      Current Listen Port            SMALLINT UNSIGNED                    
  63 lastInputState         Last Input State               INT UNSIGNED                         
  64 lastOutputState        Last Output State              INT UNSIGNED                         
  65 statusCodeState        StatusCode On/Off State        INT UNSIGNED                         
  66 lastBatteryLevel       Last Battery Level             DOUBLE                               
  67 lastFuelLevel          Last Fuel Level                DOUBLE                               
  68 lastFuelTotal          Last Fuel Total Liters         DOUBLE                               
  69 lastOilLevel           Last Oil Level                 DOUBLE                               
  70 lastValidLatitude      Last Valid Latitude            DOUBLE                               
  71 lastValidLongitude     Last Valid Longitude           DOUBLE                               
  72 lastValidHeading       Last Valid Heading             DOUBLE                               
  73 lastGPSTimestamp       Last Valid GPS Timestamp       INT UNSIGNED                         
  74 lastEventTimestamp     Last Event Timestamp           INT UNSIGNED                         
  75 lastCellServingInfo    Last Serving Cell Info         VARCHAR(100)                         
  76 lastDistanceKM         Last Distance km               DOUBLE                               
  77 lastOdometerKM         Last Odometer km               DOUBLE                               
  78 odometerOffsetKM       Odometer Offset km             DOUBLE                               
  79 lastEngineOnTime       Last Engine On Time            INT UNSIGNED                         
  80 lastEngineOffTime      Last Engine Off Time           INT UNSIGNED                         
  81 lastEngineHours        Last Engine Hours              DOUBLE                               
  82 engineHoursOffset      Engine Hours Offset            DOUBLE                               
  83 lastIgnitionOnTime     Last Ignition On Time          INT UNSIGNED                         
  84 lastIgnitionOffTime    Last Ignition Off Time         INT UNSIGNED                         
  85 lastIgnitionHours      Last Ignition Hours            DOUBLE                               
  86 lastStopTime           Last Stop  Time                INT UNSIGNED                         
  87 lastStartTime          Last Start Time                INT UNSIGNED                         
  88 lastMalfunctionLamp    Last MIL                       TINYINT                              
  89 lastFaultCode          Last Fault Code                VARCHAR(96)                          
  90 isActive               Is Active                      TINYINT                              
  91 displayName            Display Name                   VARCHAR(40) [utf8]                   
  92 description            Description                    VARCHAR(128) [utf8]                  
  93 notes                  Notes                          TEXT [utf8]                          
  94 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  95 creationTime           Creation Time                  INT UNSIGNED                         
  96 allowNotify            Allow Notification             TINYINT                              
  97 lastNotifyTime         Last Notify Time               INT UNSIGNED                         
  98 lastNotifyCode         Last Notify Status Code        INT UNSIGNED                         
  99 lastNotifyRule         Last Notify Rule ID            VARCHAR(32)                          
 100 notifyEmail            Notification EMail Address     VARCHAR(128)                         
 101 notifySelector         Notification Selector          TEXT                                 
 102 notifyAction           Notification Action            INT UNSIGNED                         
 103 notifyDescription      Notification Description       VARCHAR(64) [utf8]                   
 104 notifySubject          Notification Subject           TEXT [utf8]                          
 105 notifyText             Notification Message           TEXT [utf8]                          
 106 notifyUseWrapper       Notification Use Wrapper       TINYINT                              
 107 notifyPriority         Notification Priority          SMALLINT UNSIGNED                    
 108 parkedLatitude         Parked Latitude                DOUBLE                               
 109 parkedLongitude        Parked Longitude               DOUBLE                               
 110 parkedRadius           Parked Radius                  DOUBLE                               
 111 assignedUserID         Assigned User                  VARCHAR(32)                          
 112 thermalProfile         Temperature Profile            VARCHAR(200)                         
 113 hoursOfOperation       Hours Of Operation             VARCHAR(200)                         
 114 lastEventsPerSecond    Last Event per Second          DOUBLE                               
 115 lastEventsPerSecondMS  Last Event/Second time MS      BIGINT                               
 116 maintIntervalKM0       #0 Maint Distance              DOUBLE                               
 117 maintOdometerKM0       #0 Maint Last Odom             DOUBLE                               
 118 maintIntervalKM1       #1 Maint Distance              DOUBLE                               
 119 maintOdometerKM1       #1 Maint Last Odom             DOUBLE                               
 120 maintIntervalHR0       #0 Maint ElapsedHours          DOUBLE                               
 121 maintEngHoursHR0       #0 Maint Last EngineHours      DOUBLE                               
 122 maintNotes             Maint Notes                    TEXT [utf8]                          
 123 reminderMessage        Reminder Message               TEXT [utf8]                          
 124 reminderInterval       Reminder Interval              VARCHAR(64)                          
 125 reminderTime           Last Reminder Time             INT UNSIGNED                         
 126 lastServiceTime        Last Service Time              INT UNSIGNED                         
 127 nextServiceTime        Next Service Time              INT UNSIGNED                         
 128 lastDataPushTime       Last Data Push Time (sec)      INT UNSIGNED                         
 129 lastEventCreateMillis  Last Event Create Time (MS)    BIGINT                               


================================================================================================
Table: Transport [required]
Class: org.opengts.db.tables.Transport

This table defines the data transport specific information for an Asset/Device.  A 'Transport'
represents the datapath used to send data to a server.  In some cases a single 'Device' can
have more than one such datapath to the server, such as a device that incorporates both GPRS
and satellite communications.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 transportID            Transport ID                   VARCHAR(32)                  PRIMARY 
   3 assocAccountID         Associated Account ID          VARCHAR(32)                  device  
   4 assocDeviceID          Associated Device ID           VARCHAR(32)                  device  
   5 uniqueID               Unique ID                      VARCHAR(40)                  altIndex
   6 deviceCode             Device Code                    VARCHAR(24)                          
   7 deviceType             Device Type                    VARCHAR(24)                          
   8 serialNumber           Serial Number                  VARCHAR(24)                          
   9 simPhoneNumber         SIM Phone Number               VARCHAR(24)                          
  10 smsEmail               SMS EMail Address              VARCHAR(64)                          
  11 imeiNumber             IMEI Number                    VARCHAR(24)                          
  12 lastInputState         Last Input State               INT UNSIGNED                         
  13 lastOutputState        Last Output State              INT UNSIGNED                         
  14 ignitionIndex          Ignition I/O Index             SMALLINT UNSIGNED                    
  15 codeVersion            Code Version                   VARCHAR(32)                          
  16 featureSet             Feature Set                    VARCHAR(64)                          
  17 ipAddressValid         Valid IP Addresses             VARCHAR(128)                         
  18 ipAddressCurrent       Current IP Address             VARCHAR(32)                          
  19 remotePortCurrent      Current Remote Port            SMALLINT UNSIGNED                    
  20 listenPortCurrent      Current Listen Port            SMALLINT UNSIGNED                    
  21 pendingPingCommand     Pending Ping Command           TEXT                                 
  22 lastPingTime           Last 'Ping' Time               INT UNSIGNED                         
  23 totalPingCount         Total 'Ping' Count             SMALLINT UNSIGNED                    
  24 maxPingCount           Maximum 'Ping' Count           SMALLINT UNSIGNED                    
  25 expectAck              Expecting an ACK               TINYINT                              
  26 lastAckCommand         Last Command Expecting an ACK  TEXT                                 
  27 lastAckTime            Last Received 'ACK' Time       INT UNSIGNED                         
  28 supportsDMTP           Supports DMTP                  TINYINT                              
  29 supportedEncodings     Supported Encodings            TINYINT UNSIGNED                     
  30 unitLimitInterval      Accounting Time Interval Min   SMALLINT UNSIGNED                    
  31 maxAllowedEvents       Max Events per Interval        SMALLINT UNSIGNED                    
  32 totalProfileMask       Total Profile Mask             BLOB                                 
  33 totalMaxConn           Max Total Conn per Interval    SMALLINT UNSIGNED                    
  34 totalMaxConnPerMin     Max Total Conn per Minute      SMALLINT UNSIGNED                    
  35 duplexProfileMask      Duplex Profile Mask            BLOB                                 
  36 duplexMaxConn          Max Duplex Conn per Interval   SMALLINT UNSIGNED                    
  37 duplexMaxConnPerMin    Max Duplex Conn per Minute     SMALLINT UNSIGNED                    
  38 lastTotalConnectTime   Last Total Connect Time        INT UNSIGNED                         
  39 lastDuplexConnectTime  Last Duplex Connect Time       INT UNSIGNED                         
  40 displayName            Display Name                   VARCHAR(40) [utf8]                   
  41 description            Description                    VARCHAR(128) [utf8]                  
  42 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  43 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: UniqueXID [required]
Class: org.opengts.db.tables.UniqueXID

This table defines system-wide mapping of Transport Unique-IDs to a specific Account/Transport.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 uniqueID               Unique ID                      VARCHAR(40)                  PRIMARY 
   2 accountID              Account ID                     VARCHAR(32)                          
   3 transportID            Transport ID                   VARCHAR(32)                          


================================================================================================
Table: DeviceGroup [required]
Class: org.opengts.db.tables.DeviceGroup

This table defines Account specific Device Groups.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 groupID                Device Group ID                VARCHAR(32)                  PRIMARY 
   3 displayName            Display Name                   VARCHAR(40) [utf8]                   
   4 description            Description                    VARCHAR(128) [utf8]                  
   5 notes                  Notes                          TEXT [utf8]                          
   6 lastUpdateTime         Last Update Time               INT UNSIGNED                         
   7 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: DeviceList [required]
Class: org.opengts.db.tables.DeviceList

This table defines the membership of a given Device within a DeviceGroup. A Device may be
defined in more than one DeviceGroup.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 groupID                Device Group ID                VARCHAR(32)                  PRIMARY 
   3 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   4 lastUpdateTime         Last Update Time               INT UNSIGNED                         
   5 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: Driver [required]
Class: org.opengts.db.tables.Driver

This table defines Account specific Vehicle Drivers.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 driverID               Driver ID                      VARCHAR(32)                  PRIMARY 
   3 contactPhone           Contact Phone                  VARCHAR(32)                          
   4 contactEmail           Contact EMail                  VARCHAR(128)                         
   5 licenseType            License Type                   VARCHAR(24)                          
   6 licenseNumber          License Number                 VARCHAR(32)                          
   7 licenseExpire          License Expiration Day         INT UNSIGNED                         
   8 badgeID                Badge ID                       VARCHAR(32)                          
   9 address                Full Address                   VARCHAR(90) [utf8]                   
  10 birthdate              Driver Birthdate               INT UNSIGNED                         
  11 deviceID               Device/Asset ID                VARCHAR(32)                          
  12 driverStatus           Driver/Duty Status             INT UNSIGNED                         
  13 displayName            Display Name                   VARCHAR(40) [utf8]                   
  14 description            Description                    VARCHAR(128) [utf8]                  
  15 notes                  Notes                          TEXT [utf8]                          
  16 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  17 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: EventData [required]
Class: org.opengts.db.tables.EventData

This table contains events which have been generated by all client devices.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 timestamp              Timestamp                      INT UNSIGNED                 PRIMARY 
   4 statusCode             Status Code                    INT UNSIGNED                 PRIMARY 
   5 latitude               Latitude                       DOUBLE                               
   6 longitude              Longitude                      DOUBLE                               
   7 gpsAge                 GPS Fix Age                    INT UNSIGNED                         
   8 speedKPH               Speed                          DOUBLE                               
   9 heading                Heading                        DOUBLE                               
  10 altitude               Altitude                       DOUBLE                               
  11 transportID            Transport ID                   VARCHAR(32)                          
  12 inputMask              Input Mask                     INT UNSIGNED                         
  13 outputMask             Output Mask                    INT UNSIGNED                         
  14 seatbeltMask           Seatbelt Mask                  INT UNSIGNED                         
  15 address                Full Address                   VARCHAR(90) [utf8]                   
  16 dataSource             Data Source                    VARCHAR(32)                          
  17 rawData                Raw Data                       TEXT                                 
  18 distanceKM             Distance KM                    DOUBLE                               
  19 odometerKM             Odometer Offset KM             DOUBLE                               
  20 odometerOffsetKM       Odometer KM                    DOUBLE                               
  21 geozoneIndex           Geozone Index                  INT UNSIGNED                         
  22 geozoneID              Geozone ID                     VARCHAR(32)                          
  23 creationTime           Creation Time                  INT UNSIGNED                         
  24 streetAddress          Street Address                 VARCHAR(90) [utf8]                   
  25 city                   City                           VARCHAR(40) [utf8]                   
  26 stateProvince          State/Privince                 VARCHAR(40) [utf8]                   
  27 postalCode             Postal Code                    VARCHAR(16) [utf8]                   
  28 country                Country                        VARCHAR(40) [utf8]                   
  29 subdivision            Subdivision                    VARCHAR(32) [utf8]                   
  30 speedLimitKPH          Speed Limit                    DOUBLE                               
  31 isTollRoad             Toll Road                      TINYINT                              
  32 gpsFixType             GPS Fix Type                   SMALLINT UNSIGNED                    
  33 gpsFixStatus           GPS Fix Status                 INT UNSIGNED                         
  34 horzAccuracy           Horizontal Accuracy            DOUBLE                               
  35 vertAccuracy           Vertical Accuracy              DOUBLE                               
  36 HDOP                   HDOP                           DOUBLE                               
  37 satelliteCount         Number of Satellites           SMALLINT UNSIGNED                    
  38 batteryLevel           Battery Level %                DOUBLE                               
  39 batteryVolts           Battery Volts                  DOUBLE                               
  40 signalStrength         Signal Strength (RSSI)         DOUBLE                               
  41 priority               Priority                       SMALLINT UNSIGNED                    
  42 entityID               Entity ID                      VARCHAR(32) [utf8]                   
  43 entityType             Entity Type                    SMALLINT UNSIGNED                    
  44 driverID               Driver/User                    VARCHAR(32) [utf8]                   
  45 driverStatus           Driver Status                  INT UNSIGNED                         
  46 driverMessage          Driver Message                 VARCHAR(200) [utf8]                  
  47 sensorLow              Sensor Low                     INT UNSIGNED                         
  48 sensorHigh             Sensor High                    INT UNSIGNED                         
  49 costCenter             Cost Center                    INT UNSIGNED                         
  50 jobNumber              Job Number                     VARCHAR(32)                          
  51 rfidTag                RFID/BarCode Tag               VARCHAR(32)                          
  52 attachType             Attachment MIME Type           VARCHAR(64)                          
  53 attachData             Attachment Data                BLOB                                 
  54 fuelPressure           Fuel Pressure                  DOUBLE                               
  55 fuelUsage              Fuel Usage                     DOUBLE                               
  56 fuelTemp               Fuel Temp                      DOUBLE                               
  57 fuelLevel              Fuel Level                     DOUBLE                               
  58 fuelLevel2             Fuel Level 2                   DOUBLE                               
  59 fuelEconomy            Fuel Economy                   DOUBLE                               
  60 fuelTotal              Total Fuel Used                DOUBLE                               
  61 fuelRemain             Fuel Remaining                 DOUBLE                               
  62 fuelTrip               Trip Fuel Used                 DOUBLE                               
  63 fuelIdle               Idle Fuel Used                 DOUBLE                               
  64 fuelPTO                PTO Fuel Used                  DOUBLE                               
  65 fuelEngineOn           Fuel Since Engine On           DOUBLE                               
  66 engineRpm              Engine RPM                     INT UNSIGNED                         
  67 engineHours            Engine Hours                   DOUBLE                               
  68 engineOnHours          Engine 'On' Hours              DOUBLE                               
  69 engineLoad             Engine Load                    DOUBLE                               
  70 engineTorque           Engine Torque %                DOUBLE                               
  71 idleHours              Idle Hours                     DOUBLE                               
  72 workHours              Work Hours                     DOUBLE                               
  73 transOilTemp           Transmission Oil Temp          DOUBLE                               
  74 coolantLevel           Coolant Level                  DOUBLE                               
  75 coolantTemp            Coolant Temperature            DOUBLE                               
  76 intakeTemp             Intake Temperature             DOUBLE                               
  77 brakeGForce            Brake G Force                  DOUBLE                               
  78 acceleration           Acceleration                   DOUBLE                               
  79 accelerometerXYZ       Accelerometer XYZ              VARCHAR(32)                          
  80 brakePressure          Brake Pressure                 DOUBLE                               
  81 massAirFlowRate        Mass Air Flow Rate             DOUBLE                               
  82 oilPressure            Oil Pressure                   DOUBLE                               
  83 oilLevel               Oil Level                      DOUBLE                               
  84 oilTemp                Oil Temperature                DOUBLE                               
  85 airPressure            Air Supply Pressure            DOUBLE                               
  86 airFilterPressure      Air Filter Pressure            DOUBLE                               
  87 turboPressure          Turbo Pressure                 DOUBLE                               
  88 ptoEngaged             PTO Engaged                    TINYINT                              
  89 ptoHours               PTO Hours                      DOUBLE                               
  90 throttlePos            Throttle Position              DOUBLE                               
  91 brakePos               Brake Position                 DOUBLE                               
  92 vBatteryVolts          Vehicle Battery Volts          DOUBLE                               
  93 j1708Fault             Fault Code                     BIGINT UNSIGNED                      
  94 faultCode              Fault String                   VARCHAR(96)                          
  95 malfunctionLamp        Malfunction Lamp               TINYINT                              
  96 tirePressure           Tire Pressure                  VARCHAR(140)                         
  97 tireTemp               Tire Temperature               VARCHAR(140)                         
  98 tankLevel              Tank Level                     DOUBLE                               
  99 thermoAverage0         Temperature Average 0          DOUBLE                               
 100 thermoAverage1         Temperature Average 1          DOUBLE                               
 101 dayEngineStarts        # Engine Starts                SMALLINT UNSIGNED                    
 102 dayIdleHours           Day Idle Hours                 DOUBLE                               
 103 dayFuelIdle            Day Idle Fuel                  DOUBLE                               
 104 dayWorkHours           Day Work Hours                 DOUBLE                               
 105 dayFuelWork            Day Work Fuel                  DOUBLE                               
 106 dayFuelPTO             Day PTO Fuel                   DOUBLE                               
 107 dayDistanceKM          Day Distance KM                DOUBLE                               
 108 dayFuelTotal           Day Total Fuel                 DOUBLE                               


================================================================================================
Table: Geozone [required]
Class: org.opengts.db.tables.Geozone

This table defines Account specific geozones/geofences.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 geozoneID              Geozone ID                     VARCHAR(32)                  PRIMARY 
   3 sortID                 Sort ID                        INT UNSIGNED                 PRIMARY 
   4 minLatitude            Min Latitude                   DOUBLE                       bounds  
   5 maxLatitude            Max Latitude                   DOUBLE                       bounds  
   6 minLongitude           Min Longitude                  DOUBLE                       bounds  
   7 maxLongitude           Max Longitude                  DOUBLE                       bounds  
   8 zonePurposeID          Purpose ID                     VARCHAR(32)                          
   9 reverseGeocode         Reverse geocode                TINYINT                              
  10 arrivalZone            Arrival Zone                   TINYINT                              
  11 departureZone          Departure Zone                 TINYINT                              
  12 autoNotify             Auto Notify                    TINYINT                              
  13 zoomRegion             Zoom Region                    TINYINT                              
  14 shapeColor             Shape Color                    VARCHAR(12)                          
  15 zoneType               Zone Type                      TINYINT UNSIGNED                     
  16 radius                 Radius Meters                  INT UNSIGNED                         
  17 latitude1              Latitude 1                     DOUBLE                               
  18 longitude1             Longitude 1                    DOUBLE                               
  19 latitude2              Latitude 2                     DOUBLE                               
  20 longitude2             Longitude 2                    DOUBLE                               
  21 latitude3              Latitude 3                     DOUBLE                               
  22 longitude3             Longitude 3                    DOUBLE                               
  23 latitude4              Latitude 4                     DOUBLE                               
  24 longitude4             Longitude 4                    DOUBLE                               
  25 latitude5              Latitude 5                     DOUBLE                               
  26 longitude5             Longitude 5                    DOUBLE                               
  27 latitude6              Latitude 6                     DOUBLE                               
  28 longitude6             Longitude 6                    DOUBLE                               
  29 latitude7              Latitude 7                     DOUBLE                               
  30 longitude7             Longitude 7                    DOUBLE                               
  31 latitude8              Latitude 8                     DOUBLE                               
  32 longitude8             Longitude 8                    DOUBLE                               
  33 latitude9              Latitude 9                     DOUBLE                               
  34 longitude9             Longitude 9                    DOUBLE                               
  35 latitude10             Latitude 10                    DOUBLE                               
  36 longitude10            Longitude 10                   DOUBLE                               
  37 clientUpload           Client Upload                  TINYINT                              
  38 clientID               Client ID                      INT UNSIGNED                 altIndex
  39 groupID                DeviceGroup                    VARCHAR(32)                          
  40 streetAddress          Street Address                 VARCHAR(90) [utf8]                   
  41 city                   City                           VARCHAR(40) [utf8]                   
  42 stateProvince          State/Province                 VARCHAR(40) [utf8]                   
  43 postalCode             Postal Code                    VARCHAR(16) [utf8]                   
  44 country                Country                        VARCHAR(40) [utf8]                   
  45 subdivision            Subdivision                    VARCHAR(32) [utf8]                   
  46 displayName            Display Name                   VARCHAR(40) [utf8]                   
  47 description            Description                    VARCHAR(128) [utf8]                  
  48 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  49 creationTime           Creation Time                  INT UNSIGNED                         
  50 priority               Priority                       INT UNSIGNED                 priority
  51 speedLimitKPH          Speed Limit                    DOUBLE                               


================================================================================================
Table: Resource [required]
Class: org.opengts.db.tables.Resource

This table defines Account specific text resources.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 resourceID             Resource ID                    VARCHAR(80)                  PRIMARY 
   3 type                   Type                           VARCHAR(16)                          
   4 title                  Title                          VARCHAR(70) [utf8]                   
   5 properties             Properties                     TEXT                                 
   6 value                  Value                          BLOB                                 
   7 displayName            Display Name                   VARCHAR(40) [utf8]                   
   8 description            Description                    VARCHAR(128) [utf8]                  
   9 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  10 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: Role [required]
Class: org.opengts.db.tables.Role

This table defines Account specific Roles.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 roleID                 Role ID                        VARCHAR(32)                  PRIMARY 
   3 displayName            Display Name                   VARCHAR(40) [utf8]                   
   4 description            Description                    VARCHAR(128) [utf8]                  
   5 notes                  Notes                          TEXT [utf8]                          
   6 lastUpdateTime         Last Update Time               INT UNSIGNED                         
   7 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: RoleAcl [required]
Class: org.opengts.db.tables.RoleAcl

This table defines Role specific Access Control permissions.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 roleID                 Role ID                        VARCHAR(32)                  PRIMARY 
   3 aclID                  ACL ID                         VARCHAR(64)                  PRIMARY 
   4 accessLevel            Access Level                   SMALLINT UNSIGNED                    
   5 description            Description                    VARCHAR(128) [utf8]                  
   6 lastUpdateTime         Last Update Time               INT UNSIGNED                         
   7 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: StatusCode [required]
Class: org.opengts.db.tables.StatusCode

This table defines Device specific StatusCode descriptions.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 statusCode             Status Code                    INT UNSIGNED                 PRIMARY 
   4 statusName             Status Name                    VARCHAR(18)                          
   5 foregroundColor        Foreground Color               VARCHAR(10)                          
   6 backgroundColor        Background Color               VARCHAR(10)                          
   7 iconSelector           Icon Selector                  VARCHAR(128)                         
   8 iconName               Icon Name                      VARCHAR(24)                          
   9 description            Description                    VARCHAR(128) [utf8]                  
  10 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  11 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: SystemProps [required]
Class: org.opengts.db.tables.SystemProps

This table defines system-wide installation property key/values.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 propertyID             Property ID                    VARCHAR(32)                  PRIMARY 
   2 value                  Value                          TEXT [utf8]                          
   3 description            Description                    VARCHAR(128) [utf8]                  
   4 lastUpdateTime         Last Update Time               INT UNSIGNED                         
   5 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: Antx [optional]
Class: org.opengts.extra.tables.Antx

This table contains Antx Messenger information.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 timestamp              Timestamp                      INT UNSIGNED                 PRIMARY 
   4 fieldID                Field Number                   INT                          PRIMARY 
   5 channelID              Channel Number                 INT                          PRIMARY 
   6 type                   Type                           SMALLINT                             
   7 data0                  Data 0                         DOUBLE                               
   8 data1                  Data 1                         DOUBLE                               
   9 data2                  Data 2                         DOUBLE                               
  10 data3                  Data 3                         DOUBLE                               
  11 data4                  Data 4                         DOUBLE                               
  12 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: Entity [optional]
Class: org.opengts.extra.tables.Entity

This table contains Account specific 'Entity' (ie. trailer drop/hook, etc) information.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 entityID               Entity ID                      VARCHAR(32)                  PRIMARY 
   3 entityType             Entity Type                    INT UNSIGNED                 PRIMARY 
   4 timestamp              Timestamp                      INT UNSIGNED                         
   5 statusCode             Status Code                    INT UNSIGNED                         
   6 isAttached             Is Attached                    TINYINT                              
   7 deviceID               Attached_Device/Asset_ID       VARCHAR(32)                          
   8 deviceOdomKM           Asset Odometer KM              DOUBLE                               
   9 latitude               Latitude                       DOUBLE                               
  10 longitude              Longitude                      DOUBLE                               
  11 altitude               Altitude Meters                DOUBLE                               
  12 address                Address                        VARCHAR(90) [utf8]                   
  13 odometerKM             Odometer KM                    DOUBLE                               
  14 description            Description                    VARCHAR(128) [utf8]                  
  15 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  16 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: ReportJob [optional]
Class: org.opengts.extra.tables.ReportJob

This table contains Account specific 'ReportJob' (ie. periodic reports) information.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 reportJobID            Report Job ID                  VARCHAR(40)                  PRIMARY 
   3 reportName             Report Name                    VARCHAR(64)                          
   4 reportOption           Report Option                  VARCHAR(24)                          
   5 deviceID               Selected Device ID             VARCHAR(32)                          
   6 groupID                Selected Group ID              VARCHAR(32)                          
   7 reportTimeFrom         Report 'From' Time             VARCHAR(24)                          
   8 reportTimeTo           Report 'To' Time               VARCHAR(24)                          
   9 reportFormat           Report Format                  VARCHAR(16)                          
  10 recipients             Recipients                     VARCHAR(200)                         
  11 intervalTag            Cron Interval Tag              VARCHAR(16)                          
  12 lastReportTime         Last Report Time               INT UNSIGNED                         
  13 isActive               Is Active                      TINYINT                              
  14 description            Description                    VARCHAR(128) [utf8]                  
  15 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  16 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: SessionStats [optional]
Class: org.opengts.extra.tables.SessionStats

This table contains Device specific session connection statistics.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 timestamp              Timestamp                      INT UNSIGNED                 PRIMARY 
   4 ipAddress              IP Address                     VARCHAR(32)                          
   5 isDuplex               Is Duplex                      TINYINT                              
   6 bytesRead              Bytes Read                     INT UNSIGNED                         
   7 bytesWritten           Bytes Written                  INT UNSIGNED                         
   8 bytesOverhead          Bytes Overhead                 INT UNSIGNED                         
   9 bytesRounded           Bytes Rounded                  INT UNSIGNED                         
  10 eventsReceived         Events Received                INT UNSIGNED                         
  11 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: UnassignedDevices [optional]
Class: org.opengts.extra.tables.UnassignedDevices

This table contains Mobile IDs for which no Device record was found.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 serverID               Server ID                      VARCHAR(32)                  PRIMARY 
   2 mobileID               Mobile ID                      VARCHAR(32)                  PRIMARY 
   3 timestamp              Timestamp                      INT UNSIGNED                         
   4 ipAddress              IP Address                     VARCHAR(32)                          
   5 isDuplex               Is Duplex                      TINYINT                              
   6 latitude               Latitude                       DOUBLE                               
   7 longitude              Longitude                      DOUBLE                               
   8 data                   Data                           VARCHAR(255)                         
   9 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: PendingCommands [optional]
Class: org.opengts.extra.tables.PendingCommands

This table contains commands which are to be sent to the client device the next time it
'checks-in' with the server.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 queueTime              Queue Time                     INT UNSIGNED                 PRIMARY 
   4 commandType            Command Type                   VARCHAR(32)                  PRIMARY 
   5 commandID              Command ID                     VARCHAR(32)                  PRIMARY 
   6 sendState              Send State                     SMALLINT UNSIGNED            PRIMARY 
   7 commandArgs            Command Args                   VARCHAR(256)                         
   8 sendTime               Send Time                      INT UNSIGNED                         
   9 deleteAfter            Delete after condition         SMALLINT UNSIGNED                    
  10 ackTime                ACK Time                       INT UNSIGNED                         
  11 ackResponse            ACK Response                   SMALLINT UNSIGNED                    
  12 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  13 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: SystemAudit [optional]
Class: org.opengts.extra.tables.SystemAudit

This table contains GTS System Audit information

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 auditTime              Audit timestamp                INT                          PRIMARY 
   3 auditCode              Audit Reason                   SMALLINT UNSIGNED            PRIMARY 
   4 userID                 User ID                        VARCHAR(32)                          
   5 deviceID               Device ID                      VARCHAR(32)                          
   6 ipAddress              IP Address                     VARCHAR(32)                          
   7 privateLabelName       PrivateLabel Name              VARCHAR(32)                          
   8 description            Description                    VARCHAR(128) [utf8]                  
   9 notes                  Notes                          TEXT [utf8]                          
  10 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: EventTemplate [optional]
Class: org.opengts.db.dmtp.EventTemplate

This table contains DMTP event packet 'template's (Custom Event Packet Negotiation parse
templates) which have been received from client devices.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 customType             Custom Type                    TINYINT UNSIGNED             PRIMARY 
   4 repeatLast             Repeat Last                    TINYINT                              
   5 template               Template                       TEXT                                 


================================================================================================
Table: PendingPacket [optional]
Class: org.opengts.db.dmtp.PendingPacket

This table contains configuration packets which are to be sent to the DMTP client device the
next time it 'checks-in' with the server.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 queueTime              Packet Queue Time              INT UNSIGNED                 PRIMARY 
   4 sequence               Sequence                       SMALLINT UNSIGNED            PRIMARY 
   5 packetBytes            Packet Bytes                   MEDIUMBLOB                           
   6 autoDelete             Delete after sending           TINYINT                              


================================================================================================
Table: Property [optional]
Class: org.opengts.db.dmtp.Property

This table contains Device specific property information collected from client devices.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 propKey                Property Key                   INT UNSIGNED                 PRIMARY 
   4 timestamp              Timestamp                      INT UNSIGNED                         
   5 binaryValue            Binary Value                   BLOB                                 


================================================================================================
Table: Diagnostic [optional]
Class: org.opengts.db.dmtp.Diagnostic

This table contains Device specific diagnostic information collected from client devices.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 isError                Is Error                       TINYINT                      PRIMARY 
   4 codeKey                Code Key                       INT UNSIGNED                 PRIMARY 
   5 timestamp              Timestamp                      INT UNSIGNED                 PRIMARY 
   6 binaryValue            Binary Value                   BLOB                                 


================================================================================================
Table: Rule [optional]
Class: org.opengts.rule.tables.Rule

This table defines Account specific Rules.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 ruleID                 Rule ID                        VARCHAR(32)                  PRIMARY 
   3 isCronRule             Is Cron Rule                   TINYINT                              
   4 ruleTag                Rule Tag                       VARCHAR(24)                          
   5 selector               Rule Selector                  TEXT                                 
   6 actionMask             Action Mask                    INT UNSIGNED                         
   7 cannedActions          Canned Actions                 VARCHAR(80)                          
   8 priority               Priority                       SMALLINT UNSIGNED                    
   9 minNotifyAge           Minimum Notify Age             INT UNSIGNED                         
  10 notifyEmail            Notification EMail Address     VARCHAR(128)                         
  11 emailSubject           EMail Subject                  TEXT [utf8]                          
  12 emailText              EMail Message                  TEXT [utf8]                          
  13 smsText                SMS Message                    TEXT [utf8]                          
  14 useEmailWrapper        Use EMail Wrapper              TINYINT                              
  15 ruleDisable            Disabled Rules                 VARCHAR(64)                          
  16 ruleEnable             Enabled Rules                  VARCHAR(64)                          
  17 sendCommand            Send Commands                  TEXT                                 
  18 isActive               Is Active                      TINYINT                              
  19 description            Description                    VARCHAR(128) [utf8]                  
  20 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  21 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: RuleList [optional]
Class: org.opengts.rule.tables.RuleList

This table defines Device and StatusCode specific Rule associations.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 groupID                Device Group ID                VARCHAR(32)                  PRIMARY 
   4 statusCode             Status Code                    INT UNSIGNED                 PRIMARY 
   5 ruleID                 Rule ID                        VARCHAR(32)                  PRIMARY 
   6 lastUpdateTime         Last Update Time               INT UNSIGNED                         
   7 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: RuleTrigger [optional]
Class: org.opengts.rule.tables.RuleTrigger

This table defines Device Trigger Rules.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 ruleID                 Rule ID                        VARCHAR(32)                  PRIMARY 
   4 lastTriggerTime        Last Trigger Time              INT UNSIGNED                         
   5 actionMask             Action Mask                    INT UNSIGNED                         
   6 isActive               Is Active                      TINYINT                              
   7 lastUpdateTime         Last Update Time               INT UNSIGNED                         
   8 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: GeoCorridor [optional]
Class: org.opengts.rule.tables.GeoCorridor

This table defines Account GeoCorridors.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 corridorID             GeoCorridor ID                 VARCHAR(32)                  PRIMARY 
   3 radius                 Radius Meters                  INT UNSIGNED                         
   4 displayName            Display Name                   VARCHAR(40) [utf8]                   
   5 description            Description                    VARCHAR(128) [utf8]                  
   6 lastUpdateTime         Last Update Time               INT UNSIGNED                         
   7 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: GeoCorridorList [optional]
Class: org.opengts.rule.tables.GeoCorridorList

This table defines Account GeoCorridor List.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 corridorID             GeoCorridorList ID             VARCHAR(32)                  PRIMARY 
   3 sortID                 Sort ID                        INT UNSIGNED                 PRIMARY 
   4 latitude1              Latitude 1                     DOUBLE                               
   5 longitude1             Longitude 1                    DOUBLE                               
   6 latitude2              Latitude 2                     DOUBLE                               
   7 longitude2             Longitude 2                    DOUBLE                               
   8 latitude3              Latitude 3                     DOUBLE                               
   9 longitude3             Longitude 3                    DOUBLE                               
  10 latitude4              Latitude 4                     DOUBLE                               
  11 longitude4             Longitude 4                    DOUBLE                               
  12 latitude5              Latitude 5                     DOUBLE                               
  13 longitude5             Longitude 5                    DOUBLE                               
  14 latitude6              Latitude 6                     DOUBLE                               
  15 longitude6             Longitude 6                    DOUBLE                               
  16 latitude7              Latitude 7                     DOUBLE                               
  17 longitude7             Longitude 7                    DOUBLE                               
  18 latitude8              Latitude 8                     DOUBLE                               
  19 longitude8             Longitude 8                    DOUBLE                               
  20 latitude9              Latitude 9                     DOUBLE                               
  21 longitude9             Longitude 9                    DOUBLE                               
  22 latitude10             Latitude 10                    DOUBLE                               
  23 longitude10            Longitude 10                   DOUBLE                               
  24 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  25 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: NotifyQueue [optional]
Class: org.opengts.rule.tables.NotifyQueue

This table contains Device specific queued notification messages. Rule-based notification
messages may be placed in this table as an alternative to sending an email.  The 'Notification'
servlet provides access to the messages within this table.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 ruleID                 Rule ID                        VARCHAR(32)                  PRIMARY 
   4 timestamp              Timestamp                      INT UNSIGNED                 PRIMARY 
   5 statusCode             Status_Code                    INT UNSIGNED                 PRIMARY 
   6 messageID              Message_ID                     VARCHAR(24)                  altIndex
   7 priority               Priority                       INT UNSIGNED                         
   8 sender                 Sender                         VARCHAR(64)                          
   9 recipients             Recipients                     VARCHAR(256)                         
  10 subject                Subject                        TEXT [utf8]                          
  11 message                Message                        TEXT [utf8]                          
  12 lastUpdateTime         Last Update Time               INT UNSIGNED                         
  13 creationTime           Creation Time                  INT UNSIGNED                         


================================================================================================
Table: FuelRegister [optional]
Class: org.opengts.rule.tables.FuelRegister

This table defines Fuel regsiter information.

  ## Column                 Description                    SQL Type                     Key     
 --- ---------------------- ------------------------------ ---------------------------- --------
   1 accountID              Account ID                     VARCHAR(32)                  PRIMARY 
   2 deviceID               Device/Asset ID                VARCHAR(32)                  PRIMARY 
   3 timestamp              Timestamp                      INT UNSIGNED                 PRIMARY 
   4 statusCode             Status Code                    INT UNSIGNED                         
   5 latitude               Latitude                       DOUBLE                               
   6 longitude              Longitude                      DOUBLE                               
   7 fuelLevel              Fuel Level                     DOUBLE                               
   8 deltaFuelLevel         Delta Fuel Level               DOUBLE                               
   9 isIncrease             Is Fuel Increase               TINYINT                              
  10 fuelTotal              Total Fuel Used                DOUBLE                               
  11 odometerKM             Odometer KM                    DOUBLE                               
  12 subdivision            Subdivision                    VARCHAR(32) [utf8]                   
  13 address                Address                        VARCHAR(90) [utf8]                   
  14 creationTime           Creation Time                  INT UNSIGNED                         


