Attached.Originals.Original (Attached v0.1.0)

Copy Markdown View Source

Stores metadata about an uploaded file.

The actual file content lives on the configured storage service, referenced by the original's unique key. The owner_table and owner_field columns track which schema and field own this original, enabling orphan cleanup without polymorphic associations.

Cached derivations live in Attached.Variants.Variant and are reached via the :variants has_many.

Summary

Functions

audio?(arg1)

changeset(original \\ %__MODULE__{}, attrs)

generate_key()

image?(arg1)

video?(arg1)