Clients Collection #43
Labels
No labels
CI/CD
MongoDB
PostgreSQL
api
authentication
bug
documentation
duplicate
enhancement
example issue
fix
good first issue
help wanted
high-level requirement
infrastructure
invalid
low-level requirement
medium-level requirement
question
security
test
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AndreFerreira5/starranja#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This task involves designing the MongoDB collection to store customer information, as part of requirement RF01.
This collection will act as the single source of truth for all client data, allowing it to be referenced by
vehicles,workOrders, andinvoiceswithout data duplication.Tasks
clientscollection (fields:name,nif,phone,email,address, etc.).clients.nifand an index onphone)._idof a client will be used as a reference (clientId) in other collections.This is the collection for clients that I came up with, if you have any sugestions or want to change anything please respond here. @miguelmiranda20

To comply with RF01 (manage customers) and RNF03 (response time < 3s), indexes are essential.
Unique Index by NIF: Most important business rule. Prevent duplicate customers.
Index by Phone and Email: Allows for quick searches when a customer calls or to avoid duplicate emails.