# Cloud storage lifecycle configuration (provider-specific).
# The concept applies to R2, S3, and similar object stores.

# PocketBoard backend: when a listing is deleted,
# queue the associated photo URLs for deletion from storage.
# A background job processes the queue daily.

# For orphaned photos (listing deleted without API call,
# e.g. via database cleanup):
# Add a 'created_at' metadata tag to every uploaded photo.
# A weekly job compares storage objects against the database.
# Objects without a corresponding database record older than 7 days are deleted.

# Expected storage savings at 10,000 MAU:
# ~15% of listings are deleted within 30 days of creation.
# Without lifecycle: storage grows indefinitely.
# With lifecycle: storage stabilises at ~85% of cumulative uploads.
