Spaces:
Sleeping
Sleeping
File size: 1,012 Bytes
f1495be dc7a5e5 f1495be |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
from pydantic import BaseModel
from typing import Optional
class Admin(BaseModel):
name : str
userName : str
email :str
password :str
phoneNo :str
isVerified : bool = True
role:str = 'admin'
class User(BaseModel):
name : str
userName : str
email :str
password :str
phoneNo :str
isVerified : bool = True
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] |