devsync23 / haves-and-needs-service

0 stars 0 forks source link

[feat: backend] Create a Fulfillment data model #15

Open therealjustinbiele opened 6 months ago

therealjustinbiele commented 6 months ago

Description

As a backend developer, I need to create a Fulfillment data model to manage the fulfillment process when a user fulfills a "Have" or "Need" item. This data model will capture essential information to represent the fulfillment of a user's request or offering within the application.

Technical Requirements

In this schema:

fulfilledItem: This field references the ID of the fulfilled "Have" or "Need" item. It uses the ObjectId type and references either the Have or Need model. fulfilledBy: This field references the ID of the user who fulfilled the item. It also uses the ObjectId type and references the User model. fulfillmentDate: This field stores the date and time when the fulfillment occurred. It uses the Date type and defaults to the current date and time when not specified.

therealjustinbiele commented 6 months ago

5 story points