-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Active, Archived and Soft Deleted records #6909
Comments
@Gramosx So for this feature, We will have to add above columns into
Note: This could be a complex task, so please let me know if you will have any issues or concern about this feature. |
@Gramosx Just for reference |
2 tasks
2 tasks
rahul-rocket
added a commit
that referenced
this issue
Oct 30, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think actually most of our entities should have the following standard fields:
isActive
- when we want to temporarily make some record not active and not be returned by most of the queries, metrics/reports, or disallow login of certain users, etc.isDeleted
- when someone removed some record (but we need to keep it for Audit purposes or even for some past periods accounting, etc.) Note: for now we will use the "standard"deletedAt
field in TypeORM used for Soft Delete feature, see https://typeorm.io/delete-query-builder#soft-deleteisArchived
- when something becomes not important anymore and can be archived, e.g. created 3 years ago some expense record.The text was updated successfully, but these errors were encountered: