← All Foundational Objects/Prefix: five_17 Fields
AI-Agent-First Documentation
/SKILL.md
Prompt your Agent: "Query and mutate records on the 'file_version' table (ID prefix 'five_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."

File Version (file_version)

Historical version control of a specific file in the Valstorm File System.

Python SDK & PlatformContext Example
# 1. Query file_version via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM file_version ORDER BY created_date DESC LIMIT 25")

# 2. Create file_version record (Generates 'five_...' Base62 ID)
created = await platform.records.create("file_version", [
    {"name": "Example File Version"}
])
Field API NameType / FormatLookup TargetFlagsDescription
idstring—Id
namestring—Name
created_datestringdate-time—Created Date
modified_datestringdate-time—Modified Date
created_bystringlookup→ user (string ID)Created By
modified_bystringlookup→ user (string ID)Modified By
ownerstringlookup→ user (string ID)Owner
filestringlookup→ file (string ID)requiredThe file this version relates to
version_numbernumber—requiredVersion Number
locationstring—requiredWhere in s3 it is located
linkstring—requiredA link to the location in s3
extensionstring—requiredThe file extension
content_typestring—requiredWhat type of content the file is
file_sizenumber—requiredHow big the file is in bytes
checksumstring—Checksum
change_summarystring—Change Summary
is_activeboolean—requiredIs Active