system-prompts-and-models-o.../salesflow-saas/backend/app/models/__init__.py
Claude 84762f08ab
Add complete launch infrastructure: models, APIs, agents, compliance, docs, knowledge base
Phase 1 - Repo Hardening:
- README.md, LICENSE, SECURITY.md, CONTRIBUTING.md
- GitHub Actions repo-hygiene workflow
- docs/: ARCHITECTURE, DATA-MODEL, API-MAP, AGENT-MAP, DEPLOYMENT-NOTES

Phase 2 - Database Models (7 new):
- Company, Contact, Call, Commission, Payout, Dispute, GuaranteeClaim
- Consent, Complaint, Policy, KnowledgeArticle, SectorAsset
- Updated models/__init__.py with all 32+ models

Phase 3 - API Surfaces (16 new route files):
- companies, contacts, calls, meetings, commissions, payouts
- disputes, guarantees, consents, complaints, knowledge
- sectors, presentations, supervisor, admin, health
- Updated router.py with all 24 route groups

Phase 4 - AI Prompt Registry (18 agent contracts):
- Lead Qualification, Affiliate Recruitment Evaluator, Onboarding Coach
- Outreach Writer, Arabic WhatsApp, English Conversation, Voice Call
- Meeting Booking, Sector Strategist, Objection Handler
- Proposal Drafter, QA Reviewer, Compliance Reviewer
- Knowledge Retrieval, Revenue Attribution, Fraud Reviewer
- Guarantee Claim Reviewer, Management Summary

Phase 5 - Communication Templates:
- 15 production templates (WhatsApp, email, voice, internal)
- Arabic + English variants with variable interpolation

Phase 6 - Compliance Center (7 legal docs):
- Privacy policy, Terms of service, Refund policy
- Commission policy, Affiliate rules, Consent policy, Data protection
- All PDPL-compliant, Arabic

Phase 7 - Celery Workers (fully implemented):
- follow_up_tasks: automated lead follow-ups with workflow execution
- message_tasks: WhatsApp/email/SMS with retry logic
- notification_tasks: daily reports, meeting reminders, in-app notifications
- affiliate_tasks: target checking, commission calculation, weekly reports, AI outreach

Phase 8 - Knowledge Base OS (8 files):
- Services overview, Pricing policy, Channel policy, Meeting policy
- Identity rules, Escalation rules, Hiring path, Internal SOPs

https://claude.ai/code/session_01KnJgK7RwyeCvRZTRThHtfU
2026-03-31 07:57:48 +00:00

35 lines
1.5 KiB
Python

from app.models.base import BaseModel, TenantModel
from app.models.tenant import Tenant
from app.models.user import User
from app.models.lead import Lead
from app.models.customer import Customer
from app.models.deal import Deal
from app.models.activity import Activity
from app.models.message import Message
from app.models.proposal import Proposal
from app.models.notification import Notification
from app.models.subscription import Subscription
from app.models.template import IndustryTemplate
from app.models.property import Property
from app.models.audit_log import AuditLog
from app.models.affiliate import AffiliateMarketer, AffiliatePerformance, AffiliateDeal
from app.models.ai_conversation import AIConversation, AutoBooking
from app.models.company import Company, Contact
from app.models.call import Call
from app.models.commission import Commission, Payout
from app.models.dispute import Dispute
from app.models.guarantee import GuaranteeClaim
from app.models.compliance import Consent, Complaint, Policy
from app.models.knowledge import KnowledgeArticle, SectorAsset
__all__ = [
"BaseModel", "TenantModel", "Tenant", "User", "Lead", "Customer",
"Deal", "Activity", "Message", "Proposal", "Notification",
"Subscription", "IndustryTemplate", "Property", "AuditLog",
"AffiliateMarketer", "AffiliatePerformance", "AffiliateDeal",
"AIConversation", "AutoBooking",
"Company", "Contact", "Call", "Commission", "Payout",
"Dispute", "GuaranteeClaim", "Consent", "Complaint", "Policy",
"KnowledgeArticle", "SectorAsset",
]