chathur_api / api /models /schemes.py
VJnCode's picture
Deploy FastAPI Docker app to HF Spaces
f3ca15e
raw
history blame contribute delete
512 Bytes
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