Soham Chandratre
Add application file
f1495be
raw
history blame
1.04 kB
from pydantic import BaseModel
from typing import Optional
class Admin(BaseModel):
name : str
userName : str
email :str
password :str
phoneNo :str
otp : int
isVerified : bool = True
role:str = 'admin'
class User(BaseModel):
name : str
userName : str
email :str
password :str
phoneNo :str
otp : int
isVerified : bool = False
role:str = 'user'
class PoholeInfo(BaseModel):
userId : str
name: str
email: str
phoneNo :str
date: str
description: str
address: str
status: str
assignee: str
fileID: str
# isActive: bool
# version: int
class UpdatePotholeInfo(BaseModel):
infoID: str
status: str
assignee: str
class UserLogin(BaseModel):
userName : str
password : str
class VerifyOtp(BaseModel):
email : str
otp:str
class PotInfoById(BaseModel):
infoID : str
class PotholeModel(BaseModel):
image : str
class PotholeFilters(BaseModel):
userID: Optional[str]
status: Optional[str]