1234567891011121314151617181920212223242526272829303132333435363738394041 |
- # from beanie import Document
- # from fastapi.security import HTTPBasicCredentials
- # from pydantic import BaseModel, EmailStr
- # class Admin(Document):
- # fullname: str
- # email: EmailStr
- # password: str
- # class Config:
- # json_schema_extra = {
- # "example": {
- # "fullname": "Abdulazeez Abdulazeez Adeshina",
- # "email": "abdul@youngest.dev",
- # "password": "3xt3m#",
- # }
- # }
- # class Settings:
- # name = "admin"
- # class AdminSignIn(HTTPBasicCredentials):
- # class Config:
- # json_schema_extra = {
- # "example": {"username": "abdul@youngest.dev", "password": "3xt3m#"}
- # }
- # class AdminData(BaseModel):
- # fullname: str
- # email: EmailStr
- # class Config:
- # json_schema_extra = {
- # "example": {
- # "fullname": "Abdulazeez Abdulazeez Adeshina",
- # "email": "abdul@youngest.dev",
- # }
- # }
|