Define Integration Point with PostgreSQL Users #37
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#37
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 defines how our MongoDB database will reference users (Mechanics, Managers, etc.) who are managed in a separate PostgreSQL database by the authentication team. We will not store any user details (like name or email) in our database.
Proposed Strategy: We will store the user's primary key from the PostgreSQL
userstable as a foreign key in our MongoDB documents. This key must be a stable, non-changing identifier (e.g., a UUID).Requirements Covered
Tasks
workOrdersto includemechanicsIds: [UUID].workOrders.createdById: UUID,invoices.emittedById: UUID).Added workOrders.createdById: UUID and invoices.emittedById: UUID to the DB.
Documented the "contract" in database_architecture_mongodb.md
The DataBase Desing: