Spaces:
Sleeping
Sleeping
| from pydantic import BaseModel, Field | |
| from typing import List, Optional | |
| class Scheme(BaseModel): | |
| id: str = Field(..., alias="id") | |
| Title: str | |
| Description: str | |
| Eligibility: List[str] = [] | |
| Benefits: List[str] = [] | |
| ApplicationProcess: List[str] = Field(..., alias="Application Process") | |
| DocumentsRequired: List[str] = Field(..., alias="Documents Required") | |
| # Add other fields as they appear in your Firestore documents | |
| class Config: | |
| allow_population_by_field_name = True |