123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- from optparse import Option
- from typing import Optional
- from pydantic import BaseModel
- # Shared properties
- class NftBase(BaseModel):
- hash: Optional[str] = None
- imgurl: Optional[str] = None
- userid: Optional[str] = None
- title: str
- context: Optional[str] = None
- is_active: Optional[bool] = True
- category: Optional[str] = None
- uid: Optional[str] = None
- id: int
- class Config:
- orm_mode = True
- class NftPrint(BaseModel):
- Nft: Optional[NftBase] = None
- count: Optional[int] = None
- class Config:
- orm_mode = True
- class NftCreate(NftBase):
- pass
- class NftUpdate(NftBase):
- pass
- class NftBulkUpdate(BaseModel):
- hash: Optional[str] = None
- imgurl: Optional[str] = None
- userid: Optional[str] = None
- title: str
- context: Optional[str] = None
- is_active: Optional[bool] = True
- category: Optional[str] = None
|