diff --git a/schilder2000/models.py b/schilder2000/models.py index 0935671994e273bc816e4a33d8f1cb0ba7883f5d..2c82aa503573a388dd5d1c886ad275562260d194 100644 --- a/schilder2000/models.py +++ b/schilder2000/models.py @@ -2,14 +2,14 @@ from uuid import UUID from uuid_extensions import uuid7 -from sqlalchemy import String, Text +from sqlalchemy import String, Text, Uuid from sqlalchemy.orm import Mapped, mapped_column from . import db class Schild(db.Model): - ident: Mapped[UUID] = mapped_column(primary_key=True, default=uuid7) + ident: Mapped[UUID] = mapped_column(Uuid, primary_key=True, default=uuid7) title: Mapped[str] = mapped_column(String(31)) text: Mapped[str] = mapped_column(Text) image: Mapped[str] = mapped_column(String(255), nullable=True)