travelcurrent Table (32)
Information about this database and its place in the hierarchyFields
| Name | Description | Type | Nullable |
|---|---|---|---|
| travelcurrent_id | Primary key | PK | No |
| systemlevel | 10 = central, 9 = first child, 8 = second-generation child | UShort | Yes |
| current_id | Central=0, Departm.=H01000000-H7F000000, Travel=assoc_id | FK associate | Yes |
| central_id | ID of parent database (from its current_id) | FK associate | Yes |
| area_id | Area ID this database represents | Id | Yes |
| central_generatedtime | When was the central database generated | DateTime | Yes |
| current_generatedtime | When was this database generated | DateTime | Yes |
| last_recordtime | Timestamp of last traveltranslog record received from the parent of this database | DateTime | Yes |
| last_recordnumber | Traveltranslog record ID of last record this database has received from its parent | FK traveltransactionlog | Yes |
| first_recordnumber | First traveltranslog record in parent that was transmitted to this database | FK traveltransactionlog | Yes |
| last_playbacktime | Datetamp of when we last read a file from our parent | DateTime | Yes |
| last_playbacknumber | File number of last file read from our parent | Id | Yes |
| databasetype | Default database type for prototypes made from this database, unless the Area record says something else | UShort | Yes |
| dbTag | 128-bit database tag (in hex) of this database | String(39) | No |
| parentDbTag | 128-bit database tag (in hex) of this database’s parent database | String(39) | No |
| centralDbTag | 128-bit database tag (in hex) of the central database | String(39) | No |
| encryptedComm | Use encrypted communication back to parent: 0 = no, 1 = serial no as key, 2 = target db tag as key (secure but lots of hassle for support) | Enum TravelEncryptionOwn | Yes |
| defaultMakeReturn | Default value for the ‘make return log’ checkbox, based on last answer | UShort | Yes |
| adminLogin | Encrypted string containing user name & password of DB user who has create/delete user authority for this database | String(127) | Yes |
| registered | Registered when | UtcDateTime | No |
| registered_associate_id | Registered by whom | FK associate | No |
| updated | Last updated when | UtcDateTime | No |
| updated_associate_id | Last updated by whom | FK associate | No |
| updatedCount | Number of updates made to this record | UShort | No |

Indexes
| Fields | Types | Description |
|---|
Relationships
| Table | Description |
|---|---|
| associate | Employees, resources and other users - except for External persons |
| traveltransactionlog | Log of all updates made to the database, that need to be replicated. |
Replication Flags
- None
Security Flags
- No access control via user’s Role.