Skip to main content

Document Data

Overview

The DocumentData entity represents the data of documents within the database. The table contains the actual data of the documents, the status and version of the file and the document_id that links it to a Documents entity that contains the metadata of the document.

Table Structure

The following table outlines the SQL columns for the document_data table, providing a brief description of each, along with sample data where applicable.

ColumnTypeDescriptionExample
idString (ULID)Unique identifier for the entity.01JAP8RJBN-8ZTPXSGY-J9GSDPE1
enabledBooleanIf the entity is enabled or not.true
created_dateDateTimeDate the entity was created.2024-12-31T19:48:44Z
created_byStringPerson who created the entity.TamakiMES
modified_dateDateTimeDate the entity was modified. Value is null upon creation, and gets initially populated upon the first edit.2024-12-31T19:48:44Z
modified_byStringLast person to modify the entity. Value is null upon creation, and gets initially populated upon the first edit.TamakiMES
notesStringNotes about the entity.This entity has these extra notes
spare1StringThe first spare column that can be used for additional context on the entity.some extra context 1
spare2StringThe second spare column that can be used for additional context on the entity.some extra context 2
spare3StringThe third spare column that can be used for additional context on the entity.some extra context 3
dataBlobStores the data of the uploaded document (binary large object).N/A
statusString (Enum)The status of the uploaded document, as defined by the DocumentStatus enum.ACTIVE
versionIntegerVersion of the uploaded Document. Must be greater than 0.1
document_idString (ULID)References a document. See documents.01JAP8RJBN-9WTGQRQW-Y3XCRTXF

Field Details

data

Stores the data of the uploaded document as a binary large object.

status

Defines the status of the document, based on the DocumentStatus enum, which includes options such as ACTIVE, RETIRED, UNDER_REVIEW, TRIAL, DRAFT and REJECTED.

version

The version field provides a version number to the uploaded document to permit tracking changes and updates to files.

document_id

References a Document entity that contains the metadata for the uploaded document. See documents for details.