6 Commits
Author SHA1 Message Date
waozi 35159302be Rename Daochi to Mesh with compatible state and deployment migrations 2026-11-17 14:57:07 -03:00
waozi 7214c30d3d Let private nodes keep trashed blobs
DAOCHI_TRASH_PURGE_DAYS sets how long a blob stays in an account's trash before the node deletes it: 30 days by default, as on the public node. A private node that archives its owner's photos sets 0 and keeps them, while trashed blobs still stop counting toward storage.
2026-10-29 15:43:42 -03:00
waozi d862a34f80 Hold deleted accounts for 30 days and stop charging deleted data
Deleting a sync account now moves every row it owns, found through the
schema's ON DELETE CASCADE keys, into <db>.held/<account>.db and its blob
files beside it. The live tables keep nothing, so it stops syncing, counting
toward storage and appearing to others at once. A login with "restore": true
brings it back during the hold; a plain login starts an empty account and
reports held_until. The retention job deletes holds after 30 days.

Deleted records drop their content as the deletion arrives and cost nothing,
and a deletion wins an equal-time mesh tie. Blobs can be moved to and from
the trash with POST .../trash and .../restore: trashed blobs stay readable,
cost nothing and are deleted after 30 days. Deploy backups are pruned at 28
days so no copy outlives the 30-day window.
2026-10-29 13:39:55 -03:00
waozi eae7f45f3b Describe shared photo details and albums in entity data 2026-10-23 22:40:08 -03:00
waozi 693dd9c8a0 Let accounts delete blobs they no longer use and store entity content in chunks 2026-10-23 22:37:55 -03:00
waozi c3391bba08 Keep each account's photos, levels and other data once, shared by all of its apps 2026-10-23 22:22:54 -03:00