Feat: Add AI meeting integration foundation (Phase 1) #208
+2,072
−0
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.
Description
Add the foundational database schema, entity definitions, and CRUD operations needed for the AI meeting recording and transcription integration. This is Phase 1 of a multi-phase implementation that will enable Google Meet recording via Recall.ai and transcription via AssemblyAI.
GitHub Issue: Relates to refactor-group/refactor-platform-fe#146
Changes
Database Migrations:
user_integrationstable for encrypted storage of external API credentials (Google OAuth, Recall.ai, AssemblyAI)ai_privacy_levelenum (none,transcribe_only,full) andmeeting_urlcolumn tocoaching_relationshipsmeeting_recordingstable withmeeting_recording_statusenum for Recall.ai bot trackingtranscriptionstable withtranscription_statusenum for AssemblyAI transcript datatranscript_segmentstable withsentimentenum for speaker-diarized utterancesai_suggested_itemstable withai_suggestion_typeandai_suggestion_statusenumsEntity Definitions:
user_integrations- stores encrypted Google OAuth tokens, Recall.ai API key, AssemblyAI API keymeeting_recordings- tracks Recall.ai recording sessionstranscriptions- stores full transcript text, summary, and confidence scorestranscript_segments- individual utterances with speaker labels and timestampsai_suggested_items- AI-detected action items and agreements pending user approvalEntity API CRUD Operations:
user_integration- create, update, find_by_id, find_by_user_id, get_or_create, deletemeeting_recording- create, update, update_status, find_by_id, find_by_coaching_session_id, find_by_recall_bot_idtranscription- create, update, update_status, find_by_id, find_by_meeting_recording_id, find_by_assemblyai_idai_suggested_item- create, accept, dismiss, find_by_id, find_by_transcription_id, find_pending_by_transcription_idEncryption Utilities:
Configuration:
Testing Strategy
cargo testto verify encryption utilities work correctlycargo clippyandcargo fmtpass without warningsConcerns
OWNER TO refactorstatements per project standards to prevent permission issues.coaching_relationshipstable gets new optional columns with sensible defaults (meeting_url= NULL,ai_privacy_level= 'full').