This commit is contained in:
@@ -36,7 +36,7 @@ class Author(Base):
|
||||
|
||||
# Базовые поля автора
|
||||
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")
|
||||
bio: Mapped[str | None] = mapped_column(String, nullable=True, comment="Bio") # короткое описание
|
||||
about: Mapped[str | None] = mapped_column(
|
||||
|
||||
@@ -22,7 +22,7 @@ type AuthorStat {
|
||||
type Author {
|
||||
id: Int!
|
||||
slug: String!
|
||||
name: String!
|
||||
name: String! # Обязательное поле
|
||||
pic: String
|
||||
bio: String
|
||||
about: String
|
||||
|
||||
Reference in New Issue
Block a user