mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 15:29:36 +00:00
Full-stack AI-powered sales automation platform for Saudi SMEs: Backend (FastAPI + PostgreSQL): - Multi-tenant architecture with row-level isolation - JWT auth with RBAC (owner/manager/agent/admin) - Lead, Customer, Deal, Pipeline, Activity, Message, Proposal models - Dashboard analytics API (overview, pipeline, revenue) - WhatsApp Business API, Email (SMTP/SendGrid), SMS (Unifonic) integrations - Celery + Redis workers for automated follow-ups and scheduled messages - Property model for Real Estate module (Riyadh districts) - Hijri date utilities, Arabic/English localization Frontend (Next.js + Tailwind): - Professional Arabic RTL landing page with 10 sections - Brand identity: SalesMatic (سيلزماتك) with custom SVG logo - Color system: Trust Blue #0F4C81, Growth Teal #00BFA6, CTA Orange #FF6B35 - IBM Plex Sans Arabic + Inter typography - Responsive design, dark hero section, pricing table, FAQ Industry Templates: - Healthcare/Clinics: pipeline stages, WhatsApp message templates, auto-workflows - Real Estate Riyadh: 20 districts, property tours, payment plans, matching Infrastructure: - Docker Compose (PostgreSQL, Redis, Backend, Celery, Frontend, Nginx) - Nginx reverse proxy config - Makefile for common operations https://claude.ai/code/session_01LLR7jzpyNRwDA9kojtT3CW
59 lines
1.4 KiB
Python
59 lines
1.4 KiB
Python
from pydantic import BaseModel
|
|
from typing import Optional
|
|
from uuid import UUID
|
|
from datetime import datetime, date
|
|
from decimal import Decimal
|
|
|
|
|
|
class DealCreate(BaseModel):
|
|
title: str
|
|
lead_id: Optional[UUID] = None
|
|
customer_id: Optional[UUID] = None
|
|
assigned_to: Optional[UUID] = None
|
|
value: Optional[Decimal] = None
|
|
currency: str = "SAR"
|
|
stage: str = "new"
|
|
probability: int = 0
|
|
expected_close_date: Optional[date] = None
|
|
notes: Optional[str] = None
|
|
|
|
|
|
class DealUpdate(BaseModel):
|
|
title: Optional[str] = None
|
|
value: Optional[Decimal] = None
|
|
stage: Optional[str] = None
|
|
probability: Optional[int] = None
|
|
expected_close_date: Optional[date] = None
|
|
assigned_to: Optional[UUID] = None
|
|
notes: Optional[str] = None
|
|
|
|
|
|
class DealResponse(BaseModel):
|
|
id: UUID
|
|
tenant_id: UUID
|
|
title: str
|
|
lead_id: Optional[UUID]
|
|
customer_id: Optional[UUID]
|
|
assigned_to: Optional[UUID]
|
|
value: Optional[Decimal]
|
|
currency: str
|
|
stage: str
|
|
probability: int
|
|
expected_close_date: Optional[date]
|
|
closed_at: Optional[datetime]
|
|
notes: Optional[str]
|
|
created_at: datetime
|
|
updated_at: datetime
|
|
|
|
model_config = {"from_attributes": True}
|
|
|
|
|
|
class StageUpdate(BaseModel):
|
|
stage: str
|
|
|
|
|
|
class PipelineResponse(BaseModel):
|
|
stages: dict[str, list[DealResponse]]
|
|
total_value: Decimal
|
|
total_deals: int
|