[Build] refactor: Simplify data layer to respect two-model architecture
Published on August 14, 2025
## GitHub Update
**Repository:** [MKWcorp/drwskincare](https://github.com/MKWcorp/drwskincare)
**Author:** mulmeddrwcorp
**Date:** 8/14/2025, 5:01:17 PM
**Commit:** [`a662ce8`](https://github.com/MKWcorp/drwskincare/commit/a662ce86bfa8687fe60ecad4479c288debb7cba1)
### Commit Message
refactor: Simplify data layer to respect two-model architecture
sync-data route:
- Remove ResellerProfile operations from sync process
- Focus only on core Reseller data from API
- Clean separation of concerns between API sync and user profiles
data.ts:
- Simplify getResellerPublicProfile to use findUnique with include
- More efficient query pattern with automatic relation loading
- Better alignment with Prisma best practices
---
_This story was imported from historical commits._