I havent read about uuid 7, however if it takes up the same number of bytes as
other UUIDs, this "uuid_utils" should really be returning Python UUID objects
and not something ad-hoc, that's the source of the incompatibility here.
otherwise, you'd need to build a custom type, see
I want to use UUID v7 with this package:
https://github.com/aminalaee/uuid-utils/
Here's my current code:
from sqlalchemy.dialects.postgresql import UUID as POSTGRES_UUID
from sqlalchemy.orm import Mapped, as_declarative, mapped_column
from uuid_utils import UUID, uuid7
from db.dependencies