Skip to content

Database Schema Reference

This document provides a reference for the Txlog Server database schema.

Tables

assets

Central registry of all managed assets. Tracks asset replacements by linking hostname (logical) with machine_id (physical).

ColumnTypeNullableDescription
asset_idSERIALNoPrimary Key (Surrogate).
hostnameTEXTNoLogical name (e.g., web-01).
machine_idTEXTNoUnique OS/Hardware ID.
first_seenTIMESTAMPNoWhen first reported.
last_seenTIMESTAMPNoMost recent activity.
is_activeBOOLEANNoTRUE if currently active for this hostname.
deactivated_atTIMESTAMPYesWhen replaced by a new asset.

executions

Records of agent executions (check-ins).

ColumnTypeNullableDescription
idSERIALNoPrimary Key.
machine_idTEXTNoForeign Key to Asset (logical).
hostnameTEXTNoHostname at time of execution.
executed_atTIMESTAMPNoTime of execution.
successBOOLEANNoWhether execution succeeded.
detailsTEXTYesError messages or details.
osTEXTYesOperating System name/version.
agent_versionTEXTYesVersion of Txlog Agent.

transactions

RPM transactions (install, update, remove).

ColumnTypeNullableDescription
transaction_idINTEGERNoRPM DB Transaction ID.
machine_idTEXTNoComposite PK with transaction_id.
hostnameTEXTNoHostname.
begin_timeTIMESTAMPYesStart of transaction.
end_timeTIMESTAMPYesEnd of transaction.
actionsTEXTYesSummary of actions.
userTEXTYesUser who ran the command.
command_lineTEXTYesCommand executed (e.g., dnf update).
return_codeTEXTYesExit code.

transaction_items

Individual packages affected in a transaction.

ColumnTypeNullableDescription
item_idSERIALNoPrimary Key.
transaction_idINTEGERNoFK to transactions.
machine_idTEXTNoFK to transactions.
packageTEXTYesPackage name.
versionTEXTYesPackage version.
releaseTEXTYesPackage release.
actionTEXTYesAction (Install, Upgrade, Remove).

users

Admin panel users (OIDC/LDAP).

ColumnTypeNullableDescription
idSERIALNoPrimary Key.
emailTEXTNoUser email.
is_adminBOOLEANNoFull access flag.
is_activeBOOLEANNoLogin permission flag.

api_keys

API keys for agent authentication.

ColumnTypeNullableDescription
idSERIALNoPrimary Key.
nameTEXTNoHuman-readable name.
key_prefixTEXTNoFirst few chars of key.
key_hashTEXTNoHashed key (SHA-256).
is_activeBOOLEANNoValid for use.