catalogue operations, db migr and so on.

pre release version.
This commit is contained in:
2026-03-11 20:26:38 +07:00
parent 1af0cf1826
commit 7f4f8a883d
17 changed files with 284 additions and 63 deletions

View File

@@ -2,6 +2,8 @@ from dataclasses import dataclass
from enum import Enum
from typing import Optional, Union
from aiogram.types import Message
from db.models import Category
from db.models.products import Product
@@ -22,3 +24,17 @@ class CatalogueView:
parent_id: Union[int, str, None] = None
has_next: bool = False
show_menu: bool = False
@dataclass
class NewCatalogueElement:
msg: Message
parent_id: Union[int, str]
@dataclass
class NewCategoryContext(NewCatalogueElement): ...
@dataclass
class NewProductContext(NewCatalogueElement): ...