Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Store created date and last updated date as part of a CouchDB model when saving/updating #1879

Closed
jackcmeyer opened this issue Mar 4, 2020 · 0 comments · Fixed by #1880
Closed
Assignees
Labels
🚀enhancement an issue/pull request that adds a feature to the application
Milestone

Comments

@jackcmeyer
Copy link
Member

jackcmeyer commented Mar 4, 2020

🚀 Feature Proposal

For auditing purposes, we would like to save the created date and last updated date for CouchDB models.

These should be stored as unix timestamps.

Created date should only be updated on object create.
Last Updated should be displayed anytime the model is updated.

Motivation

Auditing

Example

{
	// .... other fields in patient
	createdDate: ${unix timestamp},
	lastUpdatedDate: ${unixTimestamp}, 
}
@jackcmeyer jackcmeyer transferred this issue from HospitalRun/hospitalrun Mar 4, 2020
@jackcmeyer jackcmeyer self-assigned this Mar 4, 2020
@jackcmeyer jackcmeyer added the 🚀enhancement an issue/pull request that adds a feature to the application label Mar 4, 2020
@jackcmeyer jackcmeyer added this to the v2.0.0 milestone Mar 4, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
🚀enhancement an issue/pull request that adds a feature to the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant