2025-09-02 15:51:35 +01:00
|
|
|
from datetime import datetime
|
|
|
|
|
from enum import Enum
|
2025-09-03 09:41:19 +01:00
|
|
|
from typing import List, Optional
|
|
|
|
|
|
|
|
|
|
from pydantic import BaseModel
|
2025-09-02 15:51:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvestmentStage(str, Enum):
|
2025-09-03 09:41:19 +01:00
|
|
|
SEED = "SEED"
|
|
|
|
|
SERIES_A = "SERIES_A"
|
|
|
|
|
SERIES_B = "SERIES_B"
|
|
|
|
|
SERIES_C = "SERIES_C"
|
|
|
|
|
GROWTH = "GROWTH"
|
|
|
|
|
LATE_STAGE = "LATE_STAGE"
|
2025-09-02 15:51:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class SectorSchema(BaseModel):
|
|
|
|
|
id: int
|
|
|
|
|
name: str
|
|
|
|
|
|
|
|
|
|
class Config:
|
|
|
|
|
from_attributes = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CompanySchema(BaseModel):
|
|
|
|
|
id: int
|
|
|
|
|
name: str
|
|
|
|
|
industry: str
|
|
|
|
|
location: str
|
|
|
|
|
founded_year: Optional[int]
|
|
|
|
|
website: Optional[str]
|
|
|
|
|
created_at: Optional[datetime]
|
|
|
|
|
updated_at: Optional[datetime]
|
|
|
|
|
|
|
|
|
|
class Config:
|
|
|
|
|
from_attributes = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvestorTeamMemberSchema(BaseModel):
|
|
|
|
|
id: int
|
|
|
|
|
name: str
|
|
|
|
|
role: str
|
|
|
|
|
email: str
|
|
|
|
|
|
|
|
|
|
class Config:
|
|
|
|
|
from_attributes = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvestorSchema(BaseModel):
|
|
|
|
|
id: int
|
|
|
|
|
name: str
|
|
|
|
|
description: Optional[str]
|
|
|
|
|
aum: int
|
|
|
|
|
check_size_lower: int
|
|
|
|
|
check_size_upper: int
|
|
|
|
|
geographic_focus: str
|
|
|
|
|
stage_focus: InvestmentStage
|
|
|
|
|
number_of_investments: int
|
|
|
|
|
created_at: Optional[datetime]
|
|
|
|
|
updated_at: Optional[datetime]
|
|
|
|
|
|
|
|
|
|
class Config:
|
|
|
|
|
from_attributes = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class InvestorData(BaseModel):
|
|
|
|
|
"""Comprehensive investor data schema for LLM processing"""
|
2025-09-03 09:41:19 +01:00
|
|
|
|
2025-09-02 15:51:35 +01:00
|
|
|
investor: InvestorSchema
|
|
|
|
|
portfolio_companies: List[CompanySchema] = []
|
|
|
|
|
team_members: List[InvestorTeamMemberSchema] = []
|
|
|
|
|
sectors: List[SectorSchema] = []
|
|
|
|
|
|
|
|
|
|
class Config:
|
|
|
|
|
from_attributes = True
|
2025-09-03 09:41:19 +01:00
|
|
|
|
2025-09-02 15:51:35 +01:00
|
|
|
|
|
|
|
|
class InvestorList(BaseModel):
|
2025-09-03 09:41:19 +01:00
|
|
|
investors: List[InvestorData]
|