> For the complete documentation index, see [llms.txt](https://docs.easy2patch.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.easy2patch.com/overview/data-dictionary-veri-sozlugu/data-dictionary.md).

# Data Dictionary

### 1. Purpose and Scope

This document describes the data structures used by Easy2Patch, including tables, fields, data types, relationships, constraints, and the business rules applied to these structures. It is based on the schema created by installation and upgrade scripts and on the entity model used at the application layer.

The following components are covered:

1. **Easy2Patch database** (Microsoft SQL Server, `dbo` schema): product-managed tables created during installation.
2. **Background job infrastructure** (`HangFire` schema): tables managed by a third-party library.
3. **Read-only external data sources**: WSUS (SUSDB) and Configuration Manager (SCCM) objects queried by the application.
4. **Web client storage**: temporary session and preference information stored in the browser.

#### 1.1 Deployment, Data Ownership, and Vendor Access

**Deployment model.** Easy2Patch is an on-premises software product installed in infrastructure administered by the customer. Its application database and primary operational records reside in the customer-managed environment. Deployment options, enabled modules, and connected services can affect individual data flows.

**Customer data and operational control.** Customer-specific data—including user and device records, inventory, configuration, deployment history, and application logs—is administered by the customer. The customer controls the underlying database, accounts, infrastructure permissions, backups, retention settings, and authorized access in its environment, subject to the applicable product configuration and agreements. Ownership of customer data is distinct from intellectual property rights in Easy2Patch software and its technical designs.

**Vendor access.** An ordinary on-premises installation does not provide the Easy2Patch vendor with default, direct, or continuous access to the customer's database or operational environment. The vendor cannot independently retrieve customer-hosted records merely by virtue of supplying the software. Customer-authorized support activities, diagnostic submissions, remote sessions, or other expressly enabled arrangements may make particular data accessible to the vendor. Such access is subject to the customer's authorization, the agreed support scope, and applicable requirements.

**Data flows and integrations.** An on-premises deployment should not be understood as a promise of zero outbound network traffic. Depending on customer configuration and enabled functionality, the product may contact catalog, license, update, or other external services and may interact with WSUS, Configuration Manager, Microsoft Intune, and Microsoft Graph. These communications are not equivalent to granting the vendor general access to the customer database. The actual endpoints, exchanged fields, and security controls must be assessed against the deployed version and customer configuration; this document is not a complete network-flow or privacy inventory.

**Responsibilities and legal scope.** Operation of the customer environment, including infrastructure access policies, retention, backups, and any institution-specific regulatory duties, remains within the customer's administration. This description does not eliminate any obligations imposed on either party by applicable law or their agreements. The respective roles of the parties under privacy law depend on actual processing activities, not solely on where software is installed.

**Intellectual property.** Easy2Patch software, proprietary catalog content, detection logic, implementation details, and original database schema design remain subject to the rights of their respective owners. Providing technical documentation or storing customer records in a customer-managed database does not by itself transfer ownership of the software or its proprietary components.

**Nature of this reference.** This is a descriptive technical reference, not a statement that the vendor has inspected, audited, certified, or accessed a particular customer's production environment. It is not a service-level agreement, a security certification, a data processing agreement, or an unconditional guarantee of behavior across all versions and configurations. Where implementation details differ, the installed release, release notes, configuration, and applicable agreement should be consulted.

#### 1.2 Scope and documentation boundaries

The following data categories are described at a **structural level**. Their actual values and proprietary implementation details are not included in this reference. The corresponding fields are identified using these markers:

| Marker    | Meaning                                                                                                                                                                                                                                                                                                                                                                                                        |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **\[K]**  | Sensitive field containing credentials, secrets, or tokens. The field may contain sensitive material and should be protected by the relevant application security controls. Field-level marking is not a cryptographic assurance or an independent verification of the deployed system. Encryption algorithms, key derivation, and key storage implementation details are outside the scope of this reference. |
| **\[TS]** | Proprietary product data. The field structure and purpose are documented, while actual catalog content, detection scripts, matching patterns, and licensing matrices are outside the scope of this reference.                                                                                                                                                                                                  |
| **\[KV]** | Field that may contain personal data, depending on actual values and use. Its processing and protection are subject to applicable privacy requirements and deployment-specific responsibilities.                                                                                                                                                                                                               |

Implementation details of license verification, catalog generation, signature and integrity verification, and cryptographic mechanisms are outside the scope of this document.

***

### 2. General Design Principles

#### 2.1 Common Fields

All Easy2Patch application tables (prefixed with `t_`) contain the following common fields. These fields are not repeated in the individual table definitions.

| Field        | Type             | Null | Default | Description                                                                            |
| ------------ | ---------------- | ---- | ------- | -------------------------------------------------------------------------------------- |
| `Id`         | uniqueidentifier | No   | —       | Primary key. Application-generated GUID with a clustered primary key index (`PK_*`).   |
| `CreatedAt`  | datetime         | Yes  | —       | Record creation time (server local time).                                              |
| `ModifiedAt` | datetime         | Yes  | —       | Last record modification time.                                                         |
| `CreatedBy`  | uniqueidentifier | Yes  | —       | `t_Users.Id` of the creating user; scheduled system jobs use the service account.      |
| `ModifiedBy` | uniqueidentifier | Yes  | —       | `t_Users.Id` of the user who last modified the record.                                 |
| `IsDeleted`  | int              | No   | 0       | Soft-delete flag: `0` = active, `1` = deleted (see `IsDeletedEnums` under Code Lists). |

Exceptions: `CreatedAt` and `CreatedBy` are mandatory (NOT NULL) in `t_PortalMfaValidations` and `t_MfaKeys`.

#### 2.2 Business Rules (Schema-wide)

| No.  | Rule                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| G-1  | **Soft delete:** Application-level soft deletion commonly marks records with `IsDeleted = 1`; relevant active-record queries use `IsDeleted = 0`. Physical deletion, maintenance, and retention procedures may differ by dataset and operation.                                                                                                                                                                                                          |
| G-2  | **Key generation:** GUID primary keys are generated by the application rather than the database. IDENTITY columns are not used.                                                                                                                                                                                                                                                                                                                          |
| G-3  | **Referential integrity:** Table relationships are maintained at the **application layer**, except for two physical foreign keys (see Section 4). Connections labeled as logical relationships do not have FOREIGN KEY constraints in the database.                                                                                                                                                                                                      |
| G-4  | **Audit trail:** Application-managed create/update operations generally populate `CreatedAt/CreatedBy` or `ModifiedAt/ModifiedBy`, as applicable. These fields are not a substitute for comprehensive database or security auditing.                                                                                                                                                                                                                     |
| G-5  | **Decimal precision:** All `decimal` fields map to `decimal(18,2)`.                                                                                                                                                                                                                                                                                                                                                                                      |
| G-6  | **Boolean values:** For historical reasons, many flags use `int` (`0` = no, `1` = yes). New fields use `bit`.                                                                                                                                                                                                                                                                                                                                            |
| G-7  | **Credential protection:** Application-managed passwords are designed to use one-way hashing; credentials needed to authenticate to external systems (SMTP, SIP, SCCM, WSUS, proxy, Intune) are designed to use protected, recoverable storage where required. Storage behavior must be validated for the installed release and configuration; this description does not certify that every possible secret or diagnostic artifact is free of plaintext. |
| G-8  | **License enforcement:** Every catalog tree node has visibility flags for five license levels. The server rejects nodes and endpoints that are not available at the user's license level.                                                                                                                                                                                                                                                                |
| G-9  | **Feature type (`FeatureType`):** This field identifies the management channel: `1` WSUS update, `2` SCCM application, `3` Intune update, `4` Intune application.                                                                                                                                                                                                                                                                                        |
| G-10 | **Upgrade compatibility:** Schema upgrades are designed to maintain compatibility and preserve supported application data where possible. Changes may include new or modified structures. Customers should maintain verified backups, review release-specific upgrade notes, and follow documented upgrade procedures. This reference does not guarantee recovery from upgrade failure or data loss.                                                     |

#### 2.3 Naming Conventions

* Tables: `t_` prefix followed by a plural name (`t_Users`).
* Mapping tables: `t_<Left>_<Right>_Maps` (`t_Apps_AppsDts_Maps`).
* External identifiers: `PackageId` (catalog package GUID), `SoftwareId` (text-based catalog software identifier), `MachineId` / `ResourceId` / `DeviceId` (managed device identifier, depending on source).

***

### 3. Table Catalog

#### 3.1 Identity, Authorization, and Sessions

**t\_Users — Portal users**

Stores accounts authorized to access the portal. Accounts can originate from Active Directory, Entra ID (Azure AD), or the built-in administrator account.

| Field                  | Type             | Null | Default | Description                                                                             |
| ---------------------- | ---------------- | ---- | ------- | --------------------------------------------------------------------------------------- |
| `ObjectGuid`           | uniqueidentifier | No   | —       | Directory object GUID.                                                                  |
| `DomainObjectGuid`     | uniqueidentifier | Yes  | —       | Identifier of the domain definition associated with the user (domain list in settings). |
| `ObjectSID`            | nvarchar(256)    | Yes  | —       | Directory security identifier (SID).                                                    |
| `UserType`             | int              | No   | —       | User source (Code List `UserType`).                                                     |
| `SamAccountName`       | nvarchar(256)    | No   | —       | Sign-in name. **\[KV]**                                                                 |
| `PrincipalName`        | nvarchar(256)    | Yes  | —       | UPN-format username. **\[KV]**                                                          |
| `DisplayName`          | nvarchar(256)    | Yes  | —       | Display name. **\[KV]**                                                                 |
| `Mail`                 | nvarchar(256)    | Yes  | —       | Email address. **\[KV]**                                                                |
| `Password`             | nvarchar(256)    | Yes  | —       | Built-in account only; one-way hash. **\[K]**                                           |
| `SecretKey`            | nvarchar(256)    | Yes  | —       | Multi-factor authentication secret key. **\[K]**                                        |
| `IsMustChangePassword` | int              | No   | 0       | Requires a password change on first sign-in.                                            |

Relationships: `t_RoleGroupMaps.ObjectId` (logical, one-to-many), `t_UserLoginLogs.UserId`, `t_PortalMfaValidations.UserId`, `t_MfaKeys.UserId`.

Business rules: Directory users are created automatically at first successful sign-in and remain in `UserType = 3 (ADUserTemp)` status until a role is assigned. `Password` is empty for all users except the built-in account.

**t\_Groups — Directory groups**

Stores Active Directory / Entra ID groups with role assignments.

| Field              | Type             | Null | Default | Description                   |
| ------------------ | ---------------- | ---- | ------- | ----------------------------- |
| `ObjectGuid`       | uniqueidentifier | No   | —       | Group object GUID.            |
| `DomainObjectGuid` | uniqueidentifier | Yes  | —       | Domain definition identifier. |
| `ObjectSID`        | nvarchar(256)    | No   | —       | Group SID.                    |
| `SamAccountName`   | nvarchar(256)    | No   | —       | Group name.                   |

Relationships: `t_RoleGroupMaps.ObjectId` (logical).

**t\_Roles — Roles**

Fixed role definitions. Seven roles are provisioned at installation: Administrator, Application Manager, Intune Manager, Update Manager, Report Operator, Read-Only, Service.

| Field         | Type          | Null | Default | Description    |
| ------------- | ------------- | ---- | ------- | -------------- |
| `Name`        | nvarchar(256) | No   | —       | Role name.     |
| `Description` | nvarchar(500) | Yes  | —       | Description.   |
| `RowIndex`    | int           | No   | 0       | Display order. |

Business rules: Users cannot add or delete roles; only membership is managed. Role-permission mappings are defined in application code. The Service role is reserved for the internal account used by scheduled jobs.

**t\_RoleGroupMaps — Role memberships**

Stores assignments between a user or group and a role.

| Field        | Type             | Null | Default | Description                                              |
| ------------ | ---------------- | ---- | ------- | -------------------------------------------------------- |
| `ObjectId`   | uniqueidentifier | No   | —       | `t_Users.Id` or `t_Groups.Id`, depending on member type. |
| `RoleId`     | uniqueidentifier | No   | —       | `t_Roles.Id` (logical FK).                               |
| `MemberType` | int              | No   | —       | Member type (Code List `MemberTypeEnum`).                |

Business rules: A role cannot be assigned more than once to the same object (application-level validation). Permissions inherited through directory group membership are verified at sign-in.

**t\_UserLoginLogs — Sign-in log**

| Field            | Type             | Null | Default | Description                                 |
| ---------------- | ---------------- | ---- | ------- | ------------------------------------------- |
| `Name`           | nvarchar(256)    | No   | —       | Username submitted for sign-in. **\[KV]**   |
| `UserId`         | uniqueidentifier | Yes  | —       | Matching `t_Users.Id`.                      |
| `ObjectId`       | uniqueidentifier | Yes  | —       | Directory object GUID.                      |
| `LoginType`      | int              | No   | —       | Sign-in method (Code List `LoginTypeEnum`). |
| `HttpStatusCode` | int              | Yes  | —       | HTTP response status code.                  |
| `DomainId`       | uniqueidentifier | Yes  | —       | Domain definition identifier.               |
| `LoginStatus`    | int              | Yes  | —       | Result (Code List `LoginStatusEnum`).       |
| `Token`          | nvarchar(max)    | Yes  | —       | Session token reference. **\[K]**           |
| `Ip`             | nvarchar(256)    | Yes  | —       | Client IP address. **\[KV]**                |

**t\_PortalMfaValidations — Multi-factor authentication attempts**

| Field           | Type             | Null | Default | Description                                                 |
| --------------- | ---------------- | ---- | ------- | ----------------------------------------------------------- |
| `UserId`        | uniqueidentifier | No   | —       | `t_Users.Id`.                                               |
| `OptionScopeId` | bigint           | No   | —       | Verification method (Code List `PortalMfaOptionScopeEnum`). |
| `OTPCode`       | nvarchar(50)     | Yes  | —       | One-time password. **\[K]**                                 |
| `OTPExpireDate` | datetime         | No   | —       | OTP expiration time.                                        |
| `IsSmsSent`     | bit              | No   | —       | Whether the code was delivered.                             |
| `StatuScopeId`  | bigint           | No   | —       | Verification status (Code List `PortalMfaStatusScopeEnum`). |
| `ReferenceCode` | nvarchar(10)     | Yes  | —       | Matching code displayed to the user.                        |
| `AttemptCount`  | smallint         | Yes  | —       | Number of attempts.                                         |

Business rules: Expired entries or entries exceeding the attempt limit are set to `TrialExpired`, and a new verification is initiated.

**t\_MfaKeys — Multi-factor authentication keys**

| Field       | Type             | Null | Default | Description                                    |
| ----------- | ---------------- | ---- | ------- | ---------------------------------------------- |
| `UserId`    | uniqueidentifier | No   | —       | `t_Users.Id`.                                  |
| `SecretKey` | nvarchar(255)    | No   | —       | Authenticator application secret key. **\[K]** |
| `IsUsed`    | bit              | No   | —       | Whether the key has been activated.            |

**t\_RequestLogs — Request log**

| Field          | Type           | Null | Default       | Description                  |
| -------------- | -------------- | ---- | ------------- | ---------------------------- |
| `Descriptions` | nvarchar(1000) | No   | —             | Request description.         |
| `IP`           | nvarchar(256)  | No   | `'127.0.0.1'` | Client IP address. **\[KV]** |

***

#### 3.2 Settings and Configuration

**t\_Settings — Configuration records**

Application settings are stored as JSON documents, one record per settings group.

| Field          | Type             | Null | Default | Description                                                           |
| -------------- | ---------------- | ---- | ------- | --------------------------------------------------------------------- |
| `SettingsGuid` | uniqueidentifier | No   | —       | Fixed identifier of the settings group.                               |
| `SettingsName` | nvarchar(50)     | Yes  | —       | Settings group name (see list below).                                 |
| `GroupId`      | int              | Yes  | —       | Grouping identifier (currently `0`).                                  |
| `Json`         | nvarchar(max)    | Yes  | —       | Settings content (JSON); embedded credentials are encrypted. **\[K]** |

Settings groups and their purposes:

| `SettingsName`                                    | Content                                                                                                                                  |
| ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `MainSettings`                                    | Enabled catalog trees (WSUS updates, SCCM applications, Intune applications/updates).                                                    |
| `GeneralSettings`                                 | General portal preferences (language, notifications, display options).                                                                   |
| `WSUSSettings`, `WsusConnectionSettings`          | WSUS server address, port, SSL, and SUSDB connection. **\[K]**                                                                           |
| `SCCMSettings`, `SccmConnectionSettings`          | Site server, site code, database connection, distribution point, and collection preferences. **\[K]**                                    |
| `IntuneSettings`, `IntuneDeploymentSettings`      | Tenant ID, app registration, assignment groups, and end-user notification behavior (Code List `IntuneEndUserNotificationEnum`). **\[K]** |
| `ApplicationDeploymentSettings`, `UpdateSettings` | Publishing defaults: deployment purpose, scheduling, restart behavior, and overwrite option.                                             |
| `ScheduleSettings`                                | Catalog synchronization and publishing schedules (Code List `ScheduleTypeEnum`).                                                         |
| `ProxySettings`                                   | Proxy server address and authentication type. **\[K]**                                                                                   |
| `LogSettings`                                     | Log level and destinations (Code List `LogTypeEnum`).                                                                                    |
| `ProcessConflictSettings`                         | Default conflict behavior for running processes during installation.                                                                     |
| `StaticUserSettings`                              | Built-in administrator account preferences. **\[K]**                                                                                     |
| `Portal2FASettingsDto`                            | Multi-factor authentication requirement and scope.                                                                                       |
| `DomainsDtoSettings`                              | Configured domains and directory connection details. **\[K]**                                                                            |
| `CertificateManagementSettings`                   | Code-signing certificate selection and timestamp server.                                                                                 |
| `LicenseSettings`, `InstallationIdentitySettings` | License and installation identity; internal representation is outside the scope of this reference. **\[TS]**                             |

Business rules: A single active record exists for each group. The previous content is copied to `t_SettingBackups` before an update. Sensitive configuration values are handled by the application’s credential-protection mechanisms; behavior depends on the specific setting and deployed release.

**t\_SettingBackups — Settings backups**

Uses the same field structure as `t_Settings` (`SettingsGuid`, `SettingsName`, `GroupId`, `Json`). The preceding version is recorded here whenever settings change and can be used for rollback.

**t\_SharedCaches — Shared cache**

| Field        | Type          | Null | Default | Description                           |
| ------------ | ------------- | ---- | ------- | ------------------------------------- |
| `KeyName`    | nvarchar(256) | No   | —       | Cache key.                            |
| `Value`      | nvarchar(max) | No   | —       | Cached value (JSON).                  |
| `ExpireDate` | datetime      | Yes  | —       | Expiration time; indefinite if empty. |

Business rules: Stores computed values shared between the API and scheduled job processes (counters, status summaries). Expired entries are ignored when read.

**t\_TimeStampUrls — Timestamp servers**

| Field | Type           | Null | Default | Description                    |
| ----- | -------------- | ---- | ------- | ------------------------------ |
| `Url` | nvarchar(1024) | No   | —       | RFC 3161 timestamp server URL. |

Populated during installation with commonly used public timestamp servers; the selected endpoint is used for code signing.

**t\_ScheduleLastInfos — Last scheduled job execution information**

| Field                       | Type     | Null | Default | Description                                         |
| --------------------------- | -------- | ---- | ------- | --------------------------------------------------- |
| `FeaturedId`                | int      | No   | —       | Job type (Code List `ScheduleType2Enum`).           |
| `LastSynchronization`       | datetime | No   | —       | Last execution time.                                |
| `LastSynchronizationStatus` | int      | No   | —       | Last execution result (`0` failed, `1` successful). |

**t\_ProcessConflictSettings — Process conflict definitions**

Defines how running processes are handled when software is being updated.

| Field                         | Type          | Null | Default | Description                                                    |
| ----------------------------- | ------------- | ---- | ------- | -------------------------------------------------------------- |
| `ProcessConflictType`         | int           | No   | —       | Definition source (Code List `ProcessConflictCustomTypeEnum`). |
| `SoftwareId`                  | nvarchar(255) | No   | —       | Related catalog software identifier.                           |
| `WaitTimeSeconds`             | int           | No   | —       | Time allowed for user confirmation (seconds).                  |
| `Body`                        | nvarchar(500) | No   | —       | Message text displayed to the user.                            |
| `ProcessConflictBehaviorType` | int           | No   | —       | Behavior (Code List `ProcessConflictBehaviorTypeEnum`).        |

Relationships: `t_ProcessNames.ProcessSettingsId` → `t_ProcessConflictSettings.Id` (**physical FK**).

**t\_ProcessNames — Conflicting process names**

| Field               | Type             | Null | Default | Description                                                                       |
| ------------------- | ---------------- | ---- | ------- | --------------------------------------------------------------------------------- |
| `ProcessSettingsId` | uniqueidentifier | No   | —       | `t_ProcessConflictSettings.Id` (FK `FK_t_ProcessName_t_ProcessConflictSettings`). |
| `ProcessNameType`   | int              | No   | —       | Name type (process name / window title).                                          |
| `ProcessName`       | nvarchar(200)    | No   | —       | Process name to monitor.                                                          |

***

#### 3.3 Notifications and Alerts

**t\_AlertChannels — Notification channels**

Three channels are configured during installation: Email, Telegram, and Webhook. (SIP is also supported at the configuration level.)

| Field          | Type          | Null | Default | Description                      |
| -------------- | ------------- | ---- | ------- | -------------------------------- |
| `DisplayName`  | nvarchar(256) | No   | —       | Channel name (localization key). |
| `Descriptions` | nvarchar(256) | Yes  | —       | Description.                     |

**t\_AlertEvents — Alert event groups**

Three groups are configured during installation: catalog download, publishing, and vulnerability detection.

| Field          | Type          | Null | Default | Description                          |
| -------------- | ------------- | ---- | ------- | ------------------------------------ |
| `DisplayName`  | nvarchar(256) | No   | —       | Event group name (localization key). |
| `Descriptions` | nvarchar(256) | Yes  | —       | Description.                         |

**t\_AlertEventDetails — Alert events**

| Field          | Type             | Null | Default | Description                      |
| -------------- | ---------------- | ---- | ------- | -------------------------------- |
| `AlertEventId` | uniqueidentifier | No   | —       | `t_AlertEvents.Id` (logical FK). |
| `DisplayName`  | nvarchar(256)    | No   | —       | Event name.                      |
| `Descriptions` | nvarchar(256)    | Yes  | —       | Description.                     |

Default events include new catalog downloaded, catalog download error, all catalog download events, successful publication, failure to publish one or more items, successful vulnerability detection, and vulnerability detection error. Event codes are defined in `AlertTypeEnum` in the Code Lists section.

**t\_Recipients — Recipients**

| Field            | Type           | Null | Default | Description                         |
| ---------------- | -------------- | ---- | ------- | ----------------------------------- |
| `OrderNum`       | int            | No   | 1       | Order.                              |
| `DisplayName`    | nvarchar(256)  | No   | —       | Recipient name. **\[KV]**           |
| `WebhookAdress`  | nvarchar(1048) | Yes  | —       | Webhook address.                    |
| `Email`          | nvarchar(256)  | Yes  | —       | Email address. **\[KV]**            |
| `TelegramChatId` | nvarchar(12)   | Yes  | —       | Telegram chat identifier. **\[KV]** |
| `IsActive`       | int            | No   | —       | Active status.                      |

**t\_Alerts — Alert rules**

Defines which events are sent to which recipients through which notification channels.

| Field                | Type             | Null | Default | Description                                                                                                                                                                             |
| -------------------- | ---------------- | ---- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `OrderNum`           | int              | No   | 1       | Order.                                                                                                                                                                                  |
| `NotificationId`     | uniqueidentifier | Yes  | —       | Identifier of channel settings (`t_NotificationEmailSettings`, `t_NotificationSIPSettings`, or `t_NotificationTelegramSettings`). If empty, the recipient is the direct webhook target. |
| `AlertChannelId`     | uniqueidentifier | No   | —       | `t_AlertChannels.Id`.                                                                                                                                                                   |
| `AlertEventId`       | uniqueidentifier | No   | —       | `t_AlertEvents.Id`.                                                                                                                                                                     |
| `AlertEventDetailId` | uniqueidentifier | No   | —       | `t_AlertEventDetails.Id`.                                                                                                                                                               |
| `RecipientId`        | uniqueidentifier | No   | —       | `t_Recipients.Id`.                                                                                                                                                                      |
| `IsActive`           | int              | Yes  | —       | Active status.                                                                                                                                                                          |

Business rules: Notifications are queued when events occur and sent when the channel configuration and recipient are active. Delivery errors are recorded in `t_Exceptions`.

**t\_NotificationEmailSettings — Email server settings**

| Field                | Type          | Null | Default | Description                    |
| -------------------- | ------------- | ---- | ------- | ------------------------------ |
| `ServerName`         | nvarchar(256) | No   | —       | SMTP server.                   |
| `TLS`                | bit           | No   | —       | Whether TLS is used.           |
| `Port`               | int           | No   | —       | Port.                          |
| `SenderName`         | nvarchar(500) | Yes  | —       | Sender name.                   |
| `UserName`           | nvarchar(500) | No   | —       | Username. **\[K]**             |
| `UserPassword`       | nvarchar(256) | No   | —       | Password (encrypted). **\[K]** |
| `AuthenticationType` | int           | No   | —       | Authentication type.           |

**t\_NotificationSIPSettings — SIP server settings**

| Field          | Type          | Null | Default | Description                                                   |
| -------------- | ------------- | ---- | ------- | ------------------------------------------------------------- |
| `ServerName`   | nvarchar(256) | No   | —       | SIP server.                                                   |
| `TLS`          | bit           | No   | —       | Whether TLS is used.                                          |
| `Port`         | int           | No   | —       | Port.                                                         |
| `UserName`     | nvarchar(500) | No   | —       | Username. **\[K]**                                            |
| `UserPassword` | nvarchar(256) | No   | —       | Password (encrypted). **\[K]**                                |
| `ProtocolType` | int           | No   | —       | Transport protocol (Code List `SIPSettingsProtocolTypeEnum`). |

**t\_NotificationTelegramSettings — Telegram bot settings**

| Field    | Type          | Null | Default | Description                          |
| -------- | ------------- | ---- | ------- | ------------------------------------ |
| `ApiKey` | nvarchar(500) | No   | —       | Bot access key (encrypted). **\[K]** |

***

#### 3.4 Catalog and Product Tree

**t\_TreeMaps — Catalog tree**

Stores the hierarchical product tree displayed in the portal (root → category → vendor → product). Each management channel has its own tree.

| Field                 | Type             | Null | Default | Description                                                   |
| --------------------- | ---------------- | ---- | ------- | ------------------------------------------------------------- |
| `ParentId`            | uniqueidentifier | No   | —       | `Id` of the parent node; empty GUID at root.                  |
| `TreeType`            | int              | No   | —       | Tree type (Code List `TreeTypeEnum`).                         |
| `NodeType`            | int              | No   | —       | Node type (Code List `NodeTypeEnum`).                         |
| `NodeGuid`            | uniqueidentifier | No   | —       | Catalog package identifier (`PackageId`) for product nodes.   |
| `DisplayText`         | nvarchar(256)    | No   | —       | Display name.                                                 |
| `OrderNum`            | int              | No   | —       | Display order.                                                |
| `IsLicenseFree`       | int              | No   | —       | Visible under Free license. **\[TS]**                         |
| `IsLicenseDemo`       | int              | No   | —       | Visible under Demo license. **\[TS]**                         |
| `IsLicenseStandart`   | int              | No   | —       | Visible under Standard license. **\[TS]**                     |
| `IsLicenseAdvanced`   | int              | No   | —       | Visible under Advanced license. **\[TS]**                     |
| `IsLicenseEnterprise` | int              | No   | —       | Visible under Enterprise license. **\[TS]**                   |
| `IsUpdate`            | int              | No   | —       | Included in the WSUS update tree.                             |
| `IsApplication`       | int              | No   | —       | Included in the SCCM application tree.                        |
| `IsIntuneUpdate`      | int              | No   | —       | Included in the Intune update tree.                           |
| `IsIntuneApplication` | int              | No   | —       | Included in the Intune application tree.                      |
| `IsActive`            | int              | No   | —       | Node is active.                                               |
| `IsFree`              | int              | Yes  | —       | Free catalog item.                                            |
| `MachineCount`        | int              | Yes  | —       | Number of devices where the product is detected (calculated). |
| `Size`                | nvarchar(20)     | Yes  | —       | Package size (text).                                          |
| `Required`            | int              | Yes  | —       | Number of devices requiring an update (calculated).           |
| `Installed`           | int              | Yes  | —       | Number of devices with the product installed (calculated).    |
| `MaxCVEScore`         | decimal(18,2)    | Yes  | —       | Highest related CVSS score (calculated).                      |
| `VendorDisplayText`   | nvarchar(256)    | Yes  | `'-'`   | Vendor name.                                                  |
| `SoftwareId`          | nvarchar(256)    | Yes  | —       | Catalog software identifier.                                  |

Business rules: The tree is regenerated during catalog synchronization and cannot be edited by users. Counters (`MachineCount`, `Required`, `Installed`, `MaxCVEScore`) are computed from inventory and vulnerability data by scheduled jobs. License flags are enforced on the server side (G-8).

**t\_CatalogMaps — Catalog matching definitions**

Defines how each catalog package is matched to installed software in inventory.

| Field                                            | Type             | Null | Default | Description                                         |
| ------------------------------------------------ | ---------------- | ---- | ------- | --------------------------------------------------- |
| `MapType`                                        | int              | No   | —       | Matching type (Code List `MapTypeEnum`).            |
| `PackageId`                                      | uniqueidentifier | No   | —       | Catalog package identifier.                         |
| `ProductName`                                    | nvarchar(256)    | No   | —       | Product name.                                       |
| `Title`                                          | nvarchar(256)    | No   | —       | Package title.                                      |
| `Version`                                        | nvarchar(20)     | No   | —       | Version.                                            |
| `SoftwareId`                                     | nvarchar(100)    | No   | —       | Catalog software identifier.                        |
| `Is32Bit`                                        | int              | No   | —       | 32-bit package.                                     |
| `ShadowTitle`                                    | nvarchar(256)    | No   | —       | Alternative title.                                  |
| `TitleInclude` / `TitleExlude`                   | nvarchar(256)    | Yes  | —       | Title matching patterns. **\[TS]**                  |
| `SQLDisplayNameInclude` / `SQLDisplayNameExlude` | nvarchar(256)    | No   | —       | Inventory display-name matching patterns. **\[TS]** |
| `SQLVersionInclude` / `SQLVersionExlude`         | nvarchar(256)    | No   | —       | Inventory version matching patterns. **\[TS]**      |
| `IsMetaDataOnly`                                 | int              | Yes  | —       | Metadata-only package (no binary payload).          |

**t\_ProductMapMachineCounts — Device counts by product**

| Field          | Type             | Null | Default | Description                  |
| -------------- | ---------------- | ---- | ------- | ---------------------------- |
| `ParentId`     | uniqueidentifier | No   | —       | Related `t_TreeMaps.Id`.     |
| `MachineCount` | int              | No   | —       | Device count.                |
| `SoftwareId`   | nvarchar(256)    | No   | —       | Catalog software identifier. |
| `FeatureType`  | int              | No   | —       | Management channel (G-9).    |

**t\_Files — File repository**

Stores catalog files, certificates, detection scripts, and custom application packages.

| Field              | Type           | Null | Default | Description                                  |
| ------------------ | -------------- | ---- | ------- | -------------------------------------------- |
| `FileName`         | nvarchar(50)   | No   | —       | Filename.                                    |
| `FileType`         | int            | No   | —       | File type (Code List `CatalogFileTypeEnum`). |
| `FileHash`         | nvarchar(256)  | No   | —       | SHA-256 hash.                                |
| `FileSize`         | bigint         | No   | —       | Size in bytes.                               |
| `PhysicalFilePath` | nvarchar(1024) | Yes  | —       | Physical disk path (large files).            |
| `FileByteArray`    | varbinary(max) | Yes  | —       | File content (small files). **\[TS]**        |

Business rules: File integrity is checked using `FileHash` before reading. `t_Apps.ApplicationFileId` → `t_Files.Id` (**physical FK**).

**t\_CustomProductFileMaps — Custom product file mapping**

| Field                  | Type             | Null | Default | Description                             |
| ---------------------- | ---------------- | ---- | ------- | --------------------------------------- |
| `SoftwareId`           | nvarchar(100)    | No   | —       | Catalog software identifier.            |
| `FileId`               | uniqueidentifier | No   | —       | `t_Files.Id` (logical FK).              |
| `UseApplication`       | int              | No   | 0       | Used for SCCM application publishing.   |
| `UseIntuneApplication` | int              | No   | 0       | Used for Intune application publishing. |
| `UseIntuneUpdate`      | int              | No   | 0       | Used for Intune update publishing.      |

**t\_SelectedProducts / t\_SelectedApps / t\_SelectedIntuneApps / t\_SelectedIntuneUpdates — Publishing selections**

All four tables share the same structure. Each stores catalog items selected by users for publication through the corresponding management channel.

| Field        | Type             | Null | Default | Description                  |
| ------------ | ---------------- | ---- | ------- | ---------------------------- |
| `PackageId`  | uniqueidentifier | No   | —       | Catalog package identifier.  |
| `SoftwareId` | nvarchar(256)    | No   | —       | Catalog software identifier. |

Business rules: The selection list is an input to the scheduled publishing job. Items removed from the catalog are automatically removed from the selection.

**t\_UpdateRenewIDTrackings — WSUS update identifier renewal tracking**

| Field              | Type             | Null | Default | Description                         |
| ------------------ | ---------------- | ---- | ------- | ----------------------------------- |
| `NewPackageID`     | uniqueidentifier | No   | —       | Newly published package identifier. |
| `OrginalPackageID` | uniqueidentifier | No   | —       | Previous package identifier.        |
| `SoftwareID`       | nvarchar(256)    | No   | —       | Catalog software identifier.        |

Business rules: When a new version of the same software is published, the preceding version is marked as "superseded" in WSUS. The mapping is tracked in this table.

***

#### 3.5 Application Package Definitions (SCCM / Intune)

This group contains deployment type definitions, detection rules, and installation parameters used for application publishing. In all tables, `AppType` identifies the record source: `1` catalog, `2` custom application injection, `3` custom application (Code List `AppTypeEnum`; default `1`).

**t\_Apps — Applications**

| Field                        | Type             | Null | Default | Description                                                                                                  |
| ---------------------------- | ---------------- | ---- | ------- | ------------------------------------------------------------------------------------------------------------ |
| `AppType`                    | int              | No   | 1       | Source type.                                                                                                 |
| `PackageId`                  | uniqueidentifier | No   | —       | Catalog package identifier.                                                                                  |
| `ApplicationTitle`           | nvarchar(256)    | No   | —       | Application name.                                                                                            |
| `ApplicationDescription`     | nvarchar(1048)   | Yes  | —       | Description.                                                                                                 |
| `ApplicationReleaseDate`     | nvarchar(20)     | No   | —       | Release date (text).                                                                                         |
| `ReleaseDate`                | datetime         | No   | —       | Release date.                                                                                                |
| `ApplicationVersion`         | nvarchar(50)     | No   | —       | Version.                                                                                                     |
| `ApplicationPublisher`       | nvarchar(50)     | No   | —       | Publisher.                                                                                                   |
| `ApplicationAutoInstall`     | int              | No   | 1       | Automatic installation in a task sequence.                                                                   |
| `ApplicationAutoDistribute`  | int              | No   | 1       | Automatic distribution to distribution points.                                                               |
| `ApplicationDownloadURL`     | nvarchar(1048)   | Yes  | —       | Download URL. **\[TS]**                                                                                      |
| `ApplicationDigest`          | nvarchar(256)    | Yes  | —       | Content digest.                                                                                              |
| `ApplicationFileName`        | nvarchar(256)    | Yes  | —       | Installer filename.                                                                                          |
| `IsAppSpecDeployed`          | int              | Yes  | —       | Application-specific deployment defined in SCCM.                                                             |
| `IsAppSpecIntuneDeployed`    | int              | Yes  | —       | Application-specific deployment defined in Intune.                                                           |
| `AppSpecPurpose`             | int              | Yes  | —       | SCCM deployment purpose (Code List `ApplicationDeployPurposeEnum`).                                          |
| `AppSpecIntunePurpose`       | int              | Yes  | —       | Intune deployment purpose.                                                                                   |
| `AppSpecIntuneNotifications` | int              | Yes  | —       | Intune end-user notification; inherits global setting when null (Code List `IntuneEndUserNotificationEnum`). |
| `IsFeatured`                 | bit              | No   | 0       | Featured application.                                                                                        |
| `Sha256`                     | nvarchar(256)    | Yes  | —       | Installer SHA-256 hash.                                                                                      |
| `ApplicationFileId`          | uniqueidentifier | Yes  | —       | `t_Files.Id` (FK `FK_t_Apps_t_Files`).                                                                       |
| `Size`                       | nvarchar(20)     | Yes  | —       | Size (text).                                                                                                 |
| `SoftwareId`                 | nvarchar(256)    | Yes  | —       | Catalog software identifier.                                                                                 |

**t\_AppDisplayInfos — Application display information**

| Field                        | Type           | Null | Default | Description       |
| ---------------------------- | -------------- | ---- | ------- | ----------------- |
| `AppType`                    | int            | No   | 1       | Source type.      |
| `DisplayInfoDefaultLanguage` | nvarchar(5)    | No   | `'en'`  | Default language. |
| `DisplayInfoLinkText`        | nvarchar(128)  | Yes  | —       | Link text.        |
| `DisplayInfoIcon`            | varbinary(max) | No   | —       | Icon.             |
| `DisplayInfoTitle`           | nvarchar(256)  | No   | —       | Title.            |
| `DisplayInfoDescription`     | nvarchar(1500) | Yes  | —       | Description.      |
| `DisplayInfoLanguage`        | nvarchar(5)    | No   | `'en'`  | Language.         |
| `DisplayInfoPrivacyUrl`      | nvarchar(128)  | Yes  | —       | Privacy URL.      |

**t\_Apps\_AppDisplayInfos\_Maps — Application ↔ display information**

| Field              | Type             | Null | Description              |
| ------------------ | ---------------- | ---- | ------------------------ |
| `AppType`          | int              | No   | Source type (default 1). |
| `AppId`            | uniqueidentifier | No   | `t_Apps.Id`.             |
| `AppDisplayInfoId` | uniqueidentifier | No   | `t_AppDisplayInfos.Id`.  |

**t\_AppDts — Deployment types**

| Field                                   | Type          | Null | Default        | Description                                                          |
| --------------------------------------- | ------------- | ---- | -------------- | -------------------------------------------------------------------- |
| `AppType`                               | int           | No   | 1              | Source type.                                                         |
| `DeploymentTypeTitle`                   | nvarchar(256) | No   | —              | Name.                                                                |
| `DeploymentTypeTechnology`              | nvarchar(256) | No   | —              | Technology (MSI, Script, etc.).                                      |
| `DeploymentTypeDescription`             | nvarchar(256) | Yes  | —              | Description.                                                         |
| `DeploymentTypeLanguage`                | nvarchar(5)   | No   | —              | Language.                                                            |
| `DeploymentTypeContentFolder`           | nvarchar(256) | Yes  | —              | Content folder.                                                      |
| `DeploymentTypeUninstallContentFolder`  | nvarchar(256) | Yes  | —              | Uninstall content folder.                                            |
| `DeploymentTypeUninstallContentSetting` | int           | No   | —              | Uninstall content setting (Code List `UninstallContentSettingEnum`). |
| `DeploymentTypeInstallCommandLine`      | nvarchar(256) | No   | —              | Installation command. **\[TS]**                                      |
| `DeploymentTypeUninstallCommandLine`    | nvarchar(256) | Yes  | —              | Uninstallation command. **\[TS]**                                    |
| `DeploymentTypeRepairCommandLine`       | nvarchar(256) | Yes  | —              | Repair command. **\[TS]**                                            |
| `DeploymentTypeDetectionScript`         | nvarchar(max) | No   | —              | Detection script. **\[TS]**                                          |
| `DeploymentTypeDtScriptJson`            | nvarchar(max) | No   | —              | Script metadata (JSON). **\[TS]**                                    |
| `DeploymentTypeDtIsCustomScript`        | int           | No   | 0              | Custom script.                                                       |
| `DeploymentTypeScriptLanguage`          | int           | No   | 0              | Script language (Code List `ScriptLanguageEnum`).                    |
| `DeploymentTypeProcessInfoName`         | nvarchar(256) | Yes  | —              | Process information name.                                            |
| `DeploymentTypeRequiresUserInteraction` | int           | No   | —              | Requires user interaction.                                           |
| `DeploymentTypeRequiresLogOn`           | int           | Yes  | —              | Requires an interactive session.                                     |
| `DeploymentTypeUserInteractionMode`     | int           | No   | —              | Window mode (Code List `UserInteractionModeEnum`).                   |
| `DeploymentTypePostExecutionBehavior`   | int           | No   | —              | Post-installation behavior (Code List `PostExecutionBehaviorEnum`).  |
| `DeploymentTypeExecutionContext`        | int           | No   | —              | Execution context (Code List `ExecutionContextEnum`).                |
| `DeploymentTypeMachineInstall`          | int           | No   | —              | Per-machine installation.                                            |
| `DeploymentTypeMaxExecuteTime`          | int           | No   | —              | Maximum execution time (minutes).                                    |
| `DeploymentTypeExecuteTime`             | int           | No   | 5              | Estimated execution time (minutes).                                  |
| `DeploymentTypeSlowContentHandlingMode` | int           | No   | —              | Slow network handling (Code List `ContentHandlingModeEnum`).         |
| `DeploymentTypeFallbackToUnprotectedDP` | int           | No   | —              | Fallback to an unprotected distribution point.                       |
| `DeploymentTypePinOnClient`             | int           | No   | 0              | Keep content in the client cache.                                    |
| `DeploymentTypeEnabled`                 | int           | No   | 1              | Enabled.                                                             |
| `ScriptResultComparisonValue`           | nvarchar(50)  | No   | `'NeedUpdate'` | Detection script comparison value.                                   |
| `ScriptRunAs32Bit`                      | bit           | No   | 0              | Run as 32-bit.                                                       |

**t\_Apps\_AppsDts\_Maps — Application ↔ deployment type**

| Field     | Type             | Null | Description              |
| --------- | ---------------- | ---- | ------------------------ |
| `AppType` | int              | No   | Source type (default 1). |
| `AppId`   | uniqueidentifier | No   | `t_Apps.Id`.             |
| `AppDtId` | uniqueidentifier | No   | `t_AppDts.Id`.           |

**t\_AppDtProcessInfos — Process information**

| Field         | Type          | Null | Description              |
| ------------- | ------------- | ---- | ------------------------ |
| `AppType`     | int           | No   | Source type (default 1). |
| `DisplayName` | nvarchar(256) | No   | Process display name.    |
| `Language`    | nvarchar(256) | No   | Language.                |

**t\_AppsDts\_AppDtProcessInfos\_Maps — Deployment type ↔ process information**

| Field            | Type             | Null | Description               |
| ---------------- | ---------------- | ---- | ------------------------- |
| `AppType`        | int              | No   | Source type (default 1).  |
| `AppDtId`        | uniqueidentifier | No   | `t_AppDts.Id`.            |
| `AppProcessInfo` | uniqueidentifier | No   | `t_AppDtProcessInfos.Id`. |

**t\_AppRules — Requirement / detection rules**

| Field                   | Type          | Null | Description                                                     |
| ----------------------- | ------------- | ---- | --------------------------------------------------------------- |
| `AppType`               | int           | No   | Source type (default 1).                                        |
| `RuleName`              | nvarchar(256) | No   | Rule name.                                                      |
| `NoncomplianceSeverity` | int           | No   | Noncompliance severity (Code List `NoncomplianceSeverityEnum`). |
| `ExpressionOperator`    | int           | No   | Logical operator (Code List `ExpressionOperatorEnum`).          |

**t\_AppRulesExpressions — Rule expressions**

| Field            | Type          | Null | Description              |
| ---------------- | ------------- | ---- | ------------------------ |
| `AppType`        | int           | No   | Source type (default 1). |
| `RuleExpression` | nvarchar(256) | No   | Expression. **\[TS]**    |

**t\_AppsRules\_AppRuleExpressions\_Maps — Rule ↔ expression**

| Field                 | Type             | Null | Description                 |
| --------------------- | ---------------- | ---- | --------------------------- |
| `AppType`             | int              | No   | Source type (default 1).    |
| `AppRuleId`           | uniqueidentifier | No   | `t_AppRules.Id`.            |
| `AppRuleExpressionId` | uniqueidentifier | No   | `t_AppRulesExpressions.Id`. |

**t\_AppsDt\_AppRules\_Maps — Deployment type ↔ rule**

| Field       | Type             | Null | Description              |
| ----------- | ---------------- | ---- | ------------------------ |
| `AppType`   | int              | No   | Source type (default 1). |
| `AppDtId`   | uniqueidentifier | No   | `t_AppDts.Id`.           |
| `AppRuleId` | uniqueidentifier | No   | `t_AppRules.Id`.         |

**t\_AppSilentInstallParameters — Silent installation parameters**

| Field         | Type          | Null | Description              |
| ------------- | ------------- | ---- | ------------------------ |
| `AppType`     | int           | No   | Source type (default 1). |
| `Name`        | nvarchar(256) | No   | Parameter. **\[TS]**     |
| `Description` | nvarchar(255) | Yes  | Description.             |

**t\_AppDts\_InstallParameter\_Maps — Deployment type ↔ parameter**

| Field                          | Type             | Null | Description                        |
| ------------------------------ | ---------------- | ---- | ---------------------------------- |
| `AppType`                      | int              | No   | Source type (default 1).           |
| `AppDtId`                      | uniqueidentifier | No   | `t_AppDts.Id`.                     |
| `AppsSlientInstallParameterId` | uniqueidentifier | No   | `t_AppSilentInstallParameters.Id`. |

**t\_AppSlientInstallParametersReturnCodes — Return codes**

| Field                   | Type             | Null | Description                            |
| ----------------------- | ---------------- | ---- | -------------------------------------- |
| `AppType`               | int              | No   | Source type (default 1).               |
| `AppsSilentParameterId` | uniqueidentifier | No   | `t_AppSilentInstallParameters.Id`.     |
| `Code`                  | int              | No   | Exit code.                             |
| `Class`                 | int              | No   | Class (Code List `ExitCodeClassEnum`). |

Business rules (group-wide): Catalog records (`AppType = 1`) are regenerated during synchronization and cannot be edited by users. Custom application records can be managed by users. During application publishing, deployment type, rule, parameter, and return code records are assembled into objects in the target system (SCCM or Intune).

***

#### 3.6 Publishing and Deployment Tracking

**t\_PublishLogs — Publishing jobs**

Each publishing run is tracked by a ticket (`TicketId`).

| Field            | Type             | Null | Default | Description                                                               |
| ---------------- | ---------------- | ---- | ------- | ------------------------------------------------------------------------- |
| `TicketId`       | uniqueidentifier | No   | —       | Publishing job identifier.                                                |
| `LastStatus`     | int              | No   | —       | Job status (Code List `PublishStatusEnum`).                               |
| `FeatureType`    | int              | No   | —       | Management channel (`1` update, `2` application, `3` Intune application). |
| `CatalogVersion` | nvarchar(15)     | No   | —       | Catalog version used.                                                     |
| `ClientVersion`  | nvarchar(10)     | No   | —       | Software version.                                                         |

**t\_PublishDetailLogs — Publishing details**

| Field         | Type             | Null | Default | Description                                        |
| ------------- | ---------------- | ---- | ------- | -------------------------------------------------- |
| `TicketId`    | uniqueidentifier | No   | —       | `t_PublishLogs.TicketId` (logical FK).             |
| `LastStatus`  | int              | No   | —       | Item status (Code List `PublishDetailStatusEnum`). |
| `PackageId`   | uniqueidentifier | No   | —       | Catalog package identifier.                        |
| `SoftwareId`  | nvarchar(256)    | No   | —       | Catalog software identifier.                       |
| `ProductName` | nvarchar(256)    | No   | —       | Product name.                                      |
| `IsCustomApp` | int              | No   | —       | Custom application.                                |
| `ObjectId`    | nvarchar(256)    | No   | —       | Object identifier created in the target system.    |
| `Message`     | nvarchar(max)    | Yes  | —       | Result message / error.                            |

**t\_DeployDetailLogs — Deployment details**

Uses the same fields as `t_PublishDetailLogs` and records the outcome of the deployment step to the target collection or group after publishing.

Business rules (group-wide): A publishing job starts as `Pending` and becomes `Finished` when all items complete. At the item level, `AlreadyPublished` / `AlreadyDeployed` indicates an existing target object when overwrite is disabled. Failed items move to `WasError`; remaining items become `CancellationTokenRequest` when cancellation is requested.

**t\_SCCMTrackingFiles — SCCM / WSUS object tracking**

Stores target-system references and version numbers for each published package.

| Field                  | Type             | Null | Default | Description                             |
| ---------------------- | ---------------- | ---- | ------- | --------------------------------------- |
| `DisplayName`          | nvarchar(256)    | No   | —       | Display name.                           |
| `SoftwareId`           | nvarchar(100)    | No   | —       | Catalog software identifier.            |
| `PackageId`            | uniqueidentifier | No   | —       | Catalog package identifier.             |
| `SCCMPackageId`        | nvarchar(9)      | No   | —       | SCCM package identifier.                |
| `ScopeId`              | nvarchar(50)     | No   | —       | SCCM scope identifier.                  |
| `ApplicationId`        | nvarchar(50)     | No   | —       | SCCM application identifier.            |
| `RevisionNumberOnE2P`  | int              | No   | 0       | Revision on the Easy2Patch side.        |
| `RevisionNumberOnWsus` | int              | No   | 0       | Revision on the WSUS side.              |
| `IsUpdate`             | int              | No   | 0       | Update (not application).               |
| `IsExpired`            | int              | No   | 0       | Expired.                                |
| `IsEnabled`            | int              | No   | 0       | Enabled.                                |
| `DateLastModified`     | nvarchar(50)     | Yes  | `'0'`   | Last modification in the target system. |

**t\_IntuneTrackingFiles — Intune object tracking**

| Field                       | Type             | Null | Default | Description                           |
| --------------------------- | ---------------- | ---- | ------- | ------------------------------------- |
| `PackageId`                 | uniqueidentifier | No   | —       | Catalog package identifier.           |
| `IntuneAppObjectId`         | uniqueidentifier | No   | —       | Intune application object identifier. |
| `IntuneContentFileObjectId` | uniqueidentifier | No   | —       | Intune content file identifier.       |
| `SoftwareId`                | nvarchar(100)    | No   | —       | Catalog software identifier.          |
| `IsUpdateTree`              | int              | No   | 0       | Published from the update tree.       |
| `LastModified`              | nvarchar(28)     | No   | —       | Last modification on the Intune side. |

***

#### 3.7 Inventory and Statistics

These tables store summary data collected from external sources (WSUS, SCCM, Intune) through scheduled jobs and serve as reporting data sources.

**t\_SystemInfos — Managed devices**

| Field              | Type          | Null | Description                           |
| ------------------ | ------------- | ---- | ------------------------------------- |
| `MachineId`        | nvarchar(37)  | No   | Device identifier (source-dependent). |
| `MachineName`      | nvarchar(500) | No   | Device name. **\[KV]**                |
| `ClientVersion`    | nvarchar(25)  | Yes  | Management client version.            |
| `OSDescription`    | nvarchar(50)  | Yes  | Operating system.                     |
| `LastSyncDateTime` | datetime      | Yes  | Last synchronization time.            |
| `FeatureType`      | int           | No   | Management channel (G-9).             |

**t\_UpdateInfos — Update definitions**

| Field         | Type          | Null | Description               |
| ------------- | ------------- | ---- | ------------------------- |
| `UpdateId`    | nvarchar(37)  | No   | Update identifier.        |
| `Title`       | nvarchar(256) | No   | Title.                    |
| `Description` | nvarchar(500) | Yes  | Description.              |
| `FeatureType` | int           | No   | Management channel (G-9). |

**t\_ClientUpdateMaps — Device ↔ update status**

| Field                 | Type         | Null | Description                                          |
| --------------------- | ------------ | ---- | ---------------------------------------------------- |
| `MachineId`           | nvarchar(37) | No   | `t_SystemInfos.MachineId` (logical).                 |
| `UpdateId`            | nvarchar(37) | No   | `t_UpdateInfos.UpdateId` (logical).                  |
| `InstallStatus`       | int          | No   | Installation status (Code List `InstallStatusEnum`). |
| `LastStatusCheckTime` | datetime     | Yes  | Last status check.                                   |
| `FeatureType`         | int          | No   | Management channel (G-9).                            |

**t\_OSManagedInfos — Management summary by operating system**

| Field         | Type          | Null | Description                               |
| ------------- | ------------- | ---- | ----------------------------------------- |
| `OS`          | nvarchar(256) | No   | Operating system name.                    |
| `Total`       | int           | No   | Total devices.                            |
| `Managed`     | int           | No   | Managed devices.                          |
| `UnManaged`   | int           | No   | Unmanaged devices.                        |
| `OSType`      | int           | No   | Server / client (Code List `OSTypeEnum`). |
| `FeatureType` | int           | No   | Management channel (G-9).                 |

**t\_SoftwareInventorySccm — SCCM software inventory**

| Field         | Type          | Null | Description               |
| ------------- | ------------- | ---- | ------------------------- |
| `ResourceId`  | int           | No   | SCCM resource identifier. |
| `DisplayName` | nvarchar(500) | Yes  | Software name.            |
| `Version`     | nvarchar(25)  | Yes  | Version.                  |
| `Publisher`   | nvarchar(256) | Yes  | Publisher.                |

**t\_SoftwareInventoryIntune — Intune software inventory**

| Field         | Type             | Null | Description               |
| ------------- | ---------------- | ---- | ------------------------- |
| `DeviceId`    | uniqueidentifier | No   | Intune device identifier. |
| `AppId`       | nvarchar(256)    | No   | Application identifier.   |
| `DisplayName` | nvarchar(500)    | No   | Software name.            |
| `Version`     | nvarchar(25)     | Yes  | Version.                  |
| `Publisher`   | nvarchar(256)    | Yes  | Publisher.                |
| `SizeInByte`  | int              | No   | Size.                     |
| `DeviceCount` | int              | No   | Device count.             |
| `Platform`    | nvarchar(256)    | Yes  | Platform.                 |

Business rules (group-wide): Data is refreshed in full, with the previous snapshot logically deleted. Inventory entries are matched against `t_CatalogMaps` patterns to calculate `t_TreeMaps` counters.

***

#### 3.8 Vulnerability (CVE) Data

**t\_DefenderCVEItems — CVE records**

| Field         | Type          | Null | Default | Description                          |
| ------------- | ------------- | ---- | ------- | ------------------------------------ |
| `CveId`       | nvarchar(20)  | No   | —       | CVE identifier (`CVE-YYYY-NNNNNNN`). |
| `Description` | nvarchar(max) | No   | —       | Description.                         |
| `PublishedOn` | datetime      | Yes  | —       | Publication date.                    |
| `UpdatedOn`   | datetime      | Yes  | —       | Last update date.                    |
| `CvssV3`      | decimal(18,2) | No   | 0       | CVSS v3 score.                       |

**t\_DefenderSoftwares — Software from vulnerability data sources**

| Field                       | Type          | Null | Default | Description                  |
| --------------------------- | ------------- | ---- | ------- | ---------------------------- |
| `SoftwareId`                | nvarchar(100) | No   | —       | Catalog software identifier. |
| `DefendersSoftwareUniqName` | nvarchar(500) | No   | —       | Unique name in source.       |
| `DefenderSoftwareName`      | nvarchar(500) | No   | —       | Display name in source.      |
| `MaxCVEScore`               | decimal(18,2) | No   | 0       | Highest CVSS score.          |

**t\_DefenderSoftwareCVEMaps — Software ↔ CVE**

| Field                | Type             | Null | Description                            |
| -------------------- | ---------------- | ---- | -------------------------------------- |
| `SoftwareId`         | nvarchar(100)    | No   | Catalog software identifier.           |
| `CveId`              | nvarchar(20)     | No   | CVE identifier.                        |
| `DefenderCVEItemId`  | uniqueidentifier | No   | `t_DefenderCVEItems.Id` (logical FK).  |
| `DefenderSoftwareId` | uniqueidentifier | No   | `t_DefenderSoftwares.Id` (logical FK). |

**t\_DefenderExcludedProducts — Products excluded from vulnerability scanning**

| Field         | Type          | Null | Description                  |
| ------------- | ------------- | ---- | ---------------------------- |
| `SoftwareId`  | nvarchar(100) | No   | Catalog software identifier. |
| `FeatureType` | int           | No   | Management channel (G-9).    |

**t\_DefenderProductCheckedByDefenders — Scan result summary**

| Field         | Type          | Null | Description                  |
| ------------- | ------------- | ---- | ---------------------------- |
| `SoftwareId`  | nvarchar(100) | No   | Catalog software identifier. |
| `MaxCveScore` | decimal(18,2) | No   | Highest CVSS score.          |

Business rules (group-wide): CVE data is retrieved periodically from the source. Excluded products are omitted from scoring. The highest score per product is reflected in `t_TreeMaps.MaxCVEScore`. CVE details are accessible only to roles with the appropriate permissions.

***

#### 3.9 Logging and Reporting

**t\_Exceptions — Application error log**

| Field           | Type           | Null | Default | Description                                   |
| --------------- | -------------- | ---- | ------- | --------------------------------------------- |
| `Component`     | nvarchar(256)  | Yes  | —       | Component (Code List `LogComponentTypeEnum`). |
| `Description`   | nvarchar(3000) | No   | —       | Error description.                            |
| `EventId`       | int            | No   | —       | Event identifier.                             |
| `ExceptionType` | int            | No   | 0       | Error type.                                   |

**t\_ReportFiles — Report templates**

| Field        | Type             | Null | Default | Description                                                          |
| ------------ | ---------------- | ---- | ------- | -------------------------------------------------------------------- |
| `ReportGuid` | uniqueidentifier | No   | —       | Report definition identifier (mapped to Code List `ReportTypeEnum`). |
| `ReportByte` | varbinary(max)   | No   | —       | Report template content. **\[TS]**                                   |
| `IsEnabled`  | int              | No   | 1       | Enabled.                                                             |

***

### 4. Physical Constraints

#### 4.1 Primary Keys

All `t_` tables have a clustered primary key on the `Id` column.

#### 4.2 Foreign Keys

| Constraint                                   | Source                             | Target                         | Behavior  |
| -------------------------------------------- | ---------------------------------- | ------------------------------ | --------- |
| `FK_t_Apps_t_Files`                          | `t_Apps.ApplicationFileId`         | `t_Files.Id`                   | NO ACTION |
| `FK_t_ProcessName_t_ProcessConflictSettings` | `t_ProcessNames.ProcessSettingsId` | `t_ProcessConflictSettings.Id` | NO ACTION |

All other relationships are logical (G-3).

#### 4.3 Default Value Constraints

Default values are listed under the "Default" column of each table. Fields without a specified value have no default.

#### 4.4 Uniqueness and Check Constraints

There are no UNIQUE or CHECK constraints defined in the database. The following uniqueness rules are enforced at the application layer:

| Table                | Unique field(s)                                     |
| -------------------- | --------------------------------------------------- |
| `t_Users`            | `ObjectGuid`; `SamAccountName` + `DomainObjectGuid` |
| `t_Groups`           | `ObjectGuid`                                        |
| `t_RoleGroupMaps`    | `ObjectId` + `RoleId`                               |
| `t_Settings`         | `SettingsName` (active record)                      |
| `t_SharedCaches`     | `KeyName`                                           |
| `t_TreeMaps`         | `TreeType` + `NodeGuid`                             |
| `t_CatalogMaps`      | `MapType` + `PackageId`                             |
| `t_DefenderCVEItems` | `CveId`                                             |
| `t_Selected*`        | `PackageId`                                         |

#### 4.5 Column Descriptions (Extended Properties)

The `MS_Description` extended property is defined on `AppType` columns and on `t_Alerts.NotificationId`, `t_Alerts.AlertChannelId`, and `t_PublishLogs.FeatureType`. Its values are consistent with the descriptions in this document.

***

### 5. Background Job Schema (`HangFire`)

Background jobs are managed using the open-source Hangfire library. The library provisions the `HangFire` schema and the following tables within the Easy2Patch database using its own schema versioning: `Schema`, `Job`, `JobParameter`, `JobQueue`, `State`, `Server`, `Set`, `Hash`, `List`, `Counter`, `AggregatedCounter`. Table definitions are maintained by the library and are not modified by Easy2Patch. Easy2Patch reads only `HangFire.Set` to list recurring job definitions.

***

### 6. Read-only External Data Sources

For the reporting and inventory paths described here, Easy2Patch reads the following Microsoft-owned database objects. This database-query access is distinct from management operations conducted through supported Microsoft APIs. The objects and access paths shown are a technical reference, not a blanket claim that the product performs no changes in connected services.

#### 6.1 WSUS — SUSDB

| Object                                                                                          | Purpose                               |
| ----------------------------------------------------------------------------------------------- | ------------------------------------- |
| `tbUpdate`, `tbRevision`, `tbProperty`, `tbLocalizedProperty`, `tbLocalizedPropertyForRevision` | Published update metadata and titles. |
| `tbCategory`, `tbFlattenedRevisionInCategory`                                                   | Product / category tree.              |
| `tbComputerTarget`, `tbComputerTargetDetail`                                                    | Managed devices and client versions.  |
| `vwMinimalUpdate`                                                                               | Update summary view.                  |

#### 6.2 Configuration Manager (SCCM) — Site Database

| Object                                                                                                                      | Usage                                                               |
| --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `v_R_System`, `v_SystemResourceList`, `v_AgentDiscoveries`, `v_CH_ClientSummary`                                            | Device list, resource identifiers, client health.                   |
| `v_Collection`, `v_FullCollectionMembership`                                                                                | Collections (deployment targets) and memberships.                   |
| `v_Package`                                                                                                                 | Packages.                                                           |
| `v_UpdateInfo`, `v_Update_ComplianceStatus`, `v_UpdateScanStatus`, `v_CICategoryInfo_All`, `v_CategoryInfo`, `v_StateNames` | Update definitions, device compliance and scan status, state names. |
| `v_GS_ADD_REMOVE_PROGRAMS`, `v_GS_ADD_REMOVE_PROGRAMS_64`, `v_GS_INSTALLED_SOFTWARE`                                        | Software inventory.                                                 |
| `v_GS_COMPUTER_SYSTEM`, `v_GS_OPERATING_SYSTEM`, `v_GS_PROCESSOR`, `v_GS_LOGICAL_DISK`                                      | Hardware inventory.                                                 |
| `v_Applications`, `v_ConfigurationItems`, `v_CIAssignment`, `v_CIAssignmentToCI`                                            | Tracking published applications and assignments.                    |

Rows read from these views are mapped to in-memory projections named `vManagedClient`, `vSystemInfo`, `vUpdateInfo`, `vClientUpdateMap`, and `vSoftwareInventory`. These projections are not database objects.

Management actions in SCCM and WSUS (such as package publishing, deployment creation, and update approval) use supported product management interfaces rather than direct modifications to the listed reporting views. The customer manages access and service permissions in its environment.

#### 6.3 Microsoft Intune

Intune data is read and written through the Microsoft Graph API; direct access to a local Intune database is not used. Retrieved objects include managed devices, discovered applications, Win32 application objects, and assignment groups.

***

### 7. Web Client Storage

The web interface uses browser `localStorage` for session-related information, cached interface state, and preferences, as illustrated below. Primary operational datasets are maintained by the application backend in the customer-managed environment. Browser storage is not equivalent to server-side database storage; data returned to a browser or exchanged with configured external integrations may still be processed outside the database server. The table describes keys observed in the referenced release and is not a guarantee that browsers, extensions, proxies, or integrations retain no additional information.

| Key                                                                       | Content                                                                                                                             | Retention                                                               |
| ------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| `e2p_token`                                                               | Session access token. **\[K]**                                                                                                      | Session duration (configurable, default 24 hours); removed at sign-out. |
| `e2p_refresh_token`                                                       | Refresh token. **\[K]**                                                                                                             | Session duration; removed at sign-out.                                  |
| `e2p_user_name`                                                           | Signed-in username. **\[KV]**                                                                                                       | Removed at sign-out.                                                    |
| `loginTime`                                                               | Sign-in time.                                                                                                                       | Removed at sign-out.                                                    |
| `shouldLogOut`                                                            | Forced sign-out flag.                                                                                                               | Temporary.                                                              |
| `licenseType`, `localLicenseType`                                         | Cached license level for interface visibility. Authorization is enforced on the server; modifying this value does not grant access. | Removed at sign-out.                                                    |
| `IsIntuneStandalone`, `IsWsusStandalone`                                  | Enabled management-channel modes.                                                                                                   | Removed at sign-out.                                                    |
| `e2p_lang`, `boiler_plate_lang`                                           | Interface language.                                                                                                                 | Persistent.                                                             |
| `e2p_settingsMenu`, `tracker_refresh_switch`, `e2p_software_action_panel` | Menu, automatic refresh, and panel preferences.                                                                                     | Persistent.                                                             |
| `e2p_log`, `unreadLogCount`                                               | Most recent notifications displayed in the interface and unread count.                                                              | Removed at sign-out.                                                    |

***

### 8. Code Lists

The value sets for integer-coded fields are listed below. Unless otherwise specified, the first member has value `0` and subsequent values increment sequentially.

| List                                  | Values                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `IsDeletedEnums`                      | 0 NotDeleted, 1 Deleted                                                                                                                                                                                                                                                                                                                                                                                                            |
| `FeatureTypeEnum`                     | 0 None, 1 Update (WSUS), 2 Application (SCCM), 3 IntuneUpdate, 4 IntuneApplication                                                                                                                                                                                                                                                                                                                                                 |
| `LicenseTypeEnum`                     | 1 Free, 2 Demo, 3 Standard, 4 Advanced, 5 Enterprise                                                                                                                                                                                                                                                                                                                                                                               |
| `UserType`                            | 0 DbUser, 1 ADUser, 2 AzureADUser, 3 ADUserTemp                                                                                                                                                                                                                                                                                                                                                                                    |
| `MemberTypeEnum`                      | 1 User, 2 AdUser, 3 AdGroup, 4 AAdUser, 5 AAdGroup                                                                                                                                                                                                                                                                                                                                                                                 |
| `LoginTypeEnum`                       | 0 DbNone, 1 DbLogin, 2 AdLogin, 3 AzureADLogin, 4 StaticUserLogin                                                                                                                                                                                                                                                                                                                                                                  |
| `LoginStatusEnum`                     | 0 LoginSuccess, 1 LoginFailed, 2 Unauthorized, 3 NotFoundUserOrMemberGroup                                                                                                                                                                                                                                                                                                                                                         |
| `PortalMfaOptionScopeEnum`            | 10002 Authenticator                                                                                                                                                                                                                                                                                                                                                                                                                |
| `PortalMfaStatusScopeEnum`            | 9000 Continues, 9001 Successful, 9002 TrialExpired, 9003 Cancelled, 9004 ActiveSession                                                                                                                                                                                                                                                                                                                                             |
| `NotificationTypeEnum`                | 1 Email, 2 SIP, 3 Telegram, 4 WebHook                                                                                                                                                                                                                                                                                                                                                                                              |
| `SIPSettingsProtocolTypeEnum`         | 1 TCP, 2 UDP                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `ProxySettingsAuthenticationTypeEnum` | 1 Anonymous, 2 Authenticated                                                                                                                                                                                                                                                                                                                                                                                                       |
| `AlertTypeEnum`                       | 11 NewCatalogDownloadEvent, 12 AnErrorOccuredWhenDownloadCatalog, 13 AllCatalogDownloadEvent, 21 NewUpdatePublishedSuccessfully, 22 FailedToPublishOneOrMoreUpdates, 23 ApplicationPublishInfoEvent, 24 FailedToDefenderDetected, 25 SuccessfulDefenderDetect                                                                                                                                                                      |
| `TreeTypeEnum`                        | 1 Tree (WSUS update), 2 TreeApp (SCCM application), 3 TreeCustomApp, 4 TreeUpdate (Intune update), 5 TreeCustomSettings                                                                                                                                                                                                                                                                                                            |
| `NodeTypeEnum`                        | 0 Root, 1 Category, 2 Vendor, 3 Product                                                                                                                                                                                                                                                                                                                                                                                            |
| `MapTypeEnum`                         | 1 Map, 2 MapApp, 3 MapCustomApp, 4 MapSCCMPackageId, 5 MapUpdate, 6 MapCustomSettings                                                                                                                                                                                                                                                                                                                                              |
| `AppTypeEnum`                         | 1 Catalog, 2 CustomAppInjection, 3 CustomApp                                                                                                                                                                                                                                                                                                                                                                                       |
| `CatalogFileTypeEnum`                 | 1 ContentCertificates, 2 V2, 3 V3, 4 Easy2Patch, 5 CustomProductSettingsFile, 6 DtScript, 7 CustomApplicationFile                                                                                                                                                                                                                                                                                                                  |
| `ApplicationDeployPurposeEnum`        | 0 Required, 2 Available                                                                                                                                                                                                                                                                                                                                                                                                            |
| `IntuneEndUserNotificationEnum`       | 0 ShowAll, 1 ShowReboot, 2 HideAll                                                                                                                                                                                                                                                                                                                                                                                                 |
| `PublishStatusEnum`                   | 1 Pending, 2 Finished                                                                                                                                                                                                                                                                                                                                                                                                              |
| `PublishDetailStatusEnum`             | 0 Pending, 1 Published, 2 AlreadyPublished, 3 Deployed, 4 AlreadyDeployed, 5 CancellationTokenRequest, 6 WasError                                                                                                                                                                                                                                                                                                                  |
| `PublishTypeEnum`                     | 0 Application, 1 Update, 2 Intune                                                                                                                                                                                                                                                                                                                                                                                                  |
| `PublishOptions`                      | 1 Overwrite, 2 NotOverwrite                                                                                                                                                                                                                                                                                                                                                                                                        |
| `InstallStatusEnum`                   | 0 Installed, 1 NotInstalled                                                                                                                                                                                                                                                                                                                                                                                                        |
| `OSTypeEnum`                          | 0 Server, 1 Client                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `ScheduleTypeEnum`                    | 1 Daily, 2 Weekly, 3 At, 4 Monthly, 5 Hourly                                                                                                                                                                                                                                                                                                                                                                                       |
| `ScheduleType2Enum`                   | 1 Service, 2 SetOSManagedInfo, 3 SetSoftwareInventoryInfo, 4 SetSystemInfos, 5 SetUpdateInfos, 6 SetClientUpdateMap, 7 SetUpdateStatistic, 8 Test                                                                                                                                                                                                                                                                                  |
| `ProcessConflictCustomTypeEnum`       | 1 Custom, 2 Catalog                                                                                                                                                                                                                                                                                                                                                                                                                |
| `ProcessConflictBehaviorTypeEnum`     | 0 Kill, 1 Confirm, 2 Disable                                                                                                                                                                                                                                                                                                                                                                                                       |
| `LogTypeEnum`                         | 1 Information, 2 Verbose                                                                                                                                                                                                                                                                                                                                                                                                           |
| `LogComponentTypeEnum`                | 0 None, 1 Api, 2 Application, 3 IntuneApplication, 4 Update, 5 EFLog, 6 Defender                                                                                                                                                                                                                                                                                                                                                   |
| `ReportTypeEnum`                      | 1 SoftwareInventory, 2 PublishDeployAudit, 3 ExecutivePosture, 4 CveRiskExposure, 5 PatchCompliance, 6 IntuneManagedDevices, 7 IntuneVersionCompliance, 8 IntuneAppInstallSummary, 9 WsusPatchCompliance, 10 WsusComputerReportingHealth, 11 WsusCatalogHealth, 12 SccmDeviceUpdateDetail, 13 SccmSoftwareGovernance, 14 SccmHardwareInventory, 15 SccmUpdateStateDictionary, 16 CrossSourceValidation, 17 IntuneSoftwareInventory |
| `ArchitectureEnum`                    | 0 Any, 1 X86, 2 X64                                                                                                                                                                                                                                                                                                                                                                                                                |
| `ExecutableFileTypeEnum`              | 0 Unknown, 1 Msi, 2 Exe, 3 Msp                                                                                                                                                                                                                                                                                                                                                                                                     |
| `ComplianceStateEnum`                 | 0 Noncompliant, 1 Unknown, 2 Compliant, 3 ConfigManager                                                                                                                                                                                                                                                                                                                                                                            |
| `ScriptLanguageEnum`                  | 0 PowerShell, 1 VBScript, 2 JavaScript                                                                                                                                                                                                                                                                                                                                                                                             |
| `ExecutionContextEnum`                | 0 Any, 1 User, 2 System                                                                                                                                                                                                                                                                                                                                                                                                            |
| `UserInteractionModeEnum`             | 0 Normal, 1 Minimized, 2 Maximized, 3 Hidden                                                                                                                                                                                                                                                                                                                                                                                       |
| `PostExecutionBehaviorEnum`           | 0 BasedOnExitCode, 1 NoAction, 2 ProgramReboot, 3 ForceReboot, 4 ForceLogOff                                                                                                                                                                                                                                                                                                                                                       |
| `UninstallContentSettingEnum`         | 0 SameAsInstall, 1 NoneRequired, 2 Different                                                                                                                                                                                                                                                                                                                                                                                       |
| `ContentHandlingModeEnum`             | 0 DoNothing, 1 Download, 2 DownloadContentForStreaming                                                                                                                                                                                                                                                                                                                                                                             |
| `NoncomplianceSeverityEnum`           | 0 None, 1 Informational, 2 Warning, 3 Critical, 4 Other                                                                                                                                                                                                                                                                                                                                                                            |
| `ExitCodeClassEnum`                   | 0 Failure, 1 Success, 2 FastRetry, 3 HardReboot, 4 SoftReboot                                                                                                                                                                                                                                                                                                                                                                      |
| `ExpressionOperatorEnum`              | 1 And, 2 ExcludesAll, 3 SubsetOf, 4 SetEquals, 5 NoneOf, 6 OneOf, 7 AllOf, 8 NotContains, 9 Contains, 10 EndsWith, 11 NotBeginsWith, 12 NotEndsWith, 13 LessEquals, 14 Or, 15 Other, 16 BeginsWith, 17 NotEquals, 18 GreaterThan, 19 IsEquals, 20 Between, 21 NotBetween, 22 GreaterEquals, 23 LessThan                                                                                                                            |
| `ComparisonOperatorEnum`              | 0 Equal, 1 GreaterThan, 2 GreaterThanOrEqualTo, 3 LessThan, 4 LessThanOrEqualTo, 5 NotEqualTo, 6 NotConfigured                                                                                                                                                                                                                                                                                                                     |
| `RequirementMethodOptionEnum`         | 0 None, 1 Boolean, 2 DateAndTime, 3 FloatingPoint, 4 Integer, 5 String, 6 Version, 7 NotConfigured                                                                                                                                                                                                                                                                                                                                 |

***

### 9. Relationship Summary

```
t_Users ──< t_RoleGroupMaps >── t_Roles
t_Groups ──< t_RoleGroupMaps
t_Users ──< t_UserLoginLogs
t_Users ──< t_PortalMfaValidations
t_Users ──< t_MfaKeys

t_AlertEvents ──< t_AlertEventDetails
t_Alerts >── t_AlertChannels
t_Alerts >── t_AlertEvents
t_Alerts >── t_AlertEventDetails
t_Alerts >── t_Recipients
t_Alerts >── t_Notification{Email|SIP|Telegram}Settings   (NotificationId)

t_TreeMaps (ParentId → t_TreeMaps.Id, hierarchy)
t_TreeMaps ──< t_ProductMapMachineCounts
t_TreeMaps.NodeGuid = t_CatalogMaps.PackageId = t_Apps.PackageId = t_Selected*.PackageId

t_Files ──< t_Apps (FK)            t_Files ──< t_CustomProductFileMaps
t_Apps ──< t_Apps_AppDisplayInfos_Maps >── t_AppDisplayInfos
t_Apps ──< t_Apps_AppsDts_Maps >── t_AppDts
t_AppDts ──< t_AppsDts_AppDtProcessInfos_Maps >── t_AppDtProcessInfos
t_AppDts ──< t_AppsDt_AppRules_Maps >── t_AppRules
t_AppRules ──< t_AppsRules_AppRuleExpressions_Maps >── t_AppRulesExpressions
t_AppDts ──< t_AppDts_InstallParameter_Maps >── t_AppSilentInstallParameters
t_AppSilentInstallParameters ──< t_AppSlientInstallParametersReturnCodes

t_PublishLogs (TicketId) ──< t_PublishDetailLogs
t_PublishLogs (TicketId) ──< t_DeployDetailLogs

t_SystemInfos (MachineId) ──< t_ClientUpdateMaps >── t_UpdateInfos (UpdateId)

t_DefenderSoftwares ──< t_DefenderSoftwareCVEMaps >── t_DefenderCVEItems

t_ProcessConflictSettings ──< t_ProcessNames (FK)
t_Settings ──< t_SettingBackups (SettingsGuid)
```
