Skip to main content

Documents

Overview

The Document entity represents specific documents within the database. The table contains metadata on uploaded documents such as the name, document type, latest version, and the unique path needed to reach the document in the database.

Table Structure

The following table outlines the SQL columns for the documents 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
nameStringName of the uploaded document.Hours.word
document_typeStringType of the uploaded document.word
latest_versionIntegerLatest version of the uploaded Document. Must be greater than 0.2
pathString (unique)Unique path to the document inside the database./Documents/Hours.word

Field Details

name

The name field provides a unique identifier for the document, used to distinguish it from documents.

document_type

The document_type field provides a type associated with the uploaded document to prevent file corruption when opening the file.

latest_version

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

path

The unique path field allows the system to find the document within the database.