Class decorator that configures an automatic data retention policy for
the entity. When one or more entities define a retention policy, the
Database runs a background cleanup job that periodically deletes
expired records.
Error - At decoration time if options.seconds is not a positive integer.
Remarks
The cleanup interval is derived from the GCD of all registered seconds
values, ensuring the job runs as infrequently as possible while still
honouring every policy. The job uses a cursor-based readwrite transaction
and emits debug-level log messages on each tick.
Class decorator that configures an automatic data retention policy for the entity. When one or more entities define a retention policy, the Database runs a background cleanup job that periodically deletes expired records.