Skip to main content

Datapackfiles Model

Overview​

The datapackfiles table stores metadata about files associated with different data packs. These files could be configuration files, scripts, or other supporting documents that are part of a data pack.

Fields​

FieldTypeDescriptionRequired
idstringPrimary Key – Unique identifier for each file (UUID).❌
namestringThe Name of the file. Usually includes file extension (e.g., init.sql, report.json).✅
sizenumberStores the file size, though storing as text may not be ideal.❌
pathstringThe file's storage location or relative path.✅
documentIdanyReference to an associated document (if applicable).❌
statusTypeanyDescribes the file’s state ex: generated, uploaded, archived, pending.❌
creationTypestringIndicates how the file was created, e.g., manual, automated, scripted, imported.✅
fileSourcestringSource of the file (e.g., uploaded, generated).❌
internalPublishedbooleanBoolean flag (0/1) indicating if the file has been published internally.❌
isScriptFilebooleanBoolean flag indicating if the file is a script (e.g., SQL, Python). Useful for automation.❌
activestringBoolean flag indicates whether the file is currently in active use.✅
created_atdateTimestamp when the file entry was created.❌
modified_atdateTimestamp when the file entry was last modified.Useful for version tracking.❌
datapackIdstringForeign key reference to the datapackbuilds or datapacks table✅

Relationships​

  • Belongsto Unknown
  • Belongsto Unknown

Sample JSON​

{
"id": "example_value",
"name": "example_value",
"size": "example_value",
"path": "example_value",
"documentId": "example_value",
"statusType": "example_value",
"creationType": "example_value",
"fileSource": "example_value",
"internalPublished": "example_value",
"isScriptFile": "example_value",
"active": "example_value",
"created_at": "example_value",
"modified_at": "example_value",
"datapackId": "example_value"
}