RealDevSquad / RealDevSquad/website-backend

Add timestamp to most used collections

Open
#1,344 1 comment 0 reactions 3 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
74
Forks
276
Avg merge
1d 26m
Merged PRs (30d)
14

Description

Title: Add Timestamp to All Collections

Description:
We need to add timestamp fields to all the specified collections in the database. This will allow us to keep track of when documents are created and when they are last modified. Additionally, we need to change the date objects to timestamps in the 'groups' collection.

Collections and Fields to be Modified:

  1. user collection: #1346

    • created_at: Timestamp for the first time the document is created.
    • updated_at: Timestamp for the last time the document is modified.
  2. user-status - Onboarding collection: (#1389 )

    • from: Timestamp for when the status is added to onboarding.
  3. Tasks collection: #1009

    • created_at: Timestamp for the first time the document is created.
    • updated_at: Timestamp for the last time the document is modified.
  4. applicants collection: https://github.com/Real-Dev-Squad/website-backend/issues/1395

    • created_at: Timestamp for the first time the document is created.
    • updated_at: Timestamp for the last time the document is modified.
  5. groups collection:

    • created_at: Timestamp for the first time the document is created.
    • updated_at: Timestamp for the last time the document is modified.

Please make the necessary changes to the database schema and update the existing records accordingly. Once the modifications are done, ensure that the codebase is updated to use these new timestamp fields wherever applicable.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.