---
updatedAt: 2026-06-04T21:19:04.000Z
agentTools:
  projectIndex: https://docs.query.ai/llms.txt
---

# Database

<code>database</code>

The database object is used for databases which are typically datastore services that contain an organized collection of structured and unstructured data or a types of data.

## Attributes

<table>
    <tr><th>Caption</th><th>Name</th><th>Type</th><th>Description</th></tr>
    <tr id="attr-created_time">
        <td>Created Time</td>
        <td><code>created_time</code></td>
        <td>
            <a href="/docs/types#timestamp_t">Timestamp</a>
        </td>
        <td>
        The time when the database was known to have been created.
        
        </td>
    </tr>
    <tr id="attr-data_classification">
        <td>Data Classification</td>
        <td><code>data_classification</code></td>
        <td>
            <a href="/docs/obj-data_classification">Data Classification[]</a>
        </td>
        <td>
            <strong>Group:</strong><code>context</code><br/>
        The Data Classification object includes information about data classification levels and data category types.
        
<blockquote class="callout callout_warn">
    <h3>🚧 WARNING: DEPRECATED</h3>
    <p>Data Classification has been deprecated since 1.4.0. Use the attribute data_classifications instead</p>
</blockquote>
        </td>
    </tr>
    <tr id="attr-data_classifications">
        <td>Data Classification</td>
        <td><code>data_classifications</code></td>
        <td>
            <a href="/docs/obj-data_classification">Data Classification[]</a>
        </td>
        <td>
            <strong>Group:</strong><code>context</code><br/>
        A list of Data Classification objects, that include information about data classification levels and data category types, identified by a classifier.
        
        </td>
    </tr>
    <tr id="attr-desc">
        <td>Description</td>
        <td><code>desc</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The description of the database.
        
        </td>
    </tr>
    <tr id="attr-groups">
        <td>Groups</td>
        <td><code>groups</code></td>
        <td>
            <a href="/docs/obj-group">Group[]</a>
        </td>
        <td>
        The group names to which the database belongs.
        
        </td>
    </tr>
    <tr id="attr-modified_time">
        <td>Modified Time</td>
        <td><code>modified_time</code></td>
        <td>
            <a href="/docs/types#timestamp_t">Timestamp</a>
        </td>
        <td>
        The most recent time when any changes, updates, or modifications were made within the database.
        
        </td>
    </tr>
    <tr id="attr-name">
        <td>Name</td>
        <td><code>name</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The database name, ordinarily as assigned by a database administrator.
        
        </td>
    </tr>
    <tr id="attr-raw_data">
        <td>Raw Data</td>
        <td><code>raw_data</code></td>
        <td>
            <a href="/docs/types#json_t">JSON</a>
        </td>
        <td>
            <strong>Group:</strong><code>context</code><br/>
        The event data as received from the event source.
        
        </td>
    </tr>
    <tr id="attr-record_id">
        <td>Record ID</td>
        <td><code>record_id</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
            <strong>Group:</strong><code>primary</code><br/>
        Unique identifier for the object
        
        </td>
    </tr>
    <tr id="attr-size">
        <td>Size</td>
        <td><code>size</code></td>
        <td>
            <a href="/docs/types#long_t">Long</a>
        </td>
        <td>
        The size of the database in bytes.
        
        </td>
    </tr>
    <tr id="attr-type">
        <td>Type</td>
        <td><code>type</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The database type.
        
        </td>
    </tr>
    <tr id="attr-type_id">
        <td>Type ID</td>
        <td><code>type_id</code></td>
        <td>
            <a href="/docs/types#integer_t">Integer</a>
        </td>
        <td>
        The normalized identifier of the database type.
        
            <ul>
                <li><code>0</code>: Unknown (<code>UNKNOWN</code>)</li>
                <li><code>1</code>: Relational (<code>RELATIONAL</code>)</li>
                <li><code>2</code>: Network (<code>NETWORK</code>)</li>
                <li><code>3</code>: Object Oriented (<code>OBJECT_ORIENTED</code>)</li>
                <li><code>4</code>: Centralized (<code>CENTRALIZED</code>)</li>
                <li><code>5</code>: Operational (<code>OPERATIONAL</code>)</li>
                <li><code>6</code>: NoSQL (<code>NOSQL</code>)</li>
                <li><code>99</code>: Other (<code>OTHER</code>)</li>
            </ul>
        </td>
    </tr>
    <tr id="attr-uid">
        <td>Unique ID</td>
        <td><code>uid</code></td>
        <td>
            <a href="/docs/types#string_t">String</a>
        </td>
        <td>
        The unique identifier of the database.
        
        </td>
    </tr>
    <tr id="attr-unmapped">
        <td>Unmapped</td>
        <td><code>unmapped</code></td>
        <td>
            <a href="/docs/obj-unmapped">Unmapped[]</a>
        </td>
        <td>
        Data from the source that was not mapped into the schema.
        
        </td>
    </tr>
</table>

## Relationships

<img src="https://schema.query.ai/images/obj-database.svg" alt="Database shown in context" />

### Inbound Relationships

These objects and events reference Database in their attributes:

<ul>
    <li><a href="/docs/obj-evidences">Windows Evidence Artifacts</a></li>
    <li><a href="/docs/event-data_security_finding">Data Security Finding</a></li>
    <li><a href="/docs/event-cloud_resources_inventory_info">Cloud Resources Inventory Info</a></li>
    <li><a href="/docs/event-datastore_activity">Datastore Activity</a></li>
</ul>

### Outbound Relationships

Database references the following objects and events in its attributes:

<ul>
    <li><a href="/docs/obj-data_classification">Data Classification</a></li>
    <li><a href="/docs/obj-unmapped">Unmapped</a></li>
    <li><a href="/docs/obj-group">Group</a></li>
</ul>

<p><small><i>This page describes qdm-1.5.1+ocsf-1.6.0</i></small></p>