WESERGATE NAC / REFERENCE

Persistent data schema index (v0.13.0)

PostgreSQL is the appliance database. Migrations are versioned with Alembic; do not manipulate these tables directly in production. The list below is extracted from SQLAlchemy model definitions. Model Table Fields --- --

v0.14.3Pre-production · v0.14.3
v0.14.3 documentation draft: technical, legal and commercial reviews are still pending.

PostgreSQL is the appliance database. Migrations are versioned with Alembic; do not manipulate these tables directly in production. The list below is extracted from SQLAlchemy model definitions.

Model Table Fields
Administrator administrators id, username, password_hash, role_id, enabled, totp_secret, totp_confirmed, totp_pending, totp_last_step, created_at, role
Role roles id, description, permissions
RolePermission role_permissions role_id, permission
AdminSession admin_sessions token_hash, administrator_id, csrf_hash, created_at, expires_at, last_seen_at, user_agent
LoginAttempt login_attempts id, username, ip, at
Secret secrets id, encrypted, updated_at
AuditRecord audit_records id, at, actor, action, target, result, ip, detail, previous_hash, digest
Switch switches id, name, ip, platform, connection_type, access_status, auto_discover, last_discovery_attempt, discovery_interval_minutes, model, firmware, status, last_seen, coa_enabled, coa_port, capability_verified, category_id
Port ports id, switch_id, ifindex, name, oper_state, speed_bps, observed_pvid, provenance, category_id, discovery_override, last_seen
Device devices id, mac, hostname, ip, category, classification_source, network_observed, certificate_fingerprint, approved, blocked, owner, owner_source, owner_assigned_at, switch_id, port_id, observed_vlan, last_seen, first_seen
Evidence device_evidence id, device_id, kind, value, source, confidence, observed_at
Policy policies id, name, priority, enabled, group_id, action, vlan, conditions, version, created_at, updated_at
PolicyRevision policy_revisions id, policy_id, version, actor, snapshot, at
RadiusSession radius_sessions id, nas_ip, acct_session_id, mac, username, switch_id, port_id, expected_vlan, status, auth_method, verified_identity, started_at, last_seen
AuthEvent authentication_events id, at, mac, username, method, result, reason, policy_id, source
Guest guests id, name, email, sponsor, mac, status, expires_at, created_at, approved_by
PortalFlow portal_flows state_hash, nonce_hash, nonce_encrypted, verifier_encrypted, radius_session_id, created_at, expires_at
Alert alerts id, at, severity, title, detail, source, acknowledged_by, acknowledged_at
SystemEvent system_events id, at, kind, severity, message, source
Integration integrations id, kind, name, config_json, status, last_checked_at, last_error
PortalTicket portal_tickets ticket_hash, radius_session_id, expires_at
AuthorizationGrant authorization_grants id, nas_ip, mac, username, method, vlan, policy_id, created_at, expires_at, used
NetworkUser network_users id, username, display_name, email, department, directory_status, access_status, source, last_seen, created_at
InventoryGroup inventory_groups id, kind, name, description, external_identity, created_at
InventoryGroupMember inventory_group_members group_id, member_id, source, added_at
GroupRule inventory_group_rules id, group_id, field, value, enabled, created_at
DashboardPreference dashboard_preferences administrator_id, widget_ids, refresh_seconds, widget_sizes, updated_at
DiscoveryRun discovery_runs id, started_at, completed_at, status, discover_count, correlate_count, suggested_count, failed_switches, detail
DiscoverySuggestion discovery_suggestions id, run_id, device_id, proposed_action, reason, status, reviewed_by, at
AssetCategory asset_categories id, kind, name, description, built_in
ManagementPolicy management_policies id, name, kind, category_id, enabled, discover_enabled, interval_minutes, updated_at
TablePreference table_preferences administrator_id, table_id, columns_json
IpDiscoveryJob ip_discovery_jobs id, scope, status, requested_by, attempted, found, error, created_at, completed_at
IpDiscoveryCandidate ip_discovery_candidates id, job_id, ip, ports, status, reviewed_by
PreproductionNetworkPlan preproduction_network_plans id, plan_json, updated_by, updated_at, applied_plan_sha256, applied_at
SetupProgress setup_progress step, decision, updated_by, updated_at
SetupSite setup_site id, display_name, management_hostname, portal_hostname, updated_by, updated_at
SetupCheckResult setup_check_results check_id, state, detail, tested_by, checked_at
AdminDirectoryMapping admin_directory_mappings id, principal_kind, principal, role_id, verified, note, created_at
SetupOidcTestFlow setup_oidc_test_flows state_hash, administrator_id, integration_id, nonce_secret, verifier_secret, expires_at
CommercialLicense commercial_licenses id, installation_id, trial_started_at, last_observed_at, signed_document, activated_at, capacity_exceeded_at

Migration safety

Apply migrations through the appliance startup, back up data and keys first. Never delete the Docker volume to repair an application migration.

Licensing state

commercial_licenses persists installation UUID, 30-day trial anchor, last observed clock and signed paid license document. Retain it during upgrades.

v0.13 database changes

Migration 0011_hybrid_license_capacity adds commercial_licenses.capacity_exceeded_at and time-based query indexes on high-volume event/evidence tables. The license UUID and original trial start date are retained. Capacity is counted from devices rows; device_evidence and event history do not affect paid endpoint usage. Refer to database retention.

Original English reference: en/docs/reference/database.mdRead documentation
Pre-production · v0.14.3

Not a certified production NAC. Physical switch/RADIUS enforcement and 1,000-device traffic remain unverified.

WeserCode One now provides customer accounts, support tickets and verified commercial records. Automated checkout and signed WeserGate license issuance are not connected.

Open customer portal Product overview