author-orm-fix
Some checks failed
Deploy on push / deploy (push) Failing after 5m21s

This commit is contained in:
2025-08-31 20:51:26 +03:00
parent 2660ad5cb3
commit 4660f9b000
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ class Author(Base):
# Базовые поля автора # Базовые поля автора
id: Mapped[int] = mapped_column(Integer, primary_key=True) id: Mapped[int] = mapped_column(Integer, primary_key=True)
name: Mapped[str | None] = mapped_column(String, nullable=True, comment="Display name") name: Mapped[str] = mapped_column(String, nullable=False, comment="Display name")
slug: Mapped[str] = mapped_column(String, unique=True, comment="Author's slug") slug: Mapped[str] = mapped_column(String, unique=True, comment="Author's slug")
bio: Mapped[str | None] = mapped_column(String, nullable=True, comment="Bio") # короткое описание bio: Mapped[str | None] = mapped_column(String, nullable=True, comment="Bio") # короткое описание
about: Mapped[str | None] = mapped_column( about: Mapped[str | None] = mapped_column(

View File

@@ -22,7 +22,7 @@ type AuthorStat {
type Author { type Author {
id: Int! id: Int!
slug: String! slug: String!
name: String! name: String! # Обязательное поле
pic: String pic: String
bio: String bio: String
about: String about: String