from dataclasses import dataclass
@dataclass
class User:
login: str
password: str
full_name: str
role: str
@dataclass
class Product:
id: int
name: str
category: str
description: str
manufacturer: str
supplier: str
price: float
unit: str
quantity: int
discount: int
USERS = [
User("admin", "admin", "Иванов Иван Иванович", "Администратор"),
User("manager", "manager", "Петров Пётр Петрович", "Менеджер"),
User("client", "client", "Сидорова Анна Сергеевна", "Клиент"),
]
PRODUCTS = [
Product(1, "Конструктор «Город»", "Конструкторы", "500 деталей", "BrickToys", "ИгроОпт", 2500, "шт.", 12, 0),
Product(2, "Плюшевый медведь", "Мягкие игрушки", "Высота 40 см", "SoftLand", "ДетскийМир", 1200, "шт.", 30, 20),
Product(3, "Пазл «Космос»", "Пазлы", "1000 элементов", "PuzzleWorld", "ТойсСнаб", 650, "уп.", 0, 5),
]