Refactor Contacts API to Relationship Management System with Normalized Database Schema#229
Merged
credevator merged 5 commits intomainfrom Aug 19, 2025
Merged
Refactor Contacts API to Relationship Management System with Normalized Database Schema#229credevator merged 5 commits intomainfrom
credevator merged 5 commits intomainfrom
Conversation
Co-authored-by: credevator <2756303+credevator@users.noreply.github.com>
…management Co-authored-by: credevator <2756303+credevator@users.noreply.github.com>
Co-authored-by: credevator <2756303+credevator@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor Contacts API
Refactor Contacts API to Relationship Management System with Normalized Database Schema
Aug 17, 2025
credevator
approved these changes
Aug 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a complete refactoring of the Contacts API into a comprehensive Relationship Management system with a normalized database architecture, addressing the need for better data organization and privacy controls.
Key Changes
Database Normalization
Replaced the monolithic
contactstable with 6 specialized, normalized tables:person_profiles- Core profile information (name, basic details)person_contact_info- Email, phone, addresses with individual privacy settingsperson_professional_info- Job history, organizations, work detailsperson_personal_info- Birthday, preferences, family informationperson_life_events- Important dates, milestones, life trackingperson_belongings- Items, possessions, relationship contextperson_relationships- Rich bidirectional relationship mappingAPI Restructuring
Added 19 new endpoints under
/relationship-management/including:Enhanced Features
Frontend Integration
Example Usage
Migration & Compatibility
/contactsendpoints remain functional for backward compatibilityBenefits Over Previous System
The system maintains full tenant isolation and user ownership while providing a much more flexible foundation for relationship management.
Fixes #228.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.