Include Firestore Timestamps in Entities #39
Labels
enhancement
New feature or request
from_willyovale
An issue described in original project, but never implemented
Description
When using the Firestore admin SDK, we can retrieve document timestamps (
createTime
,updateTime
,readTime
). These timestamps are useful for backend applications that utilize Firestore. This proposal suggests including these timestamps in Fireorm entities, allowing users to automatically access them without manual creation.Steps to Reproduce
createTime
,updateTime
,readTime
).Expected Behavior
Entities should automatically include
createTime
,updateTime
, andreadTime
properties, populated with the corresponding Firestore document timestamps.Actual Behavior
Currently, entities do not include these timestamps automatically and require manual creation and management.
Acceptance Criteria
createTime
,updateTime
,readTime
) in entities.Additional Context
Proposed API Changes
Add Timestamp Properties to Entities:
createTime
,updateTime
, andreadTime
properties.Update Repository Methods:
Provide TypeScript Support:
Timestamped
wrapper to add typing for the new properties.Unit Tests:
Example Implementation
Original Issue
The text was updated successfully, but these errors were encountered: