Commit Graph

7 Commits

Author SHA1 Message Date
a0c782f4cc Fix backend business logic and remove hardcoded IDs
- Add customerId to SaleRequest DTO
- Update SaleService to use AuthenticationHelper for employee attribution
- Populate sale.customer when customerId provided in request
- Fix AdoptionController to use authenticated customer instead of hardcoded ID 1
- Fix AppointmentController to use authenticated customer instead of hardcoded ID 1
- Fix RefundController to use authenticated customer instead of hardcoded ID 1
- Update data.sql sales to include customer linkage for refund testing
- Update Postman collection sale creation with customerId and items
2026-03-08 21:58:50 -06:00
a0d14e493f Fix backend user contract and add User-Employee-Customer linkage
- Add active field to User entity and users table
- Add userId linkage to Employee and Customer entities with unique constraints and FKs
- Add repository methods findByUserId and findAllByEmail
- Create UserBusinessLinkageService for shared employee/customer creation logic
- Create AuthenticationHelper utility for resolving authenticated users
- Update UserService to persist all user fields and create linked business entities
- Update AuthController register to set active and create linked customer
- Update DataInitializer to be idempotent and use shared linkage service
- Update Postman collection user endpoints with fullName, email, and active
2026-03-08 21:56:04 -06:00
d86652b462 Reorganize Postman collection by resource 2026-03-08 15:39:50 -06:00
d7d294130f Complete Postman collection with all endpoints 2026-03-08 15:23:16 -06:00
ad81bd031d Allow public viewing of pets and sales 2026-03-08 09:39:37 -06:00
3a93fea34f Fix database seeding, add security and complete missing endpoints 2026-03-08 09:11:26 -06:00
bdfc592821 Add Postman collection and update JDK to 25 2026-03-05 08:13:37 -07:00