Skip to content

File

File Schema

Properties

Name Type Description
id UUID No description
parent_kind Enum(entity_profile, telescope_image, telescope_gallery, observatory_image, observatory_gallery, device_image, observation_gallery, observation_asset, observation_asset_thumbnail, observation_asset_preview, observation_asset_reduction_input, optical_imaging_calibration_master, radio_mapping_task_file, time_series_photometry_stack_file, time_series_photometry_result_file, processing_run_intermediate, project_step_asset) Identifies the parent context that owns this row. Used to dispatch authorization, visibility derivation, and bucket routing without probing every back-reference. Set at creation by skynet_db.services.files.create_file.
visibility Enum(private, unlisted, public) No description
secret_link_key String(64) (Optional) Key used for unauthenticated access to unlisted/private files.
mime_type Enum(JSON, TEXT, HTML, CSS, CSV, JPEG, WEBP, PNG, GIF, PDF, DOCX, XLS, XLSX, FITS, MJPEG) MIME type of the file
name String(250) No description
size Float (Optional) No description
alt_tag String(Unbounded) (Optional) No description
storage_type Enum(database, remote_uri, disk) (Optional) No description
data BLOB (Optional) No description
remote_uri String(250) (Optional) No description
object_key String(512) (Optional) MinIO object key for this file
bucket String(256) (Optional) No description
is_data_ready Boolean Whether the file data is available for download
updated_on DateTime No description
created_on DateTime No description
last_accessed_on DateTime (Optional) No description
render_settings JSONB (Optional) No description
created_by Enum(telescope_capture, user_upload, asset_processing_run, task_result_processing_run) (Optional) Method by which the file was created within the broader system.

Relationships

Relationship Name Type
outgoing_edges FileEdge
incoming_edges FileEdge
profile_image_entities Entity
telescope_image Telescope
observatory_image Observatory
telescope_gallery_items TelescopeGalleryItem
observatory_gallery_items ObservatoryGalleryItem
observation_gallery_items ObservationGalleryItem
observation_assets ObservationAsset