123456789101112131415161718192021222324 |
- from typing import Optional
- from pydantic import BaseModel
- # Shared properties
- class NftBase(BaseModel):
- hash: Optional[str] = None
- imgurl: Optional[str] = None
- userid: Optional[str] = True
- title: Optional[str] = None
- context: Optional[str] = None
- is_active: Optional[bool] = True
- category: Optional[str] = None
- class Config:
- orm_mode = True
- class NftCreate(NftBase):
- pass
- class NftUpdate(NftBase):
- pass
|