services are checked

This commit is contained in:
2024-11-08 17:14:02 +03:00
parent a5b1e0b2f4
commit c5b771e5cb
82 changed files with 1720 additions and 869 deletions

View File

@@ -4,6 +4,7 @@ from sqlalchemy import (
UUID,
String,
text,
Identity,
)
from sqlalchemy.orm import (
Mapped,
@@ -16,14 +17,16 @@ class ApiEnumDropdown(BaseCollection):
__tablename__ = "api_enum_dropdown"
__exclude__fields__ = ["enum_class"]
id: Mapped[int] = mapped_column(primary_key=True)
uu_id: Mapped[str] = mapped_column(
id: Mapped[Identity] = mapped_column(primary_key=True)
uu_id: Mapped[UUID] = mapped_column(
UUID, server_default=text("gen_random_uuid()"), index=True, unique=True
)
enum_class = mapped_column(String, nullable=False, comment="Enum Constant Name")
key = mapped_column(String, nullable=False, comment="Enum Key")
value = mapped_column(String, nullable=False, comment="Enum Value")
description = mapped_column(String, nullable=True)
enum_class: Mapped[str] = mapped_column(
String, nullable=False, comment="Enum Constant Name"
)
key: Mapped[str] = mapped_column(String, nullable=False, comment="Enum Key")
value: Mapped[str] = mapped_column(String, nullable=False, comment="Enum Value")
description: Mapped[str] = mapped_column(String, nullable=True)
__table_args__ = ({"comment": "Enum objets that are linked to tables"},)