2021-08-20 12:44:03 +01:00
|
|
|
from typing import NamedTuple
|
2021-08-20 14:46:08 +01:00
|
|
|
from sqlite3 import Row
|
|
|
|
from pydantic import BaseModel
|
2021-08-20 12:44:03 +01:00
|
|
|
|
2021-08-20 14:46:08 +01:00
|
|
|
class Indexers(BaseModel):
|
2021-08-20 12:44:03 +01:00
|
|
|
id: str
|
|
|
|
wallet: str
|
|
|
|
shopname: str
|
|
|
|
indexeraddress: str
|
|
|
|
online: bool
|
|
|
|
rating: str
|
|
|
|
shippingzone1: str
|
|
|
|
shippingzone2: str
|
|
|
|
zone1cost: int
|
|
|
|
zone2cost: int
|
|
|
|
email: str
|
|
|
|
|
|
|
|
|
2021-08-20 14:46:08 +01:00
|
|
|
class Products(BaseModel):
|
2021-08-20 12:44:03 +01:00
|
|
|
id: str
|
|
|
|
wallet: str
|
|
|
|
product: str
|
|
|
|
categories: str
|
|
|
|
description: str
|
|
|
|
image: str
|
|
|
|
price: int
|
|
|
|
quantity: int
|
|
|
|
|
|
|
|
|
2021-08-20 14:46:08 +01:00
|
|
|
class Orders(BaseModel):
|
2021-08-20 12:44:03 +01:00
|
|
|
id: str
|
|
|
|
productid: str
|
|
|
|
wallet: str
|
|
|
|
product: str
|
|
|
|
quantity: int
|
|
|
|
shippingzone: int
|
|
|
|
address: str
|
|
|
|
email: str
|
|
|
|
invoiceid: str
|
|
|
|
paid: bool
|
|
|
|
shipped: bool
|